Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fragment of Oberon0 for https://ohmlang.github.io/editor/
Oberon0 {
Module = "MODULE" ident ";" "BEGIN" StatSeq "END" ident "."
StatSeq = statement (";" statement)*
statement = procedureCall?
procedureCall = ident (actualParameters | "*")?
actualParameters = "(" integer ("," integer)* ")"
integer = digit+
ident = letter alnum*
}
- Input:
MODULE B;
BEGIN
WriteInt(5,0);
WriteLn
END B.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment