On Sun, Nov 22, 2020 at 6:15 AM Alexander Ilin <[email protected]> wrote:
> So, the question is, is it possible to use the peg vocab to create this 
> layered parsing architecture, where the first layer would consume a stream of 
> file input, and the second would consume a stream of tokens from the first 
> layer?

There is some support for this, as mentioned by Jon with regards to
Tokenizers. See the tail end of the following blog post which uses a
parser to parse the AST from another parser:
https://bluishcoder.co.nz/2008/04/04/factor-parsing-dsl.html

That post is out of date with regards to syntax but hopefully you get the idea.

-- 
https://bluishcoder.co.nz


_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to