aboutsummaryrefslogtreecommitdiff
path: root/syntax.md
diff options
context:
space:
mode:
Diffstat (limited to 'syntax.md')
-rw-r--r--syntax.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/syntax.md b/syntax.md
index 9320b1c..be62b47 100644
--- a/syntax.md
+++ b/syntax.md
@@ -176,7 +176,7 @@ The syntax of Crowbar is given as a [parsing expression grammar](https://en.wiki
### Entry points
-```
+```PEG
HeaderFile ← HeaderFileElement+
HeaderFileElement ← IncludeStatement /
TypeDeclaration /
@@ -189,7 +189,7 @@ ImplementationFileElement ← HeaderFileElement /
### Top-level elements
-```
+```PEG
IncludeStatement ← 'include' string-literal ';'
TypeDeclaration ← StructDeclaration /
@@ -208,7 +208,7 @@ SignatureArguments ← Type identifier ',' SignatureArguments /
### Statements
-```
+```PEG
Block ← '{' Statement* '}'
Statement ← VariableDefinition /
@@ -260,7 +260,7 @@ ExpressionStatement ← Expression ';'
### Types
-```
+```PEG
Type ← 'const' BasicType /
BasicType '*' /
BasicType '[' Expression ']' /
@@ -285,7 +285,7 @@ IntegerType ← 'char' /
### Expressions
-```
+```PEG
AssignmentTargetExpression ← identifier ATEElementSuffix*
ATEElementSuffix ← '[' Expression ']' /
'.' identifier /