[Oberon] Detecting whether a Text is a module source.

Bob Walkden bob at web-options.com
Sun Jan 29 17:10:59 CET 2017


According to the EBNF for O7, the smallest legal module is 

MODULE ident; END ident.

So I think you'd have to check your text for that at least.

B

> On 29 Jan 2017, at 16:00, "peter at easthope.ca" <peter at easthope.ca> wrote:
> 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> 123456789 
> 
> To detect whether a Text is a source, my initial thought is to read, 
> searching for the keyword MODULE. 
> 
> This or a similar problem must have been solved years ago.  Tips?  A 
> similar calculation to adapt to this case?
> 
> Thanks,                    ... Lyall E. 
> -- 
> 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789
> Tel: +1 360 639 0202                      Pender Is.: +1 250 629 3757
> http://easthope.ca/Peter.html              Bcc: peter at easthope. ca
> 
> --
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon


More information about the Oberon mailing list