diff options
author | Melody Horn <melody@boringcactus.com> | 2020-11-02 23:20:34 -0700 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2020-11-02 23:20:34 -0700 |
commit | abe957952ecf232481a5e9819b94dececa2a5f21 (patch) | |
tree | a57685e3fc6f2d3489f0ebb2c24f80596bebe203 /syntax.md | |
parent | c7f8dc29ea3b4307d35d1f38596ba970af9318fd (diff) | |
download | spec-abe957952ecf232481a5e9819b94dececa2a5f21.tar.gz spec-abe957952ecf232481a5e9819b94dececa2a5f21.zip |
add skeleton of type syntax
Diffstat (limited to 'syntax.md')
-rw-r--r-- | syntax.md | 25 |
1 files changed, 0 insertions, 25 deletions
@@ -23,31 +23,6 @@ AssignmentStatementBody ← AssignmentTargetExpression '=' Expression / ExpressionStatement ← Expression ';' ``` -### Types - -```PEG -Type ← 'const' BasicType / - BasicType '*' / - BasicType '[' Expression ']' / - BasicType 'function' '(' (BasicType ',')* ')' / - BasicType -BasicType ← 'void' / - IntegerType / - 'signed' IntegerType / - 'unsigned' IntegerType / - 'float' / - 'double' / - 'bool' / - 'struct' identifier / - 'enum' identifier / - 'typedef' identifier / - '(' Type ')' -IntegerType ← 'char' / - 'short' / - 'int' / - 'long' -``` - ### Expressions ```PEG |