protected ASTElement(string text, nodeType type, ASTElement parent) { m_nodeType = type; m_parent = parent; m_serial = ms_serialCounter++; m_text = text; }
protected ASTComposite(string text, nodeType type, ASTElement parent, int numContexts) : base(text, type, parent) { m_children = new List <ASTElement> [numContexts]; for (int i = 0; i < numContexts; i++) { m_children[i] = new List <ASTElement>(); } m_nodeName = GenerateNodeName(); }
public CASTReturnStatement(String text, ASTElement parent, int numContexts) : base(text, nodeType.NT_STATEMENT_RETURN, parent, numContexts) { }
public CASTEpxressionStatement(String text, ASTElement parent, int numContexts) : base(text, nodeType.NT_STATEMENT_EXPRESSION, parent, numContexts) { }
public CASTExpressionDivision(string text, ASTElement parent, int numContexts) : base(text, nodeType.NT_EXPRESSION_DIVISION, parent, numContexts) { }
public CASTFunctionDefinition(String text, ASTElement parent, int numContexts) : base(text, nodeType.NT_FUNCTIOΝDEFINITION, parent, numContexts) { }
public CASTStatement(String text, nodeType type, ASTElement parent, int numContexts) : base(text, type, parent, numContexts) { }
public CASTWhileStatement(String text, ASTElement parent, int numContexts) : base(text, nodeType.NT_WHILESTATEMENT, parent, numContexts) { }
public CASTExpressionInParenthesis(String text, ASTElement parent, int numContexts) : base(text, nodeType.NT_EXPRESSION_PARENTHESIS, parent, numContexts) { }
public CASTExpressionMinus(String text, ASTElement parent, int numContexts) : base(text, nodeType.NT_EXPRESSION_MINUS, parent, numContexts) { }
public CASTExpressionSubtraction(string text, ASTElement parent, int numContexts) : base(text, nodeType.NT_EXPRESSION_SUBSTRACTION, parent, numContexts) { }
public CASTExpressionAddition(string text, ASTElement parent, int numContexts) : base(text, nodeType.NT_EXPRESSION_ADDITION, parent, numContexts) { }
public CASTIDENTIFIER(string idText, ASTElement parent) : base(idText, nodeType.NT_EXPRESSION_IDENTIFIER, parent) { m_nodeName = GenerateNodeName(); }
protected ASTTerminal(string text, nodeType type, ASTElement parent) : base(text, type, parent) { m_text = text; }
internal void AddChild(ASTElement child, contextType ct) { int index = GetContextIndex(ct); m_children[index].Add(child); }
public CASTNUMBER(string numberText, ASTElement parent) : base(numberText, nodeType.NT_EXPRESSION_NUMBER, parent) { m_value = Int32.Parse(numberText); m_nodeName = GenerateNodeName(); }
public CASTBreakStatement(String text, ASTElement parent, int numContexts) : base(text, nodeType.NT_STATEMENT_BREAK, parent, numContexts) { }
public CASTExpressionAssign(string text, ASTElement parent, int numContexts) : base(text, nodeType.NT_EXPRESSION_ASSIGN, parent, numContexts) { }
public CASTIfStatement(String text, ASTElement parent, int numContexts) : base(text, nodeType.NT_IFSTATEMENT, parent, numContexts) { }
public CASTExpressionLte(String text, ASTElement parent, int numContexts) : base(text, nodeType.NT_EXPRESSION_LTE, parent, numContexts) { }
public CASTCompileUnit(string text, ASTElement parent, int numContexts) : base(text, nodeType.NT_COMPILEUNIT, parent, numContexts) { }
public CASTExpressionNequal(String text, ASTElement parent, int numContexts) : base(text, nodeType.NT_EXPRESSION_NEQUAL, parent, numContexts) { }
public CASTExpressionMultiplication(string text, ASTElement parent, int numContexts) : base(text, nodeType.NT_EXPRESSION_MULTIPLICATION, parent, numContexts) { }
public CASTStatementList(String text, ASTElement parent, int numContexts) : base(text, nodeType.NT_STATEMENTLIST, parent, numContexts) { }
public Result Visit(ASTElement node, VParam param = default(VParam)) { return(node.Accept(this, param)); }
public CASTCompoundStatement(String text, ASTElement parent, int numContexts) : base(text, nodeType.NT_COMPOUNDSTATEMENT, parent, numContexts) { }