On Sun, Nov 22, 2020 at 2:44 PM Alexander Ilin <ajs...@yandex.ru> wrote:
>   1. Is it possible to convert a word defined with EBNF: into a word 
> returning a parser, or to somehow extract the parser from inside it? Is there 
> maybe an undocumented word that could help with that, like by making a 
> wrapper?

You can get the parser object for any rule within a compiled parser
using the 'rule' word:

EBNF: foo [=[
  main='a'
]=]

"main" \ foo rule .
  T{ parser ... }

-- 
https://bluishcoder.co.nz


_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to