Re: [dev] Lexers and parsers 2

2010-08-12 Thread Antoni Grzymala
Antoni Grzymala dixit (2010-08-12, 18:54): > > If you name it 'calc.noam' and type: > > > > echo '(+ 1 2 (+ 3 4) (+ 5 6) 7)' | calc.noam > > I'm sorry, but looking at the above I just couldn't notice the > Greenspun's Tenth Rule of Programming :) s/notice/not notice/ – or whatever, dunno. Whe

Re: [dev] Lexers and parsers 2

2010-08-12 Thread Antoni Grzymala
Maurí­cio CA dixit (2010-08-12, 00:10): > If you name it 'calc.noam' and type: > > echo '(+ 1 2 (+ 3 4) (+ 5 6) 7)' | calc.noam I'm sorry, but looking at the above I just couldn't notice the Greenspun's Tenth Rule of Programming :) -- [a]

[dev] Lexers and parsers 2

2010-08-11 Thread Maurí­cio CA
Hi, all, Some time ago, I asked your sugestions on what should be a parser we could use for shell scripting: http://lists.suckless.org/dev/0908/0822.html Now I would like to show you this tool I wrote. It does exactly what was discussed in those messages, i.e., it's something like yacc that c