Java Doc for MakeGrammar.java in  » Parser » Rats-Parser-Generators » antlr » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Parser » Rats Parser Generators » antlr 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   antlr.DefineGrammarSymbols
      antlr.MakeGrammar

MakeGrammar
public class MakeGrammar extends DefineGrammarSymbols (Code)


Field Summary
protected  Stackblocks
    
 ExceptionSpeccurrentExceptionSpec
    
protected  booleangrammarError
    
protected  RuleRefElementlastRuleRef
    
protected  intnested
    
protected  RuleBlockruleBlock
    
protected  RuleEndElementruleEnd
    

Constructor Summary
public  MakeGrammar(Tool tool_, String[] args_, LLkAnalyzer analyzer_)
    

Method Summary
public  voidabortGrammar()
    
protected  voidaddElementToCurrentAlt(AlternativeElement e)
    
public  voidbeginAlt(boolean doAutoGen_)
    
public  voidbeginChildList()
    
public  voidbeginExceptionGroup()
    
public  voidbeginExceptionSpec(Token label)
    
public  voidbeginSubRule(Token label, Token start, boolean not)
    
public  voidbeginTree(Token tok)
    
public  BlockContextcontext()
    
public static  RuleBlockcreateNextTokenRule(Grammar g, Vector lexRules, String rname)
     Used to build nextToken() for the lexer. This builds a rule which has every "public" rule in the given Vector of rules as it's alternate.
public  voiddefineRuleName(Token r, String access, boolean ruleAutoGen, String docComment)
    
public  voidendAlt()
    
public  voidendChildList()
    
public  voidendExceptionGroup()
    
public  voidendExceptionSpec()
    
public  voidendGrammar()
    
public  voidendRule(String rule)
    
public  voidendSubRule()
    
public  voidendTree()
    
public  voidhasError()
    
public  voidnoAutoGenSubRule()
    
public  voidoneOrMoreSubRule()
    
public  voidoptionalSubRule()
    
public  voidrefAction(Token action)
    
public  voidrefArgAction(Token action)
    
public  voidrefCharLiteral(Token lit, Token label, boolean inverted, int autoGenType, boolean lastInRule)
    
public  voidrefCharRange(Token t1, Token t2, Token label, int autoGenType, boolean lastInRule)
    
public  voidrefElementOption(Token option, Token value)
    
public  voidrefExceptionHandler(Token exTypeAndName, Token action)
    
public  voidrefInitAction(Token action)
    
public  voidrefMemberAction(Token act)
    
public  voidrefPreambleAction(Token act)
    
public  voidrefReturnAction(Token returnAction)
    
public  voidrefRule(Token idAssign, Token r, Token label, Token args, int autoGenType)
    
public  voidrefSemPred(Token pred)
    
public  voidrefStringLiteral(Token lit, Token label, int autoGenType, boolean lastInRule)
    
public  voidrefToken(Token idAssign, Token t, Token label, Token args, boolean inverted, int autoGenType, boolean lastInRule)
    
public  voidrefTokenRange(Token t1, Token t2, Token label, int autoGenType, boolean lastInRule)
    
public  voidrefTokensSpecElementOption(Token tok, Token option, Token value)
    
public  voidrefTreeSpecifier(Token treeSpec)
    
public  voidrefWildcard(Token t, Token label, int autoGenType)
    
public  voidreset()
    
public  voidsetArgOfRuleRef(Token argAction)
    
public static  voidsetBlock(AlternativeBlock b, AlternativeBlock src)
    
public  voidsetRuleOption(Token key, Token value)
    
public  voidsetSubruleOption(Token key, Token value)
    
public  voidsetUserExceptions(String thr)
    
public  voidsynPred()
    
public  voidzeroOrMoreSubRule()
    

Field Detail
blocks
protected Stack blocks(Code)



currentExceptionSpec
ExceptionSpec currentExceptionSpec(Code)



grammarError
protected boolean grammarError(Code)



lastRuleRef
protected RuleRefElement lastRuleRef(Code)



nested
protected int nested(Code)



ruleBlock
protected RuleBlock ruleBlock(Code)



ruleEnd
protected RuleEndElement ruleEnd(Code)




Constructor Detail
MakeGrammar
public MakeGrammar(Tool tool_, String[] args_, LLkAnalyzer analyzer_)(Code)




Method Detail
abortGrammar
public void abortGrammar()(Code)
Abort the processing of a grammar (due to syntax errors)



addElementToCurrentAlt
protected void addElementToCurrentAlt(AlternativeElement e)(Code)



