[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: OT(slightly): parser generator for expression with custom operators
- From: Thomas Buergel <Thomas.Buergel@...>
- Date: Wed, 29 Jun 2011 08:39:58 -0700
> My question for CS people out there is: is it possible to automatically
> generate a parser for such an expression language automatically, given
> only a "tabular" description of the operators characteristics, under
> some reasonable constraints (e.g., only unary and binary ops supported;
> binary are only infix, etc.)?
Not *exactly* the thing you're looking for, but pretty close:
http://loop.luaforge.net/library/compiler/Expression.html
I was surprised at the simplicity of it, and the fact that it's found in the LOOP package...
Cheers,
Tom