User loginNavigation |
Operator precedenceGetting an expression grammar right is a core part of any language. Simple two-level (mult binds tighter than add) examples abound in texts and such. But how far should it be taken? I'm looking at a grammar now (the lamented - by me - HyperTalk) that has ten levels. Is that going overboard? In particular, what do you get by separating equalities from inequalities like this: ( ) // bind tightest I'm constructing a grammar in which the equalities and inequalities have the same level of binding, i.e. it's left to associativity to sort out who goes first. Is there a gotcha waiting for me? By andrewzboard at 2010-01-25 17:35 | LtU Forum | previous forum topic | next forum topic | other blogs | 5374 reads
|
Browse archivesActive forum topics
|
Recent comments
1 week 3 days ago
2 weeks 1 day ago
2 weeks 2 days ago
2 weeks 2 days ago
3 weeks 14 hours ago
3 weeks 3 days ago
3 weeks 3 days ago
3 weeks 3 days ago
4 weeks 5 days ago
5 weeks 7 hours ago