Name: Anonymous 2010-11-30 17:46
I want to made a simple programming language, what should I use for parsing:
1. lex + yacc
2. lemon
3. parsec
4. other (what?)
1. lex + yacc
2. lemon
3. parsec
4. other (what?)
m:times head @body ->
$@(do c:head.{_=>gensym; #(`:` $c $n)=>c}
n:head.{x=>x ; #(`:` $c $n)=>n}
#(&e:$n {$c => if $c!=&e do $body rec,$c+1} 0))
// Usage: times i:10 say i