[Opa] General Questions

Gary Wynne garycwynne at gmail.com
Sun Dec 11 20:04:58 UTC 2011


Thanks for the link - understanding more now :)

This is a pretty good link too, for a parsing tutorial:
http://blog.opalang.org/2011/07/trx-parsing-in-opa.html

Best regards - Gary

On 11 December 2011 18:01, Adam Koprowski <Adam.Koprowski at mlstate.com> wrote:
>    Dear Gary,
>
>>
>> > dispatcher = parser
>> >   | url=(.*) -> page(<>Visiting: {url}</>)
>>
>> [...] I think the most confusing part is from where it starts with
>> dispatcher = ...
>> Where in the docs would be the best place to look to understand what is
>> actually happening in the above code snippet?
>
>
>   'dispatcher' is a parser that given the string (requested URL) produces a
> web resource (server's response). They are explained in the documentation
> here: http://doc.opalang.org/#section_syntax_trex, but I just noticed that
> this section needs a serious re-write (for instance it's not true that
> parsing expression grammars don't behave anything like regular expressions;
> although, indeed, there are important differences). Another possible source
> of information about parsers is this blog
> post: http://blog.opalang.org/2011/08/image-part-3-parsing-external.html.
> Finally, if you have some particular questions don't hesitate to ask on the
> list or on StackOverflow.
>
>   Best,
>   Adam
>
> --
> Adam Koprowski                [http://adam-koprowski.net]
> Opa Tech Evangelist @ MLstate [http://opalang.org | http://mlstate.com]


More information about the Opa mailing list