Philippe edited on 2004-12-13 18:41:52.0
|
Changed project to specification.
|
Burak edited on 2004-12-16 15:04:22.0
|
We could specify \x = x for all characters except n,t,b,r,\.
Meanwhile I added a tentative case \` = ` to the scanner.
|
Philippe edited on 2004-12-16 17:03:42.0
|
Don't forget that the definition of stringLit
is as in Java and in java, the expression
"\`" represents the string containing the two
characters '\\' and '`'. Therefore, you can't change the
meaning of \` to designate the character '`',
at least not within stringLit . Maybe, we could
use the following definition for id:
id ::= ...
| ``' stringLit2 ``'
stringLit2 ::= "like stringLit + escape for character '`'"
stringLit ::= "as in Java"
|