Context free grammar compilers
I wrote it in C++ with a context-free grammar parser called St-Jean developed by my CRIM teacher Claude Del Vigna.
I never found another so simple to use parser. I mean, look at ANTLR. So powerful. But so complicated. And now my main language of choice is Ruby. ANTLR can compile and generate Ruby, but i is painful. Then Ruby has Treetop. But I never got to use it due to its very light documentation. Well, the search is over, meet Parslet !
Parslet is so cool
OK, I don't want to write another article about it. Just read that:
# ArithmeticDeveloping Calculette is so fun ! But now what ?
a = 1
b = a+2
c = a/b # a is casted to floated first
# call the defined function
a = cube(5) + 2 # => 127
I don't know what to do from there :)
Maybe I will use it to write a programming language that ease the development of artificial intelligences ? Or a Ant game with scripting ? I don't know yet, any idea welcome :)