Module ce_parser

Simple scanner and recursive descent parser.

Description

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.

Function Index

eval/1
parse/3Parses a list of tokens into a parse tree.
scan/2Scans a string for tokens.
test/0

Function Details

eval/1

eval() -> term()

parse/3

parse(Tokens::[token()], Productions::[production()], Name::production_name()) -> {ok, {[token()], parse_tree()}} | {error, Reason}

Parses a list of tokens into a parse tree.

scan/2

scan(String::string(), TokenSpecs::[token_spec()]) -> {ok, [token()]} | {error, Reason}

Scans a string for tokens.

test/0

test() -> term()


Generated by EDoc, Dec 25 2007, 02:37:41.