Class COOLParser
Inheritance
System.Object
COOLParser
Assembly: Cool.dll
Syntax
public class COOLParser : Parser
Constructors
|
Improve this Doc
View Source
COOLParser(ITokenStream)
Declaration
public COOLParser(ITokenStream input)
Parameters
Type |
Name |
Description |
ITokenStream |
input |
|
|
Improve this Doc
View Source
COOLParser(ITokenStream, TextWriter, TextWriter)
Declaration
public COOLParser(ITokenStream input, TextWriter output, TextWriter errorOutput)
Parameters
Type |
Name |
Description |
ITokenStream |
input |
|
TextWriter |
output |
|
TextWriter |
errorOutput |
|
Fields
|
Improve this Doc
View Source
_ATN
Declaration
public static readonly ATN _ATN
Field Value
|
Improve this Doc
View Source
ADD
Declaration
public const int ADD = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
ASSIGNMENT
Declaration
public const int ASSIGNMENT = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CASE
Declaration
public const int CASE = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CASE_ARROW
Declaration
public const int CASE_ARROW = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CLASS
Declaration
public const int CLASS = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
public const int CLOSE_COMMENT = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
public const int COMMENT = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
decisionToDFA
Declaration
protected static Antlr4.Runtime.Dfa.DFA[] decisionToDFA
Field Value
Type |
Description |
Antlr4.Runtime.Dfa.DFA[] |
|
|
Improve this Doc
View Source
DefaultVocabulary
Declaration
public static readonly IVocabulary DefaultVocabulary
Field Value
Type |
Description |
IVocabulary |
|
|
Improve this Doc
View Source
DIVISION
Declaration
public const int DIVISION = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
ELSE
Declaration
public const int ELSE = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
EQUAL
Declaration
public const int EQUAL = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
ESAC
Declaration
public const int ESAC = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
FALSE
Declaration
public const int FALSE = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
FI
Declaration
public const int FI = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
IF
Declaration
public const int IF = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
IN
Declaration
public const int IN = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
INHERITS
Declaration
public const int INHERITS = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
INT
Declaration
public const int INT = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
INTEGER_NEGATIVE
Declaration
public const int INTEGER_NEGATIVE = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
ISVOID
Declaration
public const int ISVOID = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
LESS_EQUAL
Declaration
public const int LESS_EQUAL = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
LESS_THAN
Declaration
public const int LESS_THAN = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
LET
Declaration
public const int LET = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
LOOP
Declaration
public const int LOOP = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
MINUS
Declaration
public const int MINUS = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
MULTIPLY
Declaration
public const int MULTIPLY = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
NEW
Declaration
public const int NEW = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
NOT
Declaration
public const int NOT = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
OBJECTID
Declaration
public const int OBJECTID = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
OF
Declaration
public const int OF = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
public const int ONE_LINE_COMMENT = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
public const int OPEN_COMMENT = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
POOL
Declaration
public const int POOL = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
RULE_classDefine
Declaration
public const int RULE_classDefine = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
RULE_expression
Declaration
public const int RULE_expression = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
RULE_feature
Declaration
public const int RULE_feature = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
public const int RULE_formal = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
RULE_program
Declaration
public const int RULE_program = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
RULE_programBlocks
Declaration
public const int RULE_programBlocks = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
ruleNames
Declaration
public static readonly string[] ruleNames
Field Value
Type |
Description |
System.String[] |
|
|
Improve this Doc
View Source
sharedContextCache
Declaration
protected static PredictionContextCache sharedContextCache
Field Value
Type |
Description |
PredictionContextCache |
|
|
Improve this Doc
View Source
STRING
Declaration
public const int STRING = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
T__0
Declaration
public const int T__0 = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
T__1
Declaration
public const int T__1 = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
T__2
Declaration
public const int T__2 = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
T__3
Declaration
public const int T__3 = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
T__4
Declaration
public const int T__4 = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
T__5
Declaration
public const int T__5 = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
T__6
Declaration
public const int T__6 = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
T__7
Declaration
public const int T__7 = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
T__8
Declaration
public const int T__8 = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
THEN
Declaration
public const int THEN = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
TRUE
Declaration
public const int TRUE = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
TYPEID
Declaration
public const int TYPEID = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
WHILE
Declaration
public const int WHILE = null
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
WHITESPACE
Declaration
public const int WHITESPACE = null
Field Value
Type |
Description |
System.Int32 |
|
Properties
|
Improve this Doc
View Source
GrammarFileName
Declaration
public override string GrammarFileName { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
RuleNames
Declaration
public override string[] RuleNames { get; }
Property Value
Type |
Description |
System.String[] |
|
|
Improve this Doc
View Source
SerializedAtn
Declaration
public override string SerializedAtn { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Vocabulary
Declaration
public override IVocabulary Vocabulary { get; }
Property Value
Type |
Description |
IVocabulary |
|
Methods
|
Improve this Doc
View Source
classDefine()
Declaration
public COOLParser.ClassDefineContext classDefine()
Returns
|
Improve this Doc
View Source
expression()
Declaration
public COOLParser.ExpressionContext expression()
Returns
|
Improve this Doc
View Source
feature()
Declaration
public COOLParser.FeatureContext feature()
Returns
|
Improve this Doc
View Source
Declaration
public COOLParser.FormalContext formal()
Returns
|
Improve this Doc
View Source
program()
Declaration
public COOLParser.ProgramContext program()
Returns
|
Improve this Doc
View Source
programBlocks()
Declaration
public COOLParser.ProgramBlocksContext programBlocks()
Returns
|
Improve this Doc
View Source
Sempred(RuleContext, Int32, Int32)
Declaration
public override bool Sempred(RuleContext _localctx, int ruleIndex, int predIndex)
Parameters
Type |
Name |
Description |
RuleContext |
_localctx |
|
System.Int32 |
ruleIndex |
|
System.Int32 |
predIndex |
|
Returns
Type |
Description |
System.Boolean |
|