Esempio n. 1
0
 public BinaryExpression(Location location, Expression left, Expression right, BinaryOperation operation)
     : base(location)
 {
     this.left = left;
     this.right = right;
     this.operation = operation;
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 public InstructionStatement(Operation operation, Modifier modifier, Parameter a, Parameter b, Location location)
     : base(location)
 {
     Operation = operation;
     Modifier = modifier;
     A = a;
     B = b;
     Location = location;
 }
Esempio n. 4
0
 /// <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;
 }
Esempio n. 5
0
 public void SetCurrentLocation(Location location)
 {
     input.Location = location.Clone();
 }
Esempio n. 6
0
		/// <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;
		}
Esempio n. 7
0
 private void CheckName(string variableName, Location location)
 {
     if (variables.ContainsKey(variableName))
     {
         WriteWarning("Variable/label already defined : " + variableName + " at " + location, location);
     }
 }
Esempio n. 8
0
 public Value(Location location, int value)
     : base(location)
 {
     this.value = value;
 }
Esempio n. 9
0
 public UnaryExpression(Location location, Expression sub, UnaryOperation operation)
     : base(location)
 {
     this.sub = sub;
     this.operation = operation;
 }
Esempio n. 10
0
 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);
 }
Esempio n. 11
0
 public Statement(Location location)
 {
     Location = location;
 }
Esempio n. 12
0
 public ModifiedExpression(Location location, Expression original, Mode mode)
     : base(location)
 {
     Original = original;
     Mode = mode;
 }
Esempio n. 13
0
 public ContainerStatement(Statement instruction, Location location)
     : base(location)
 {
     if (instruction != null)
         Statements.Add(instruction);
 }
Esempio n. 14
0
 public ContainerStatement(Location location)
     : base(location)
 {
 }
Esempio n. 15
0
 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));
     }
 }
Esempio n. 16
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);
 }
Esempio n. 17
0
 public Expression(Location location)
 {
     Location = location;
 }
Esempio n. 18
0
 public LabelName(Location location, string name)
     : base(location)
 {
     this.name = name;
 }
Esempio n. 19
0
 public ComposedLabelName(Location location, string labelName, string parameter)
     : base(location, labelName)
 {
     this.parameter = new LabelName(location, parameter);
 }
Esempio n. 20
0
 /// <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);
 }
Esempio n. 21
0
 public Value(Location location, string value)
     : base(location)
 {
     this.value = Int32.Parse(value);
 }
Esempio n. 22
0
 public EquStatement(Expression expression, Location location)
     : base(location)
 {
     this.expression = expression;
 }