grammatica-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Grammatica-users] More Grammatica Help


From: Per Cederberg
Subject: Re: [Grammatica-users] More Grammatica Help
Date: Tue, 23 Mar 2004 13:17:52 +0100

On Tue, 2004-03-23 at 12:51, Per Cederberg wrote:
> Also try the "<grammar> --tokenize <file>"
> command to check that your grammar splits the input into the
> expected tokens.

I might add that you may have to comment out the productions in
order to run this command (to avoid the ambiguity warnings). It
is usually a good idea to start with the token definitions. When
that works add a few productions and test again with a simple 
input file (with the --parse command). Finally the rest of the
productions are written and the whole grammar can be tested.

As Grammatica doesn't require you to write any code for these
tests, they are usually quite simple to perform.

Good luck!

Cheers,

/Per






reply via email to

[Prev in Thread] Current Thread [Next in Thread]