Files
IBAFLang/IBAF-cbs/IBAF/IBAF-Start/IBAF-Start.cbs
2024-08-20 13:07:28 +02:00

19 lines
354 B
Plaintext

Language "IBAFlang"
Syntax START:start ::= statement*
Semantics start[[ _:start ]] : =>null-type
Rule start[[ Stmt* ]] = initialise-binding execute-block[[ Stmt* ]]
Lexis keyword ::= 'else' | 'false' | 'if' | 'true' | 'while' | 'int'
Lexis SDF
/*
lexical syntax
``id`` = ``keyword`` {reject}
lexical restrictions
``id`` -/- [A-Za-z0-9]
*/