Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_parser
run/2
Description
run/2 is an Erlang function exported by "age_parser" module.
This is a meta-language generator used for describing a readable and optimized functional input required for the language interpretation.
References
•scan/2
•age_json
Parameters
Name
Type
Tokens
list()
Input list with lexical tokens provided by scan/2.
Grammar
#age_grammar{}
Optional LALR grammar definition. Defaults to simple predefined grammar.
Result
Value or Type
Returns a list with meta-language tokens.
Code Sample
> Lex = age_parser:scan("a=1; b=4.5"). > age_parser:run(Lex). [ {identifier,"a"}, assign,1, semicolon, {identifier,"b"}, assign,4.5 ]