[metaas-dev] No viable alternative error
kiroukou
kiroukou at gmail.com
Sun Feb 18 22:51:38 UTC 2007
Hey,
No in fact it seems that this error occurs when I have some errors in
my code.
I mean sometimes the AS2 ported code has some myMethod( Void ):Void
code, which is not AS3 compliant of course.
And the lexer make this kind of no viable alternative thing.
Even if in french we are using some special characters, I think it
is better for metass to not support them. Except if it does ot affect
performance in any way.
So the problem sounds to be something else. I come back later with
more information before resquesting this non-ascii handling ;)
Thomas
Le 18 févr. 07 à 22:32, David Holroyd a écrit :
> On Sun, Feb 18, 2007 at 08:45:31PM +0000, David Holroyd wrote:
>> On Sun, Feb 18, 2007 at 09:18:49PM +0100, kiroukou wrote:
>>> line 1:0 no viable alternative at character '?'
>>> line 1:1 no viable alternative at character '?'
>>> line 1:2 no viable alternative at character '?'
>>> line 1:0 no viable alternative at character '?'
>>> line 1:1 no viable alternative at character '?'
>>> line 1:2 no viable alternative at character '?'
>
>> I'd still be interested to know where the 'no viable alt' messages
>> are
>> coming from though. Given that they are all reported at 'line 1', I
>> imagine this is actually a message about the code you are generating,
>> rather than the code you are parsing. I suspect that the error
>> reporting in some part of the lexical analysis needs to be
>> tightened up.
>>
>> Were the reported characters question marks ('?') at your end, or are
>> these actually non-ascii characters that are getting mangled by my
>> mail
>> client?
>
> Ok, using a different mail client, I now see that these are indeed
> just
> non-ascii characters.
>
> Is this intended? i.e. if i extend the ActionScript lexer to allow
> additional characters to appear in identifier names (for instance) is
> that going to help you?
>
>
> thanks!
> dave
>
> --
> http://david.holroyd.me.uk/
>
> _______________________________________________
> metaas-dev mailing list
> metaas-dev at lists.badgers-in-foil.co.uk
> http://lists.badgers-in-foil.co.uk/mailman/listinfo/metaas-dev
More information about the metaas-dev
mailing list