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

19 lines
401 B
Plaintext

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