1
1
mirror of https://github.com/github/semantic.git synced 2024-11-23 08:27:56 +03:00

Fix tabs that crept into this file 😠

This commit is contained in:
Patrick Thomson 2019-06-04 14:19:12 -04:00
parent 01a4bd2ed4
commit f0c880c700

View File

@ -3,28 +3,28 @@
This is an EBNF grammar for the (experimental) core IR language.
```
expr ::= expr '.' expr
| expr ' '+ expr
| '{' expr (';' expr)* ';'? '}'
| 'if' expr 'then' expr 'else' expr
| ('lexical' | 'import' | 'load') expr
| lit
| 'let'? lvalue '=' expr
| '(' expr ')'
expr ::= expr '.' expr
| expr ' '+ expr
| '{' expr (';' expr)* ';'? '}'
| 'if' expr 'then' expr 'else' expr
| ('lexical' | 'import' | 'load') expr
| lit
| 'let'? lvalue '=' expr
| '(' expr ')'
lvalue ::= ident
| parens expr
lvalue ::= ident
| parens expr
lit ::= '#true'
| '#false'
| 'unit'
| 'frame'
| lambda
| ident
lit ::= '#true'
| '#false'
| 'unit'
| 'frame'
| lambda
| ident
lambda ::= ('λ' | '\') ident ('->' | '→') expr
lambda ::= ('λ' | '\') ident ('->' | '→') expr
ident ::= [A-z_] ([A-z0-9_])*
| '#{' [^{}]+ '}'
| '"' [^"]+ '"'
```
ident ::= [A-z_] ([A-z0-9_])*
| '#{' [^{}]+ '}'
| '"' [^"]+ '"'
```