Package org.btrplace.btrpsl.tree
Class SelfAssignmentStatement
java.lang.Object
org.antlr.runtime.tree.BaseTree
org.antlr.runtime.tree.CommonTree
org.btrplace.btrpsl.tree.BtrPlaceTree
org.btrplace.btrpsl.tree.SelfAssignmentStatement
- All Implemented Interfaces:
org.antlr.runtime.tree.Tree
public class SelfAssignmentStatement extends BtrPlaceTree
A parser to declare a variable.
- Author:
- Fabien Hermenier
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SelfAssignmentStatement.Type
The operation. -
Field Summary
-
Constructor Summary
Constructors Constructor Description SelfAssignmentStatement(SelfAssignmentStatement.Type t, org.antlr.runtime.Token tok, ErrorReporter errs, SymbolsTable syms)
Make a new parser -
Method Summary
Modifier and Type Method Description BtrpOperand
go(BtrPlaceTree parent)
Parse the root of the tree.Methods inherited from class org.btrplace.btrpsl.tree.BtrPlaceTree
append, getChild, ignoreError, ignoreError, ignoreError, ignoreErrors
Methods inherited from class org.antlr.runtime.tree.CommonTree
dupNode, getCharPositionInLine, getChildIndex, getLine, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toString
Methods inherited from class org.antlr.runtime.tree.BaseTree
addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChildCount, getChildren, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTree
-
Constructor Details
-
SelfAssignmentStatement
public SelfAssignmentStatement(SelfAssignmentStatement.Type t, org.antlr.runtime.Token tok, ErrorReporter errs, SymbolsTable syms)Make a new parser- Parameters:
t
- the typetok
- the analysed tokenerrs
- the errors to reportsyms
- the symbol table
-
-
Method Details
-
go
Description copied from class:BtrPlaceTree
Parse the root of the tree.- Overrides:
go
in classBtrPlaceTree
- Parameters:
parent
- the parent of the root- Returns:
- a content
-