3 ms·
I've always wanted to write something like regular expressions for lists of objects. So, for example the example of writing a parser, one could use a regex to m
by Nyetan 11y ago
I've always wanted to write something like regular expressions for lists of objects. So, for example the example of writing a parser, one could use a regex to match chars to tokens, then write another that gathers tokens into blocks and etc. Essentially, bottom-up parsing without resorting to parser generators that take over everything. A similar tool would be interesting for querying trees directly.
- lumpypua 11y agoOMeta is an interesting place to start, there's implementations for a ton of languages. Here's a good description of the motivation for OMeta and the .Net implementation: http://www.moserware.com/2008/06/ometa-who-what-when-where-why.html http://www.moserware.com/2008/06/ometa-who-what-when-where-w...
- Nyetan 11y agoThat is definitely very interesting! Writing a parser/compiler for 'x' language tends to be a component of many interesting projects, and that's definitely a good start -- thanks :)