beginAlt
public void beginAlt(boolean doAutoGen_)(Code)



beginChildList
public void beginChildList()(Code)



beginExceptionGroup
public void beginExceptionGroup()(Code)
Add an exception group to a rule (currently a no-op)



beginExceptionSpec
public void beginExceptionSpec(Token label)(Code)
Add an exception spec to an exception group or rule block



beginSubRule
public void beginSubRule(Token label, Token start, boolean not)(Code)



beginTree
public void beginTree(Token tok) throws SemanticException(Code)



context
public BlockContext context()(Code)



createNextTokenRule
public static RuleBlock createNextTokenRule(Grammar g, Vector lexRules, String rname)(Code)
Used to build nextToken() for the lexer. This builds a rule which has every "public" rule in the given Vector of rules as it's alternate. Each rule ref generates a Token object.
Parameters:
  g - The Grammar that is being processed
Parameters:
  lexRules - A vector of lexer rules that will be used to create an alternate block.
Parameters:
  rname - The name of the resulting rule.



defineRuleName
public void defineRuleName(Token r, String access, boolean ruleAutoGen, String docComment) throws SemanticException(Code)



endAlt
public void endAlt()(Code)



endChildList
public void endChildList()(Code)



endExceptionGroup
public void endExceptionGroup()(Code)



endExceptionSpec
public void endExceptionSpec()(Code)



endGrammar
public void endGrammar()(Code)
Called at the end of processing a grammar



endRule
public void endRule(String rule)(Code)



endSubRule
public void endSubRule()(Code)



endTree
public void endTree()(Code)



hasError
public void hasError()(Code)
Remember that a major error occured in the grammar



noAutoGenSubRule
public void noAutoGenSubRule()(Code)



oneOrMoreSubRule
public void oneOrMoreSubRule()(Code)



optionalSubRule
public void optionalSubRule()(Code)



refAction
public void refAction(Token action)(Code)



refArgAction
public void refArgAction(Token action)(Code)



refCharLiteral
public void refCharLiteral(Token lit, Token label, boolean inverted, int autoGenType, boolean lastInRule)(Code)



refCharRange
public void refCharRange(Token t1, Token t2, Token label, int autoGenType, boolean lastInRule)(Code)



refElementOption
public void refElementOption(Token option, Token value)(Code)



refExceptionHandler
public void refExceptionHandler(Token exTypeAndName, Token action)(Code)
Add an exception handler to an exception spec



refInitAction
public void refInitAction(Token action)(Code)



refMemberAction
public void refMemberAction(Token act)(Code)



refPreambleAction
public void refPreambleAction(Token act)(Code)



refReturnAction
public void refReturnAction(Token returnAction)(Code)



refRule
public void refRule(Token idAssign, Token r, Token label, Token args, int autoGenType)(Code)



refSemPred
public void refSemPred(Token pred)(Code)



refStringLiteral
public void refStringLiteral(Token lit, Token label, int autoGenType, boolean lastInRule)(Code)



refToken
public void refToken(Token idAssign, Token t, Token label, Token args, boolean inverted, int autoGenType, boolean lastInRule)(Code)



refTokenRange
public void refTokenRange(Token t1, Token t2, Token label, int autoGenType, boolean lastInRule)(Code)



refTokensSpecElementOption
public void refTokensSpecElementOption(Token tok, Token option, Token value)(Code)



refTreeSpecifier
public void refTreeSpecifier(Token treeSpec)(Code)



refWildcard
public void refWildcard(Token t, Token label, int autoGenType)(Code)



reset
public void reset()(Code)
Get ready to process a new grammar



setArgOfRuleRef
public void setArgOfRuleRef(Token argAction)(Code)



setBlock
public static void setBlock(AlternativeBlock b, AlternativeBlock src)(Code)



setRuleOption
public void setRuleOption(Token key, Token value)(Code)



setSubruleOption
public void setSubruleOption(Token key, Token value)(Code)



setUserExceptions
public void setUserExceptions(String thr)(Code)



synPred
public void synPred()(Code)



zeroOrMoreSubRule
public void zeroOrMoreSubRule()(Code)



Fields inherited from antlr.DefineGrammarSymbols
final static String DEFAULT_TOKENMANAGER_NAME(Code)(Java Doc)
LLkAnalyzer analyzer(Code)(Java Doc)
String[] args(Code)(Java Doc)
protected Grammar grammar(Code)(Java Doc)
protected Hashtable grammars(Code)(Java Doc)
protected Hashtable headerActions(Code)(Java Doc)
String language(Code)(Java Doc)
protected int numLexers(Code)(Java Doc)
protected int numParsers(Code)(Java Doc)
protected int numTreeParsers(Code)(Java Doc)
Token thePreambleAction(Code)(Java Doc)
protected Hashtable tokenManagers(Code)(Java Doc)
protected Tool tool(Code)(Java Doc)

