public new static TProgram Claim(StringClaimer claimer) { TProgram prog = new TProgram(); TExpression e; while ((e = TExpression.Claim(claimer)) != null) { claimer.Claim(SemiColon); prog._expressions.Add(e); } return(prog); }
public static void Main(string[] args) { var file = args.FirstOrDefault(); var code = file is null ? @" for i=0 i<10 i+=1 print(i) " : File.ReadAllText(file); Meta.GetMeta(); TProgram prog = TProgram.Claim(new StringClaimer(code)); prog.Parse(); }