[ragel-users] Parsing a component of a machine
Iñaki Baz Castillo
ibc at aliax.net
Mon Feb 2 09:58:17 UTC 2009
2009/2/2 Adrian Thurston <thurston at complang.org>:
> Yes you can. Just make a machine specification containing common statements and then use the include feature.
Ok, I was thinking about that exactly. Also I think I should use
"fgoto" since I have the following grammar:
- From header: display_name uri header_params
- URI
- More stuff (CRLF, SP, TAB, vchar...)
So if I'm not wrong I could insert all the common stuff in a separate
file (using later "include") and create two machines:
- from_header
- uri
So when parsing a "from_header" I should use "fgoto" to parse the
internal URI. I hope this is the correct way.
Really thanks a lot.
--
Iñaki Baz Castillo
<ibc at aliax.net>
More information about the ragel-users
mailing list