public class OCLParser extends AbstractOCLParser
Modifier and Type | Method and Description |
---|---|
int |
getEOFTokenKind() |
DerivedPrsStream |
getIPrsStream() |
OCLLexer |
getLexer() |
Environment<?,?,?,?,?,?,?,?,?,?,?,?> |
getOCLEnvironment() |
DeterministicParser |
getParser() |
ParseTable |
getParseTable() |
String |
getTokenKindName(int kind) |
int |
numTokenKinds() |
String[] |
orderedTerminalSymbols() |
CSTNode |
parser()
Runs the parser with the current
lex and parse streams |
CSTNode |
parser(Monitor monitor)
Runs the parser with the current
lex and parse streams
using the given Monitor |
CSTNode |
parser(Monitor monitor,
int error_repair_count)
Runs the parser with the current
lex and parse streams
using the given Monitor and error_repair_count (useful for a backtracking parser) |
void |
reset(ILexStream lexStream)
Resets the parser's
lexStream |
void |
ruleAction(int ruleNumber) |
computeInputString, getDefaultRepairCount, getEnvironment, parseTokensToCST, resetLexStream, setDefaultRepairCount, setLexStream
public OCLParser(OCLLexer lexer)
public ParseTable getParseTable()
getParseTable
in class AbstractParser
ParseTable
used by the parserpublic DeterministicParser getParser()
public void reset(ILexStream lexStream)
AbstractParser
lexStream
reset
in class AbstractParser
public int numTokenKinds()
numTokenKinds
in class AbstractParser
public String[] orderedTerminalSymbols()
orderedTerminalSymbols
in class AbstractParser
public String getTokenKindName(int kind)
public int getEOFTokenKind()
public DerivedPrsStream getIPrsStream()
getIPrsStream
in class AbstractParser
parseStream
public CSTNode parser()
AbstractParser
lex
and parse
streamsparser
in class AbstractParser
CSTNode
which results from the parsing processpublic CSTNode parser(Monitor monitor)
AbstractParser
lex
and parse
streams
using the given Monitor
parser
in class AbstractParser
CSTNode
which results from the parsing processpublic CSTNode parser(Monitor monitor, int error_repair_count)
AbstractParser
lex
and parse
streams
using the given Monitor
and error_repair_count (useful for a backtracking parser)parser
in class AbstractParser
CSTNode
which results from the parsing processpublic Environment<?,?,?,?,?,?,?,?,?,?,?,?> getOCLEnvironment()
public OCLLexer getLexer()
getLexer
in class AbstractParser
public void ruleAction(int ruleNumber)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.