public static void Test2() { CH_closedScope sc = DummyInstances.DummyScope(); string expr_l = "..str", expr_r = " -> foo "; string expr = expr_l + expr_r; Tok[] strippedToks = TranslateEntry.LexxAndStripWS(expr); var NN = TranslateEntry.Scope(strippedToks, DummyInstances.GE_TestStartRX, DummyInstances.DummyTransLHS); }
public static ParserComb.NamedNode LexxAndParse(string arg, ParserComb.Parser <Tok> .PI startProd) { var parse_matches = TestMG1.RUN_with_rest(startProd, TranslateEntry.LexxAndStripWS(arg)); return(parse_matches.First().N); }