internal RantPattern(string name, RantPatternOrigin type, string code) { Name = name; Type = type; Code = code; var compiler = new RantCompiler(name, code); Action = compiler.Read(); Module = compiler.HasModule ? compiler.Module : null; }
public RantExpressionCompiler(string sourceName, string source, TokenReader reader, RantCompiler parentCompiler) { _rantCompiler = parentCompiler; _sourceName = sourceName; _source = source; _reader = reader; _keywords = new List <string>() { "var", "function", "true", "false", "no", "maybe", "list", "if", "return", "while", "break", "for" }; }
public RantExpressionCompiler(string sourceName, string source, TokenReader reader, RantCompiler parentCompiler) { _rantCompiler = parentCompiler; _sourceName = sourceName; _source = source; _reader = reader; _keywords = new List<string>() { "var", "function", "true", "false", "no", "maybe", "list", "if", "return", "while", "break", "for" }; }