public SetValueExpression(Id variable, Expression value) { Variable = variable; Value = value; AddAttribute(new IdAttr(variable)); AddChild(value); }
public VarDeclaration(Terminal type, Id id) { Type = type; Id = id; AddAttribute(new TypeAttr(type)); AddAttribute(new IdAttr(id)); }
public GetArrayValueExpression(Id variable, Expression index) { Variable = variable; Index = index; AddAttribute(new IdAttr(variable)); AddChild(index); }
public FuncDeclaration(Terminal returnType, Id name, ParamDeclaration[] parameters, Block body) { ReturnType = returnType; Params = parameters; Body = body; Name = name; AddAttribute(new TypeAttr(returnType)); AddAttribute(new IdAttr(name)); AddAttribute(parameters); AddChild(body); }
public ParamDeclaration(Terminal type, Id id, bool isArray) { Type = type; Id = id; IsArray = isArray; }
public ReadStatement(Id id) { Id = id; AddAttribute(new IdAttr(id)); }
public ArrayDeclaration(Terminal type, Id id, Num size) : base(type, id) { Size = size; AddAttribute(new NumAttr(size)); }
public override Symbol GetCopy(string str) { var id = new Id(); id.SetValue(str); return id; }
public IdAttr(Id id) { Id = id; }
public GetValueExpression(Id variable) { Variable = variable; AddAttribute(new IdAttr(variable)); }