org.objectweb.fractal.juliak.asm
Class TreeParser

java.lang.Object
  extended by 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

Constructor Summary
TreeParser(String str)
           
 
Method Summary
 Tree parseTree()
          Copy/paste from BasicLoader.parseTree().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeParser

public TreeParser(String str)
Method Detail

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