[plug] Writing a language?

Ryan ryan at is.as.geeky.as
Mon Jun 16 10:13:58 WST 2003


On Mon, 2003-06-16 at 09:36, Simon Scott wrote:
> Hi all
> 
> Just wondering if anyone here has any experience in writing languages?

No, i prefer to mingle with the less intellectually staggering.

> I need to construct a fairly minimal language for a project, but need a nudge
> to get started (it keeps falling into the 'too hard basket').

*nudge*
 
> The main difficulty I would have I imagine would be parsing and checking
> syntax.... Are there any examples/libraries for parsing freeform text?

If you grok Perl:
http://search.cpan.org/author/DCONWAY/Parse-RecDescent-1.94/lib/Parse/RecDescent.pod

While I've never used it for anything truely useful, I have had success
with it, like partially parsing 2.4 kernel config trees and the like.

Read that pod LOTS of times and search more on google for other people's
slants on it and you'll figure it out.

Ryan



More information about the plug mailing list