All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----aioli.vtp.StringToTree
public static void main(String[] args) { Formalism f=FManager.getFormalism("java"); Tree tree; String tree1="none()"; String tree2="string \"exception : \""; String tree3="identifier System"; String tree4="access(identifier System,identifier err)"; String tree5="variable_modifier_s[]"; String tree6="call(access(access(identifier System,identifier err), identifier println),argument_s[ binary(string \"exception : \",plus(),identifier e)])";The string parsing is limited: no double quote "",... Can parse tree with metavaribles.
StringToTree string2Tree = new StringToTree(); if ((tree=string2Tree.stringToTree(f, tree6))!=null) { System.out.println(tree.toString()); string2Tree.stringToTree(f, tree.toString()); } }
public StringToTree()
public static Tree stringToTree(Formalism forma, String str)
public static Tree buildTree(Formalism forma, String str)
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index