On 30 January 2010 01:18, Alex Osborne <a...@meshy.org> wrote:
> Liam <liam.ga...@gmail.com> writes:
>
>> Could someone educate me about what developers normally do when faced
>> with having to create a lexer / parser / analyzer, say for clojure?
>
> For parsing something like Clojure I would probably do it by hand, as
> the syntax is regular-enough that it's pretty easy to do.  For parsing
> anything more complex or if I was trying to match a formally specified
> grammar [1] I'd probably use a generator.
>
> [1] http://python.org/doc/2.5.4/ref/grammar.txt

How about for things like binary network protocols?  Would you treat
them the same way as e.g. source code for a language?  Obviously
there's no "code generation", but you still need to parse it.

-- 
Michael Wood <esiot...@gmail.com>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to