// -123.456 public override Node VisitNumber(DeltinScriptParser.NumberContext context) { double value = double.Parse(context.GetText()); Node node = new NumberNode(value, Range.GetRange(context)); CheckRange(node); return(node); }
public IDAttribute(DeltinScriptParser.NumberContext context) : base(AttributeType.ID, DocRange.GetRange(context)) { ID = int.Parse(context.GetText()); }
public NumberAction(ScriptFile script, DeltinScriptParser.NumberContext numberContext) { Value = double.Parse(numberContext.GetText()); }
// -123.456 public override Node VisitNumber(DeltinScriptParser.NumberContext context) { double value = double.Parse(context.GetText()); return(new NumberNode(value, new Location(file, Range.GetRange(context)))); }