Simple scanner and recursive descent parser.
These functions implement a simple scanner and parser which, though inefficient, are flexible and may be suitable for rapid prototyping.
eval/1 | |
parse/3 | Parses a list of tokens into a parse tree. |
scan/2 | Scans a string for tokens. |
test/0 |
eval() -> term()
parse(Tokens::[token()], Productions::[production()], Name::production_name()) -> {ok, {[token()], parse_tree()}} | {error, Reason}
Parses a list of tokens into a parse tree.
scan(String::string(), TokenSpecs::[token_spec()]) -> {ok, [token()]} | {error, Reason}
Scans a string for tokens.
test() -> term()
Generated by EDoc, Dec 25 2007, 02:37:41.