How to obtain abstract syntax trees
Description
Given a concrete term over some language L, an abstract syntax tree for that term is obtained by:
Examples
Assuming L.def is a grammar for L, and term.l is a concrete term over language L, an abstract syntax tree is obtained as follows: # sdf2table -i L.def -o L.tbl # sglr -p L.tbl -i term.l -o term.l.asfix # implode-asfix -i term.l.asfix -o term.l.ast
See also
ImplodeAsFix?, sglrSGLR, SdfToTable.