[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About Examples
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....
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)
> "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.