Oberon Community Platform Forum
December 12, 2019, 08:41:18 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register  
Pages: [1]
Author Topic: possibility adding CommentLine in ActiveOberon Compiler  (Read 2598 times)
Sr. Member
Posts: 271

Life is difficult, but fortunately is short!

« on: April 16, 2008, 05:44:41 PM »

Is it possible to add a comment line "//"  Huh ?
In ActiveOberonSyntax  nothing written about comment  Cheesy.
It's very convenient to use and it is noticeable at the same time and very easy to implement:
change in PCS.MOD:
| "/"  : s :=  slash; NextChar
on this:
| "/"  :NextChar;
   IF ch = "/" THEN
     WHILE (ch#Eot)&(ch#0AX)&(ch#0DX) DO NextChar; END;
   ELSE s :=  slash;
« Last Edit: April 16, 2008, 06:02:40 PM by BohdanT » Logged
Pages: [1]
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!