Modula-2 Reloaded

A Modern Typesafe & Literate Programming Notation

Site Menu

Project

Specification

Implementation

Recommendations

Reference

Needs Updating

Work in Progress

Wastebasket

Wiki Manual

edit SideBar

Ignore Symbols

<< Terminals | Pragmas >>

#1 Whitespace   syntax diagram
Whitespace :=
  Space | ASCII_TAB
  ;

#1.1 ASCII Tabulator
ASCII_TAB := CHR(8) ;

#2 Line Comment   syntax diagram
LineComment :=
  '!' CommentCharacter* EndOfLine
  ;

#3 Block Comment   syntax diagram
BlockComment :=
  '(*' ( CommentCharacter | BlockComment | EndOfLine )* '*)'
  ;

#3.1 Comment Character   syntax diagram
CommentCharacter :=
  Digit | Letter | Whitespace | NonAlphaNumQuotable | '\' | "'" | '"'
  ;

#4 End Of Line Marker   syntax diagram
EndOfLine :=
  ASCII_LF | ASCII_CR ASCII_LF?
  ;

#4.1 ASCII Line Feed
ASCII_LF := CHR(10) ;

#4.2 ASCII Carriage Return
ASCII_CR := CHR(13) ;