[metaas-dev] No viable alternative error
Martin Schnabel
mb0 at mb0.org
Mon Feb 19 15:57:52 UTC 2007
David Holroyd schrieb:
> On Sun, Feb 18, 2007 at 11:51:38PM +0100, kiroukou wrote:
>
>> 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.
>>
>
> If the ActionScript language spec says the characters are allowed, then
> metaas should really be supporting them :)
>
>
i could not found anything in the as3 spec but
you can check the old spec at 7.6 Identifiers.
http://www.mozilla.org/js/language/E262-3.pdf
i saw some of the ecma 4 drafts referencing that chapter.
it says unicode letters and unicode escapes are allowed in identifiers,
but i couldn't find the exact unicode ranges to use.
terence parr used the unicode ranges from the java 1.5 spec here
http://www.antlr.org/grammar/1152141644268/java.g.
maybe they are similar ?
i am also interested in the code ranges of as2 identifiers but could not
found much about it.
best regards
martin
More information about the metaas-dev
mailing list