reversing the order declarations are interpreted

5 views
Skip to first unread message

glen lenker

unread,
Feb 10, 2011, 9:29:30 AM2/10/11
to lci-...@googlegroups.com
http://groups.google.com/group/clojure/browse_thread/thread/eed444ebe9bb4b52

I remember talking to you about taking an initial pass of a source
file so you don't have to write declarations. We may have been talking
about another language, so perhaps this is OT. I really didn't
anticipate that this sort of thing was such a short oneliner.

Justin Meza

unread,
Feb 10, 2011, 9:42:17 AM2/10/11
to lci-...@googlegroups.com
Haha that's awesome. Yeah, we were talking about LOLCODE. I think the gist of the conversation was that when parsing 1.2 LOLCODE you can't disambiguate the end of a function parameter list. One solution is to do a pass over the parse tree and collect all of the function definitions beforehand and then parse functions against that list. This has some downsides like not allowing for virtual functions.
Reply all
Reply to author
Forward
0 new messages