ExpressParser.mesa
Vanilla recursive descent parser for the Express package
Created Tuesday, July 17, 1984 10:16 pm PDT
Last edited by Eric Nickell, July 17, 1984 10:25:07 pm PDT
DIRECTORY
Express USING [ClientProcList, Symbols],
ExpressToken USING [TokenStream],
ExpressTree USING [XTree];
ExpressParser: CEDAR DEFINITIONS ~ {
ClientProcList: TYPE ~ Express.ClientProcList;
Symbols: TYPE ~ Express.Symbols;
TokenStream: TYPE ~ ExpressToken.TokenStream;
XTree: TYPE ~ ExpressTree.XTree;
ParseExpression: PROC [ts: TokenStream, symbols: Symbols, cProcs: ClientProcList ← NIL] RETURNS [exp: XTree];
Converts the token stream into an expression tree
}.