Recursive decent, unmodified, doesn't really work if you don't forward-declare.
-
-
Obviously you can make a "recursive decent where you implemented the stack", but still it's a difference.
1 reply 0 retweets 0 likes -
Since JAI doesn't require forward declaration, I was curious how Jon likes to structure his parsers now.
2 replies 0 retweets 0 likes -
What does RD parsing have to do with forwards? Name resolution is usually done after parsing.
1 reply 0 retweets 1 like -
Because C-like languages can't tell the difference between certain parses until after types are known.
3 replies 0 retweets 0 likes -
Replying to @cmuratori @kssreeram and
(And by "types are known" I mean knowing whether an identifier refers to a type or not)
1 reply 0 retweets 0 likes -
well, couldn't this be remedied with multiple passes?
1 reply 0 retweets 0 likes -
Sure, but now it's definitely not a basic recursive decent parser anymore!
1 reply 0 retweets 0 likes -
Replying to @cmuratori @AMadan4 and
So that's why I was curious. I'd like to know what Jon's preferred solution is.
1 reply 0 retweets 0 likes -
Replying to @cmuratori @AMadan4 and
It's not like I can't imagine how one could possibly build such a parser, right...
1 reply 0 retweets 0 likes
... it's that I want to know how _Jon_ decided to do it, and perhaps why he preferred that.
-
-
Are there any such ambiguities in the syntax of JAI?
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
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.