org.objectweb.fractal.juliak.asm
Class TreeParser
java.lang.Object
org.objectweb.fractal.juliak.asm.TreeParser
public class TreeParser
- extends Object
A class for parsing string representations of Tree structures.
These string representations follow a LISP like syntax such as
"(foo (bar foo))".
- Since:
- 2.5
- Author:
- Lionel Seinturier
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeParser
public TreeParser(String str)
parseTree
public Tree parseTree()
throws TreeParserException
- Copy/paste from
BasicLoader.parseTree().
Recursive method to parse a tree. The first character of the tree to be
parsed is supposed to have already been read, and available in car. After parsing, the character immediately following the parsed tree
is also supposed to have already been parsed, and available in car.
- Returns:
- a tree parsed from
str.
- Throws:
Exception - if a syntax error is found.
TreeParserException