Hi  guys,
Forgive me for I jumped here. If data is used in pragma definitions,
then why is not considered as compiler keyword. There is not a list
with "forbiden" keywords? If something is used in pragma, then should
not be used in other places. This is not an antlr parser issue - more
like a jal problem.

Vasi(funlw65)

On Apr 14, 10:31 pm, Joep Suijs <[email protected]> wrote:
> Hi guys,
>
> The grammar parses all device files without error and this means it
> probably 'understands' the files in the way that the parser keeps in
> pace with the code. The place in the tree of each node still has to be
> adjusted though...
> The next step is to parse actual library code, which is even more
> challenging. I'm struggling with the use of function calls as
> parameters in expressions (which shouldn't be too difficult,
> however...). An more fundamental issue is related to the distinct
> between a token and identifier. In the line:
>
>    pragma  data    0x60-0xFF,0x100-0x1FF,0x200-0x2FF,0x300-0x3FF,0x400-0x4FF
>
> 'data' is a token, but in the line:
>
>    var byte data
>
> 'data' is an identifier. The parser fails at this, since 'data' is
> used as a token at some point and as a result excluded as an
> identifier. This put currently a severe limitation on identifiers
> (variable names, procedure names etc) that are valid, but I can't
> imagine there is no way around this....
>
> So serious debugging ahead. So I need to get the (java) debugger
> running and have to read the book to solve this...
>
> Joep
>
> 2010/4/14  <[email protected]>:
>
> > Revision: 1927
> > Author: jsuijs
> > Date: Wed Apr 14 12:11:08 2010
> > Log: more grammar
> >http://code.google.com/p/jallib/source/detail?r=1927
>
> > Modified:
> >  /trunk/grammar/jal.g
> >  /trunk/grammar/jal.tokens
> >  /trunk/grammar/jalLexer.c
> >  /trunk/grammar/jalLexer.h
> >  /trunk/grammar/jalParser.c
> >  /trunk/grammar/jalParser.h
> >  /trunk/grammar/makefile.do
> >  /trunk/include/peripheral/i2c/i2c_level1.jal
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "jallib" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/jallib?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to