[Q] T-gen scanner/parser generator test

Roel Wuyts rwuyts at vub.ac.be
Tue Aug 8 06:28:24 UTC 2000


I will check with my colleague, since he is actually using T-Gen to 
re-generate our parsers. It works, allthough the fact that it only supports
parsers with 1 lookahead character make it a bit simplistic to use. I will
forward your mail to him.

> Hi
>
> I tested T-gen with the following result:
>
>
> INSTALLATION OF T-GEN
>
> I downloaded the T-gen scanner/parser generator from the link
> mentioned on
> http://minnow.cc.gatech.edu/squeak/1419
>
>
> http://coweb.cc.gatech.edu:8888/cs2340/uploads/tgen.zip
>
> and installed it in a Squeak image 2.8a 2052 according to the
> instructions in the ReadMe file.
>
> Installation caused no Walkbacks.
>
>
> TESTING T-GEN
> 1)
> When evaluating
> TranslatorGenerator runAllTests
> all tests failed.
>
> The tests generate a scanner and a parser class in the category
> 'TGen-Interface'.
> You have to remove them manually after a test failed. I evaluated the tests
> individually as well with the same results.
>
>
> 2)
> After evaluating
> TGenUI open
> in Morphic and loading each examples manually I got the follwing results
>
> ex 1 LL(1)  OK
> ex 2 LL(1) OK
> ex 3  LL(1)  OK
> ex 4 LALR(1)  OK
> ex 5 LR(1)  OK
> ex 6 LR(1); generation failed; nondeterministic parser available
> ex 10 LL(1)  OK
> (Make sure to choose 'any parser' in upper left pane in the GUI)
>
> 'OK' means a parse tree was generated which looked more or less like it
> should
> be. However I didn't do a thourough check.
>
>
> I could imagine that a relatively small error makes all tests fail. However
> I wasn't able
> to spot an error.
>
>
>
> QUESTIONS
>
> Is the version of the T-gen port  mentioned above the latest one?
>
> Do you have some suggestions / hints / changesets on fixing the problem?
>
>
>
>
> Thanks in advance for your efforts
>
> Hannes
>


--
Roel Wuyts                    Programming Technology Lab
rwuyts at vub.ac.be              Vrije Universiteit Brussel
http://prog.vub.ac.be/~rwuyts
Webmaster of European Smalltalk User Group: www.esug.org





More information about the Squeak-dev mailing list