Methods inherited from antlr.DefineGrammarSymbols
public void _refStringLiteral(Token lit, Token label, int autoGenType, boolean lastInRule)(Code)(Java Doc)
public void _refToken(Token assignId, Token t, Token label, Token args, boolean inverted, int autoGenType, boolean lastInRule)(Code)(Java Doc)
public void abortGrammar()(Code)(Java Doc)
public void beginAlt(boolean doAST_)(Code)(Java Doc)
public void beginChildList()(Code)(Java Doc)
public void beginExceptionGroup()(Code)(Java Doc)
public void beginExceptionSpec(Token label)(Code)(Java Doc)
public void beginSubRule(Token label, Token start, boolean not)(Code)(Java Doc)
public void beginTree(Token tok) throws SemanticException(Code)(Java Doc)
public void defineRuleName(Token r, String access, boolean ruleAutoGen, String docComment) throws SemanticException(Code)(Java Doc)
public void defineToken(Token tokname, Token tokliteral)(Code)(Java Doc)
public void endAlt()(Code)(Java Doc)
public void endChildList()(Code)(Java Doc)
public void endExceptionGroup()(Code)(Java Doc)
public void endExceptionSpec()(Code)(Java Doc)
public void endGrammar()(Code)(Java Doc)
public void endOptions()(Code)(Java Doc)
public void endRule(String r)(Code)(Java Doc)
public void endSubRule()(Code)(Java Doc)
public void endTree()(Code)(Java Doc)
public String getHeaderAction(String name)(Code)(Java Doc)
public void hasError()(Code)(Java Doc)
public void noASTSubRule()(Code)(Java Doc)
public void oneOrMoreSubRule()(Code)(Java Doc)
public void optionalSubRule()(Code)(Java Doc)
public void refAction(Token action)(Code)(Java Doc)
public void refArgAction(Token action)(Code)(Java Doc)
public void refCharLiteral(Token lit, Token label, boolean inverted, int autoGenType, boolean lastInRule)(Code)(Java Doc)
public void refCharRange(Token t1, Token t2, Token label, int autoGenType, boolean lastInRule)(Code)(Java Doc)
public void refElementOption(Token option, Token value)(Code)(Java Doc)
public void refExceptionHandler(Token exTypeAndName, Token action)(Code)(Java Doc)
public void refHeaderAction(Token name, Token act)(Code)(Java Doc)
public void refInitAction(Token action)(Code)(Java Doc)
public void refMemberAction(Token act)(Code)(Java Doc)
public void refPreambleAction(Token act)(Code)(Java Doc)
public void refReturnAction(Token returnAction)(Code)(Java Doc)
public void refRule(Token idAssign, Token r, Token label, Token args, int autoGenType)(Code)(Java Doc)
public void refSemPred(Token pred)(Code)(Java Doc)
public void refStringLiteral(Token lit, Token label, int autoGenType, boolean lastInRule)(Code)(Java Doc)
public void refToken(Token assignId, Token t, Token label, Token args, boolean inverted, int autoGenType, boolean lastInRule)(Code)(Java Doc)
public void refTokenRange(Token t1, Token t2, Token label, int autoGenType, boolean lastInRule)(Code)(Java Doc)
public void refTokensSpecElementOption(Token tok, Token option, Token value)(Code)(Java Doc)
public void refTreeSpecifier(Token treeSpec)(Code)(Java Doc)
public void refWildcard(Token t, Token label, int autoGenType)(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void setArgOfRuleRef(Token argaction)(Code)(Java Doc)
public void setCharVocabulary(BitSet b)(Code)(Java Doc)
public void setFileOption(Token key, Token value, String filename)(Code)(Java Doc)
public void setGrammarOption(Token key, Token value)(Code)(Java Doc)
public void setRuleOption(Token key, Token value)(Code)(Java Doc)
public void setSubruleOption(Token key, Token value)(Code)(Java Doc)
public void setUserExceptions(String thr)(Code)(Java Doc)
public void startLexer(String file, Token name, String superClass, String doc)(Code)(Java Doc)
public void startParser(String file, Token name, String superClass, String doc)(Code)(Java Doc)
public void startTreeWalker(String file, Token name, String superClass, String doc)(Code)(Java Doc)
public void synPred()(Code)(Java Doc)
public void zeroOrMoreSubRule()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.