Package soot.JastAddJ
Class JastAddJavaParser
- java.lang.Object
-
- beaver.Parser
-
- soot.JastAddJ.JastAddJavaParser
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJastAddJavaParser.Terminals-
Nested classes/interfaces inherited from class beaver.Parser
Parser.Exception, Parser.Simulator, Parser.TokenStream
-
-
Field Summary
Fields Modifier and Type Field Description protected Collectionerrors
-
Constructor Summary
Constructors Constructor Description JastAddJavaParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SymbolinvokeReduceAction(int rule_num, int offset)Invoke actual reduce action routine.CompilationUnitparse(InputStream is, String fileName)-
Methods inherited from class beaver.Parser
parse, parse, recoverFromError
-
-
-
-
Field Detail
-
errors
protected Collection errors
-
-
Method Detail
-
parse
public CompilationUnit parse(InputStream is, String fileName) throws IOException, Parser.Exception
- Throws:
IOExceptionParser.Exception
-
invokeReduceAction
protected Symbol invokeReduceAction(int rule_num, int offset)
Description copied from class:ParserInvoke actual reduce action routine. Method must be implemented by a generated parser- Specified by:
invokeReduceActionin classParser- Parameters:
rule_num- ID of a reduce action routine to invokeoffset- to the symbol before first action routine argument- Returns:
- reduced nonterminal
-
-