Hello Thomas, Sorry, but this syntax is far from exact. I can give many examples. I just give one now: If you read the syntax of OBJECT type, you see that its fields must be given by VAR declarations, each one being followed by a semicolon, right? But omit the last semicolon, before an END, and the compiler accepts your omission. In fact, the right syntax would be a mix of DeclSeq and FieldList; not so easy to write. As long as you use only a standard compiler, no real problem. But if you want to make your own syntactical tools, it's a little tricky. Regards. Gérard ----- Original Message ----- From: Thomas Frey <frey@inf.ethz.ch> To: <oberon@inf.ethz.ch> Sent: Wednesday, June 18, 2003 8:47 AM Subject: Re: [Oberon] Preprocessing
Unfortunately, I see that the grammatical structure of a mod file becomes more and more complex. The grammar of AOS, for example, has no exact EBNF description yet. Try http://www.bluebottle.ethz.ch/languagereport/node7.html for the EBNF.
--Thomas
-- Oberon@inf.ethz.ch mailing list for ETH Oberon and related systems http://www.lists.inf.ethz.ch/mailman/listinfo/oberon