Context Navigation


Changeset 33


Ignore:
Timestamp:
Nov 23, 2007, 4:16:37 PM (18 years ago)
Author:
neil.c.c.brown
Message:

Fiddled a little with the AST navigation section, but it's not finished yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/trunk/200711-tock-seminars/200711-tock-slides.tex

    r32 r33
    711711 \item Compose ``routes'' as we descend the tree
    712712\end{itemize}
    713\begin{lstlisting}
    713
    714%TODO I think a diagram to explain the append function would be helpful here, so this slide is only temporary
    715\begin{lstlisting}
    716type Mod inner outer = (inner -> m inner) -> (outer -> m outer)
    717append :: Mod outer Root -> Mod inner outer -> Mod inner Root
    718
    714719buildNode (While e s) route
    715720 = do addNode (label e) (append route
    721(追記) -- (Expr -> m Expr) -> (Statement -> m Statement) (追記ここまで)
    716722 (\f (While e s) -> do {e' <- f e ; return (While e' s)}))
    717723 buildNode p (append route
    724(追記) -- (Statement -> m Statement) -> (Statement -> m Statement) (追記ここまで)
    718725 (\f (While e s) -> f s >>= While e))
    719726 ...
Note: See TracChangeset for help on using the changeset viewer.

AltStyle によって変換されたページ (->オリジナル) /