public ValueAstNode(IToken value) : base(value) { string EBNFType = p4Lexer.DefaultVocabulary.GetSymbolicName(value.Type); switch (EBNFType.ToLower()) { case "string": Type = SALTypeEnum.@string; break; case "number": Type = SALTypeEnum.number; break; case "true": case "false": Type = SALTypeEnum.@bool; break; case "char": Type = SALTypeEnum.@char; break; case "void": Type = SALTypeEnum.@void; break; default: Type = SALTypeEnum.undefined; break; } }
public FunctionSymbol(Scope scope, string name, SALTypeEnum type, List <Symbol> parameterSymbols, bool isExtern) : base(scope, name, type, isExtern) { ParameterSymbols = parameterSymbols; }
public Symbol(Scope scope, string name, SALTypeEnum type, bool isExtern) : this(scope, name, type) { IsExtern = isExtern; }
public Symbol(Scope scope, string name, SALTypeEnum type) { Name = name; Type = type; Scope = scope; }
public IdAstNode(IToken idName, SALTypeEnum type, IToken modifier) : base(idName) { Type = type; ArraySize = Convert.ToInt32(modifier.Text); }
public IdAstNode(IToken idName, SALTypeEnum type) : base(idName) { Type = type; }