public BinaryExpression(Location location, Expression left, Expression right, BinaryOperation operation) : base(location) { this.left = left; this.right = right; this.operation = operation; }
public TernaryExpression(Location location, Expression left, Expression middle, Expression right, TernaryOperation operation) : base(location) { this.operation = operation; this.left = left; this.middle = middle; this.right = right; }
public InstructionStatement(Operation operation, Modifier modifier, Parameter a, Parameter b, Location location) : base(location) { Operation = operation; Modifier = modifier; A = a; B = b; Location = location; }
/// <summary> /// Creates a new accept state object. /// </summary> /// <param name="state">The accept state in the DFA.</param> /// <param name="location">The input location when the DFA was in this state.</param> public AcceptInfo(EndState state, Location location) { this.state = state; this.location = location; }
public void SetCurrentLocation(Location location) { input.Location = location.Clone(); }
/// <summary> /// Creates a new terminal token object. /// </summary> /// <param name="symbol">The symbol that this token represents.</param> /// <param name="text">The text from the input that is the token.</param> /// <param name="location">The location in the input that this token /// has been found.</param> public TerminalToken(SymbolTerminal symbol, string text, Location location) { this.symbol = symbol; this.text = text; this.location = location; }
private void CheckName(string variableName, Location location) { if (variables.ContainsKey(variableName)) { WriteWarning("Variable/label already defined : " + variableName + " at " + location, location); } }
public Value(Location location, int value) : base(location) { this.value = value; }
public UnaryExpression(Location location, Expression sub, UnaryOperation operation) : base(location) { this.sub = sub; this.operation = operation; }
private void AddViewItem(String action, Location location, String description, String value, String state, int type) { string[] strItems = new string[7]; strItems[0] = action; if (location != null) { strItems[1] = location.Position.ToString(); strItems[2] = (location.LineNr+1).ToString(); strItems[3] = (location.ColumnNr+1).ToString(); } strItems[4] = description; strItems[5] = StringUtil.ShowEscapeChars(value); strItems[6] = state; ListViewItem item = new ListViewItem(strItems,type); switch (type) { case 0: item.ForeColor = Color.Gray; break; case 1: break; case 2: break; case 3: break; case 4: item.ForeColor = Color.Green; break; case 5: item.ForeColor = Color.Red; break; case 6: item.ForeColor = Color.Gray; break; } parseActionsView.Items.Add(item); }
public Statement(Location location) { Location = location; }
public ModifiedExpression(Location location, Expression original, Mode mode) : base(location) { Original = original; Mode = mode; }
public ContainerStatement(Statement instruction, Location location) : base(location) { if (instruction != null) Statements.Add(instruction); }
public ContainerStatement(Location location) : base(location) { }
protected internal void WriteWarning(string message, Location location) { if (location != null) { WriteMessage( new ParserMessage("Warning: " + message, ParseMessageLevel.Warning, fileName, location.LineNr, location.ColumnNr)); } else { WriteMessage( new ParserMessage("Warning: " + message, ParseMessageLevel.Warning, fileName, 0, 0)); } }
/// <summary> /// Creates a new wrapper for the input. /// </summary> /// <param name="text">Input text.</param> public DFAInput(string text) { this.text = text; location = new Location(0, 0, 0); }
public Expression(Location location) { Location = location; }
public LabelName(Location location, string name) : base(location) { this.name = name; }
public ComposedLabelName(Location location, string labelName, string parameter) : base(location, labelName) { this.parameter = new LabelName(location, parameter); }
/// <summary> /// Creates a new Location object. /// </summary> /// <param name="location">Positional information will be copied from this object.</param> public Location(Location location) { Init(location.position,location.lineNr,location.columnNr); }
public Value(Location location, string value) : base(location) { this.value = Int32.Parse(value); }
public EquStatement(Expression expression, Location location) : base(location) { this.expression = expression; }