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

Re: About Examples

Alberto's concerns struck me as important.  Andrew's response mirrors my
own behavior in this matter.  Reading the thesis over again make sense.
I built the minibasic, which does nearly everything I want, and learned a
lot from that.

However, some kind of tutorial on writing grammars for SableCC would be
useful.  My old copy of Aho & Ulhman just doesn't get it for me. Is there
anyone out there who could create such a document with examples?

Jack Park

At 03:02 PM 10/1/98 +0100, you wrote:
>	I think I felt the same at first, but I found that if I
>	played with the program on a small test grammar with just
>	a few different commands I learnt quite quickly just by
>	trial and error (also, even the most complicated examples
>	have the simple bits in there too - just ignore nearly
>	everything! :-).  It helped when I understood that the
>	error message told me the line and character of the problem
>	in the grammar!
>	Once you get going, the long examples are useful for showing
>	how different parts of a language can be understood - I
>	wouldn't want them to be shorter, personally.
>	One other thing that I found helped was reading the thesis
>	*again*.  I thought I'd understood most things after reading
>	it once or twice, but after using it for a while and asking
>	some questions here I went back and looked again and learnt
>	a lot more.
>	I don't know if any of this is any help - it's just how I
>	learnt to use it (so far).
>	It's a pity that there aren't more examples of how to use
>	SableCC on the web.  Maybe in time....
>	Andrew
>At 09:09 AM 10/1/98 +0200, you wrote:
>>I think SableCC is the clearest & simplest to use CC I ever seen 
>>(I am not a specialist in grammar theory but I need sometime to
>>define some very simple special purpose grammar)
>> but 
>>			"nobody's perfect"
>>I think that the examples in the package are very interesting but too 
>>long and detailed. It should be better  if you would add more little 
>>but not trivial examples. It is by means of these kind of examples that the
>>understanding of every  subject in every scientific (and not only) field
>>can became greater.