[metaas-dev] No viable alternative error

David Holroyd dave at badgers-in-foil.co.uk
Sun Feb 18 21:32:46 UTC 2007


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/



More information about the metaas-dev mailing list