public Dragon.Type Check(Dragon.Type lhs, Dragon.Type rhs) { if (lhs == Dragon.Type.Bool && rhs == Dragon.Type.Bool) { return(Dragon.Type.Bool); } return(null); }
public Dragon.Type Dimension(Dragon.Type type) { this.Match('['); Token tok = _look; this.Match(Tag.NUM); this.Match(']'); if (_look.TagValue == '[') { type = this.Dimension(type); } return(new Array(((Num)tok).Value, type)); }
public Dragon.Type check(Dragon.Type lft, Dragon.Type rht) { if (lft is Array || rht is Array) { return(null); } else if (lft == rht) { return(Dragon.Type.Bool); } else { return(null); } }
public Constant(Token tok, Dragon.Type type) : base(tok, type) { }
public Id(Word id, Dragon.Type type, int offset) : base(id, type) { this.Offset = offset; }