public override Node ExitHexliteral(PerCederberg.Grammatica.Runtime.Token node) { var element = IntegralLiteralElement.Create(node.Image, true, inUnaryNegate, context.BuilderOptions); node.AddValue(element); return(node); }
public override Node ExitCharLiteral(PerCederberg.Grammatica.Runtime.Token node) { var s = DoEscapes(node.Image); node.AddValue(new CharLiteralElement(s[0])); return(node); }
public override Node ExitDatetime(PerCederberg.Grammatica.Runtime.Token node) { var image = node.Image.Substring(1, node.Image.Length - 2); var element = new DateTimeLiteralElement(image, context); node.AddValue(element); return(node); }
public override Node ExitTimeSpan(PerCederberg.Grammatica.Runtime.Token node) { var image = node.Image.Substring(2, node.Image.Length - 3); var element = new TimeSpanLiteralElement(image); node.AddValue(element); return(node); }
public override Node ExitStringLiteral(PerCederberg.Grammatica.Runtime.Token node) { var s = DoEscapes(node.Image); var element = new StringLiteralElement(s); node.AddValue(element); return(node); }
public override Node ExitOr(PerCederberg.Grammatica.Runtime.Token node) { node.AddValue(AndOrOperation.Or); return(node); }
public override Node ExitGte(PerCederberg.Grammatica.Runtime.Token node) { node.AddValue(LogicalCompareOperation.GreaterThanOrEqual); return(node); }
public override Node ExitLt(PerCederberg.Grammatica.Runtime.Token node) { node.AddValue(LogicalCompareOperation.LessThan); return(node); }
public override Node ExitPower(PerCederberg.Grammatica.Runtime.Token node) { node.AddValue(BinaryArithmeticOperation.Power); return(node); }
public override Node ExitArrayBraces(PerCederberg.Grammatica.Runtime.Token node) { node.AddValue("[]"); return(node); }
public override Node ExitEverything(Token node) { node.AddValue(node.Image.ToString()); return base.ExitEverything(node); }
public override Node ExitUserName(Token node) { node.AddValue(node.GetImage().Substring(9).Trim()); return node; }
public override Node ExitRightShift(PerCederberg.Grammatica.Runtime.Token node) { node.AddValue(ShiftOperation.RightShift); return(node); }
public override Node ExitXor(PerCederberg.Grammatica.Runtime.Token node) { node.AddValue("Xor"); return(node); }
public override Node ExitNumber(Token node) { node.AddValue(Int32.Parse(node.Image)); return base.ExitNumber(node); }
public override Node ExitFalse(PerCederberg.Grammatica.Runtime.Token node) { node.AddValue(new BooleanLiteralElement(false)); return(node); }
public override Node ExitWhitespace(Token node) { node.AddValue(node.Image.ToString()); return base.ExitWhitespace(node); }
public override Node ExitNot(PerCederberg.Grammatica.Runtime.Token node) { node.AddValue(string.Empty); return(node); }
public override Node ExitIdentifier(PerCederberg.Grammatica.Runtime.Token node) { node.AddValue(node.Image); return(node); }
private static Node EchoImage(Token node) { node.AddValue(node.Image); return node; }
public override Node ExitNullLiteral(PerCederberg.Grammatica.Runtime.Token node) { node.AddValue(new NullLiteralElement()); return(node); }
public override Node ExitQuotedString(Token node) { string quotedString = node.GetImage(); // Remove first and last char which are both a quote. string content = quotedString.Substring(1, quotedString.Length - 2); node.AddValue(content); return node; }
public override Node ExitCharacter(Token node) { node.AddValue(node.Image.ToString()); return base.ExitCharacter(node); }