From: owner-smallwiki(a)iam.unibe.ch
[mailto:owner-smallwiki@iam.unibe.ch]
On Behalf Of Lukas Renggli
I agree that this should be changed to enhance usability, even-tough I
prefer case-sensitive programming languages ;)
I used to prefer case-sensitive programming languages, but I've changed my
mind and now prefer case-insensitive. If you have two names that just differ
by case, then this is something that is prone to have bugs. For example,
consider the common newbie mistake of using "True" instead of "true"
in
Smalltalk.
Might I ask you a question about SmaCC? I've got a
parser like this:
A : B C { 1 }
| D E { 2 }
Is it somehow possible to tell the parser in certain conditions in 1,
that even-tough that clause matched, it should continue trying to match
with the next clause? I couldn't find an obvious solution for this.
I'm not sure I understand your question. Are you trying to match: "B C",
"D
E", or "B C D E"? If so, you could use:
A : BC
| BC DE
| DE ;
BC : B C {1};
DE : D E {2} ;
Or you could use:
A : B C {1}
| B C D E {1. 2}
| D E {2};
If this isn't what you want, perhaps you can give a real world example...
John Brant