public override object VisitSbyteValue(CryslGrammarParser.SbyteValueContext context) { string sbyteType = context.SBYTE().GetText(); string varName = context.VARNAME().GetText(); ObjectsDeclaration objectDeclaration = new ObjectsDeclaration(); objectDeclaration.Object_type = sbyteType; objectDeclaration.Var_name = varName; return(objectDeclaration); }
public override object VisitBoolValue(CryslGrammarParser.BoolValueContext context) { string boolType = context.BOOL().GetText(); string varName = context.VARNAME().GetText(); ObjectsDeclaration objectDeclaration = new ObjectsDeclaration(); objectDeclaration.Object_type = boolType; objectDeclaration.Var_name = varName; return(objectDeclaration); }
public override object VisitObjects(CryslGrammarParser.ObjectsContext context) { List <ObjectsDeclaration> objectDeclarationList = new List <ObjectsDeclaration>(); foreach (var objects in context.objectlist()) { ObjectsDeclaration declaration = (ObjectsDeclaration)Visit(objects); objectDeclarationList.Add(declaration); } return(objectDeclarationList); }
public override object VisitUshortValue(CryslGrammarParser.UshortValueContext context) { string ushortType = context.USHORT().GetText(); string varName = context.VARNAME().GetText(); ObjectsDeclaration objectDeclaration = new ObjectsDeclaration(); objectDeclaration.Object_type = ushortType; objectDeclaration.Var_name = varName; return(objectDeclaration); }
public override object VisitLongValue(CryslGrammarParser.LongValueContext context) { string longType = context.LONG().GetText(); string varName = context.VARNAME().GetText(); ObjectsDeclaration objectDeclaration = new ObjectsDeclaration(); objectDeclaration.Object_type = longType; objectDeclaration.Var_name = varName; return(objectDeclaration); }
public override object VisitFloatValue(CryslGrammarParser.FloatValueContext context) { string floatType = context.FLOAT().GetText(); string varName = context.VARNAME().GetText(); ObjectsDeclaration objectDeclaration = new ObjectsDeclaration(); objectDeclaration.Object_type = floatType; objectDeclaration.Var_name = varName; return(objectDeclaration); }
public override object VisitDoubleValue(CryslGrammarParser.DoubleValueContext context) { string doubleType = context.DOUBLE().GetText(); string varName = context.VARNAME().GetText(); ObjectsDeclaration objectDeclaration = new ObjectsDeclaration(); objectDeclaration.Object_type = doubleType; objectDeclaration.Var_name = varName; return(objectDeclaration); }
public override object VisitCharValue(CryslGrammarParser.CharValueContext context) { string charType = context.CHAR().GetText(); string varName = context.VARNAME().GetText(); ObjectsDeclaration objectDeclaration = new ObjectsDeclaration(); objectDeclaration.Object_type = charType; objectDeclaration.Var_name = varName; return(objectDeclaration); }