This grammar Exp. Exp ::= Ident "'" ; generates a parser that correctly parses x ', but not x' for some reason. I've played with other characters, including other quotation symbols, such as ’ and then both x’ and x ’ are recognized, which is imho the correct behaviour. Any particular reasons, why ' is treated specially (and how to avoid it?)? Thanks!
This grammar
Exp. Exp ::= Ident "'" ;generates a parser that correctly parsesx ', but notx'for some reason. I've played with other characters, including other quotation symbols, such as’and then bothx’andx ’are recognized, which is imho the correct behaviour. Any particular reasons, why'is treated specially (and how to avoid it?)? Thanks!