Class actions for top-level rules to display and visit a tree.
For the main rule:
- Add optional arguments with visitor classes.
- Add an optional
RegExpargument to display the tree between visits and trace each visit.
Methods
-
_doVisits()
-
Create and apply all but the last visitor, check the last.
Throws:
-
error message, e.g., error count or
_treeissue. - Type
- string
Returns:
checked last visitor, last tree, trace if any.
- Type
- Array
-
-
dump()
-
dump: tree;Display and return the tree. -
main()
-
main: tree;return the checked last visit as a function.Throws:
-
error message, e.g., error count or
_treeissue. - Type
- string
-
-
run()
-
run: funct;Execute the function and return the result.