Hi William,

I managed to get your grammar snapshot running, but it does not seem
to understand my code. My program is:
var byte aa = 0

procedure aap(byte in bb) is
   aa = aa + 1
end procedure



and the output is below. It does not seem to understand my program. I
do like the specific disignation as line 5:4, but it does not help me
to understand what's wrong...

Joep


setting up parser
calling parser
line 5:4 mismatched character u'p' expecting 'i'
var byte aa = 0
line 3:19 no viable alternative at input u'in'
<error: procedure aap(byte in bb) is>
aa = aa + 1
line 0:-1 mismatched input '<EOF>' expecting '='
<mismatched token: <EOF>, resync=rocedure>
back from parser
dumping our parser/tree nodes
var
byte
aa
=
0
<error: procedure aap(byte in bb) is>
aa
=
aa
+
1
<mismatched token: <EOF>, resync=rocedure>
done with parser/tree nodes

2010/4/7 William <[email protected]>:
> On Apr 7, 9:34 am, "m...@watty" <[email protected]> wrote:
>>
>> I will do a grammar of JAL, though Kyle is best placed. Certainly it
>> will need his confirmation of correctness.
>
> If you don't mind, please take a look at Antlr -- it is just a single
> JAR file. :-)
>
> And you can find my attempt at JAL grammar in the snapshot (files area
> for this group), in the Antlr syntax.  It has nothing to do with C
> (yet). ;-)
>
> Thank you,
>
> William
>
> --
> 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