They're just higher-order functions that return parsers. There's not much to it.
-
-
Replying to @pervognsen @marc_b_reynolds
E.g. 'sequence' takes a list of parsers and returns a parser that tries each of the parsers, PEG-style, in turn.
1 reply 0 retweets 0 likes -
Replying to @pervognsen
OK, so the name says exactly what it does...thanks.
1 reply 0 retweets 0 likes -
Replying to @marc_b_reynolds
Heh,
@TimSweeneyEpic showed me a neat template parser combinator library in 2003, before Boost Phoenix sullied the idea.2 replies 0 retweets 1 like -
Replying to @pervognsen @TimSweeneyEpic
IMHO an extensible grammar system GP could been quite interesting.."one-size fits all" doesn't work.
1 reply 0 retweets 0 likes -
Replying to @marc_b_reynolds @TimSweeneyEpic
Lisp macros are the sweet spot where you have a skeleton syntax (S-expressions) to allow composability.
2 replies 0 retweets 1 like -
Replying to @pervognsen @marc_b_reynolds
language that has full evaluation capability at the type level needs relatively little in the way of macros.
2 replies 0 retweets 0 likes -
Replying to @TimSweeneyEpic @marc_b_reynolds
Yeah, was just talking about syntax extension, not expansion-time computation.
1 reply 0 retweets 0 likes -
CLOS is an example of what you can do when you mix syntax extension and expansion-time computation.
1 reply 0 retweets 1 like -
Speaking of, I forgot your copy of The Art of the Metaobject Protocol before I returned to Denmark. :(
1 reply 0 retweets 0 likes
I'm in Denmark right now, but please keep or burn the book. "What is the class of this class" is voodoo!
-
-
you mean like UObject->GetClass()?
1 reply 0 retweets 2 likes -
Smalltalk voodoo is considerably more advanced than this Unreal Engine voodoo!
0 replies 0 retweets 4 likes
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.