instaparse

If you're not trampolining your parser, why bother getting up in the morning?
scarrucciu 2020-08-14T02:43:40.003900Z

Hello all, is there a way to match on a value, but still use that value for a downstream rule? For example have a string that looks like "ABC*123~EFG*456~HIJ*789" and I would want to nest down a level when I see ABC and HIJ, but I also want to parse the ABC and HIJ are part of the regular segment structure that is using the ~ as the delim

aengelberg 2020-08-14T02:44:51.004300Z

Would the lookahead feature help?

scarrucciu 2020-08-14T02:45:43.004500Z

was thinking that, would that allow me to essentially parse prospectively without actually pulling the value? Will try it now

scarrucciu 2020-08-14T02:46:56.004700Z

that worked! and was way to simple. Thanks for the quick reply