public static CfgLalr1ParseTable ToLalr1ParseTable(this CfgDocument cfg, IProgress <CfgLalr1Progress> progress = null) { CfgLalr1ParseTable result = null; var msgs = TryToLalr1ParseTable(cfg, progress, out result); CfgException.ThrowIfErrors(msgs); return(result); }
public static Lalr1Parser ToLalr1Parser(this CfgDocument cfg, IEnumerable <Token> tokenizer, IProgress <CfgLalr1Progress> progress = null) { Lalr1Parser parser; var res = TryToLalr1Parser(cfg, out parser, tokenizer, progress); CfgException.ThrowIfErrors(res); return(parser); }
public static void WriteClassTo(CfgDocument cfg, string name, string @namespace, string language, IProgress <CfgLL1Progress> progress, TextWriter writer) { var msgs = TryWriteClassTo(cfg, name, @namespace, language, progress, writer); CfgException.ThrowIfErrors(msgs); }
public static void PrepareLL1(this CfgDocument cfg, IProgress <CfgLL1Progress> progress = null) { var msgs = TryPrepareLL1(cfg, progress); CfgException.ThrowIfErrors(msgs); }