Oberon Community Platform Forum
November 22, 2019, 07:05:51 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

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


Life is difficult, but fortunately is short!


WWW
« 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:
Code:
| "/"  : s :=  slash; NextChar
on this:
Code:
| "/"  :NextChar;
   IF ch = "/" THEN
     WHILE (ch#Eot)&(ch#0AX)&(ch#0DX) DO NextChar; END;
     s:=-1;
   ELSE s :=  slash;
   END;
« Last Edit: April 16, 2008, 06:02:40 PM by BohdanT » Logged
Pages: [1]
  Print  
 
Jump to:  

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