SmaCC strange error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

SmaCC strange error

rush
Hello,

Well I have no idea where  I could try to ask this, so my hope is that this
group will be of help as so often is.

I am using latest SmaCC on DS 5.1 and when compiling one grammar I get
strange error in Transcript:
Error: Object class>>doIt at line 1: unrecognised character '`'

It appears that this error is triggered when Smacc attempts to evaluate
following string:

'Character value: `{:dict | RBLiteralNode value: (dict at: ''literal'')
value codePoint}'

This string is defined in:

SmaccNode>>addImplementationSpecificRewritesTo:

I do not have an idea where to start looking in order to get rid of this
error. Thanks in advance for any kind of advice.

rush
--
http://www.templatetamer.com/


Reply | Threaded
Open this post in threaded view
|

Re: SmaCC strange error

John Brant
rush wrote:

> I am using latest SmaCC on DS 5.1 and when compiling one grammar I get
> strange error in Transcript:
> Error: Object class>>doIt at line 1: unrecognised character '`'
>
> It appears that this error is triggered when Smacc attempts to evaluate
> following string:
>
> 'Character value: `{:dict | RBLiteralNode value: (dict at: ''literal'')
> value codePoint}'
>
> This string is defined in:
>
> SmaccNode>>addImplementationSpecificRewritesTo:
>
> I do not have an idea where to start looking in order to get rid of this
> error. Thanks in advance for any kind of advice.

This doesn't cause any problems when generating code -- it only adds a
message to the transcript. The problem occurs because Dolphin is trying
to evaluate a ##() code expression when it is parsed. However, this
doesn't work when you are parsing a rewrite expression and have a `
pattern expression in the ##() expression.

Anyway, you should be able to safely ignore this message.


John Brant


Reply | Threaded
Open this post in threaded view
|

Re: SmaCC strange error

rush
"John Brant" <[hidden email]> wrote in message
news:[hidden email]...
> This doesn't cause any problems when generating code -- it only adds a
> message to the transcript. The problem occurs because Dolphin is trying
> to evaluate a ##() code expression when it is parsed. However, this
> doesn't work when you are parsing a rewrite expression and have a `
> pattern expression in the ##() expression.
>
> Anyway, you should be able to safely ignore this message.

thanks!

rush
--
http://www.templatetamer.com/