|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.owasp.orizon.mirage.c.parser.CParser
public class CParser
Field Summary | |
---|---|
CLexer |
token_source
Generated Lexer. |
Constructor Summary | |
---|---|
CParser(CLexer tm)
Constructor with generated Token Manager. |
|
CParser(java.io.Reader stream)
|
Method Summary | |
---|---|
void |
AbstractDeclarator()
|
void |
AdditiveExpression()
|
void |
ANDExpression()
|
void |
ArgumentExpressionList()
|
void |
AssignmentExpression()
|
void |
AssignmentOperator()
|
void |
CastExpression()
|
void |
clearNodeScope()
|
void |
closeNodeScope(Node n,
boolean condition)
A conditional node is constructed if its condition is true. |
void |
closeNodeScope(Node n,
int num)
|
void |
CompoundStatement()
|
void |
ConditionalExpression()
|
void |
Constant()
|
void |
ConstantExpression()
|
void |
Declaration()
|
void |
DeclarationList()
|
void |
DeclarationSpecifiers()
|
void |
Declarator()
|
void |
DirectAbstractDeclarator()
|
void |
DirectDeclarator()
|
void |
disable_tracing()
Disable tracing. |
void |
enable_tracing()
Enable tracing. |
void |
Enumerator()
|
void |
EnumeratorList()
|
void |
EnumSpecifier()
|
void |
EqualityExpression()
|
void |
ExclusiveORExpression()
|
void |
Expression()
|
void |
ExpressionStatement()
|
void |
ExternalDeclaration()
|
void |
FunctionDefinition()
|
ParseException |
generateParseException()
|
boolean |
getBuildTree()
|
Token |
getNextToken()
Get the next Token. |
Token |
getToken(int index)
Get the specific Token. |
void |
IdentifierList()
|
void |
InclusiveORExpression()
|
void |
InitDeclarator()
|
void |
InitDeclaratorList()
|
void |
Initializer()
|
void |
InitializerList()
|
void |
IterationStatement()
|
void |
JumpStatement()
|
void |
LabeledStatement()
|
void |
LogicalANDExpression()
|
void |
LogicalORExpression()
|
static void |
main(java.lang.String[] args)
|
void |
MultiplicativeExpression()
|
int |
nodeArity()
Returns the number of children on the stack in the current node scope. |
boolean |
nodeCreated()
Determines whether the current node was actually closed and pushed. |
void |
openNodeScope(Node n)
|
void |
ParameterDeclaration()
|
void |
ParameterList()
|
void |
ParameterTypeList()
|
Node |
peekNode()
Returns the node currently on the top of the stack. |
void |
Pointer()
|
void |
pokeNode(Node n)
Puts the node on the top of the stack. |
void |
pokeNode(Node n,
boolean clearNodeScope)
Puts the node on the top of the stack. |
Node |
popNode()
Returns the node on the top of the stack, and remove it from the stack. |
void |
PostfixExpression()
|
void |
PrimaryExpression()
|
void |
pushNode(Node n)
push a node onto the top of the node stack |
void |
RelationalExpression()
|
Node |
rootNode()
Returns the root node of the AST. |
void |
SelectionStatement()
|
void |
setBuildTree(boolean buildTree)
|
void |
setInputSource(java.lang.String inputSource)
|
void |
ShiftExpression()
|
void |
SpecifierQualifierList()
|
void |
Statement()
|
void |
StatementList()
|
void |
StorageClassSpecifier()
|
void |
StructDeclaration()
|
void |
StructDeclarationList()
|
void |
StructDeclarator()
|
void |
StructDeclaratorList()
|
void |
StructOrUnion()
|
void |
StructOrUnionSpecifier()
|
void |
TranslationUnit()
|
void |
TypedefName()
|
void |
TypeName()
|
void |
TypeQualifier()
|
void |
TypeQualifierList()
|
void |
TypeSpecifier()
|
void |
UnaryExpression()
|
void |
UnaryOperator()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public CLexer token_source
Constructor Detail |
---|
public CParser(java.io.Reader stream)
public CParser(CLexer tm)
Method Detail |
---|
public static void main(java.lang.String[] args)
public boolean nodeCreated()
public Node rootNode()
public void pushNode(Node n)
public Node popNode()
public Node peekNode()
public void pokeNode(Node n)
public void pokeNode(Node n, boolean clearNodeScope)
public int nodeArity()
public void clearNodeScope()
public void openNodeScope(Node n)
public void closeNodeScope(Node n, int num)
public void closeNodeScope(Node n, boolean condition)
public boolean getBuildTree()
public void setBuildTree(boolean buildTree)
public void setInputSource(java.lang.String inputSource)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
public final void TranslationUnit() throws ParseException
ParseException
public final void ExternalDeclaration() throws ParseException
ParseException
public final void FunctionDefinition() throws ParseException
ParseException
public final void Declaration() throws ParseException
ParseException
public final void DeclarationList() throws ParseException
ParseException
public final void DeclarationSpecifiers() throws ParseException
ParseException
public final void StorageClassSpecifier() throws ParseException
ParseException
public final void TypeSpecifier() throws ParseException
ParseException
public final void TypeQualifier() throws ParseException
ParseException
public final void StructOrUnionSpecifier() throws ParseException
ParseException
public final void StructOrUnion() throws ParseException
ParseException
public final void StructDeclarationList() throws ParseException
ParseException
public final void InitDeclaratorList() throws ParseException
ParseException
public final void InitDeclarator() throws ParseException
ParseException
public final void StructDeclaration() throws ParseException
ParseException
public final void SpecifierQualifierList() throws ParseException
ParseException
public final void StructDeclaratorList() throws ParseException
ParseException
public final void StructDeclarator() throws ParseException
ParseException
public final void EnumSpecifier() throws ParseException
ParseException
public final void EnumeratorList() throws ParseException
ParseException
public final void Enumerator() throws ParseException
ParseException
public final void Declarator() throws ParseException
ParseException
public final void DirectDeclarator() throws ParseException
ParseException
public final void Pointer() throws ParseException
ParseException
public final void TypeQualifierList() throws ParseException
ParseException
public final void ParameterTypeList() throws ParseException
ParseException
public final void ParameterList() throws ParseException
ParseException
public final void ParameterDeclaration() throws ParseException
ParseException
public final void IdentifierList() throws ParseException
ParseException
public final void Initializer() throws ParseException
ParseException
public final void InitializerList() throws ParseException
ParseException
public final void TypeName() throws ParseException
ParseException
public final void AbstractDeclarator() throws ParseException
ParseException
public final void DirectAbstractDeclarator() throws ParseException
ParseException
public final void TypedefName() throws ParseException
ParseException
public final void Statement() throws ParseException
ParseException
public final void LabeledStatement() throws ParseException
ParseException
public final void ExpressionStatement() throws ParseException
ParseException
public final void CompoundStatement() throws ParseException
ParseException
public final void StatementList() throws ParseException
ParseException
public final void SelectionStatement() throws ParseException
ParseException
public final void IterationStatement() throws ParseException
ParseException
public final void JumpStatement() throws ParseException
ParseException
public final void Expression() throws ParseException
ParseException
public final void AssignmentExpression() throws ParseException
ParseException
public final void AssignmentOperator() throws ParseException
ParseException
public final void ConditionalExpression() throws ParseException
ParseException
public final void ConstantExpression() throws ParseException
ParseException
public final void LogicalORExpression() throws ParseException
ParseException
public final void LogicalANDExpression() throws ParseException
ParseException
public final void InclusiveORExpression() throws ParseException
ParseException
public final void ExclusiveORExpression() throws ParseException
ParseException
public final void ANDExpression() throws ParseException
ParseException
public final void EqualityExpression() throws ParseException
ParseException
public final void RelationalExpression() throws ParseException
ParseException
public final void ShiftExpression() throws ParseException
ParseException
public final void AdditiveExpression() throws ParseException
ParseException
public final void MultiplicativeExpression() throws ParseException
ParseException
public final void CastExpression() throws ParseException
ParseException
public final void UnaryExpression() throws ParseException
ParseException
public final void UnaryOperator() throws ParseException
ParseException
public final void PostfixExpression() throws ParseException
ParseException
public final void PrimaryExpression() throws ParseException
ParseException
public final void ArgumentExpressionList() throws ParseException
ParseException
public final void Constant() throws ParseException
ParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |