summaryrefslogtreecommitdiff
path: root/chapter05/docs
diff options
context:
space:
mode:
Diffstat (limited to 'chapter05/docs')
-rw-r--r--chapter05/docs/05-grammar.md16
-rw-r--r--chapter05/docs/05-graph2.gv2
-rw-r--r--chapter05/docs/05-graph3.gv2
-rw-r--r--chapter05/docs/05-graph4.gv2
-rw-r--r--chapter05/docs/05-graph5.gv2
-rw-r--r--chapter05/docs/05-graph6.gv2
-rw-r--r--chapter05/docs/05-graph8.gv2
7 files changed, 14 insertions, 14 deletions
diff --git a/chapter05/docs/05-grammar.md b/chapter05/docs/05-grammar.md
index 9af39c05..65be4bf7 100644
--- a/chapter05/docs/05-grammar.md
+++ b/chapter05/docs/05-grammar.md
@@ -10,7 +10,7 @@ program
statement
: returnStatement
| declStatement
- | blockStatment
+ | blockStatment
| expressionStatement
| ifStatement
| metaStatement
@@ -43,15 +43,15 @@ returnStatement
expression
: comparisonExpression
;
-
+
comparisonExpression
: additiveExpression (('==' | '!='| '>'| '<'| '>='| '<=') additiveExpression)*
;
-
+
additiveExpression
- : multiplicativeExpression (('+' | '-') multiplicativeExpression)*
+ : multiplicativeExpression (('+' | '-') multiplicativeExpression)*
;
-
+
multiplicativeExpression
: unaryExpression (('*' | '/') unaryExpression)*
;
@@ -73,11 +73,11 @@ INTEGER_LITERAL
: [1-9][0-9]*
| [0]
;
-
+
IDENTIFIER
: NON_DIGIT (NON_DIGIT | DIGIT)*
;
-
+
NON_DIGIT: [a-zA-Z_];
DEC_DIGIT: [0-9];
-``` \ No newline at end of file
+```
diff --git a/chapter05/docs/05-graph2.gv b/chapter05/docs/05-graph2.gv
index 2adb3da5..12506e85 100644
--- a/chapter05/docs/05-graph2.gv
+++ b/chapter05/docs/05-graph2.gv
@@ -75,4 +75,4 @@ return a;
Scope1_0:"Scope1_0_$ctrl" -> Region17;
Scope1_0:"Scope1_0_arg" -> Start2:p1;
Scope1_1:"Scope1_1_a" -> Phi_a18;
-} \ No newline at end of file
+}
diff --git a/chapter05/docs/05-graph3.gv b/chapter05/docs/05-graph3.gv
index 7e049c9c..277bed48 100644
--- a/chapter05/docs/05-graph3.gv
+++ b/chapter05/docs/05-graph3.gv
@@ -63,4 +63,4 @@ return a;
Phi_a18 -> Sub16[taillabel=2];
Return19 -> Region17[taillabel=0 color=red];
Return19 -> Phi_a18[taillabel=1];
-} \ No newline at end of file
+}
diff --git a/chapter05/docs/05-graph4.gv b/chapter05/docs/05-graph4.gv
index ac3dcdd7..88120b4a 100644
--- a/chapter05/docs/05-graph4.gv
+++ b/chapter05/docs/05-graph4.gv
@@ -60,4 +60,4 @@ return a;
Phi_a17 -> EQNode7[taillabel=2];
Return18 -> Region16[taillabel=0 color=red];
Return18 -> Phi_a17[taillabel=1];
-} \ No newline at end of file
+}
diff --git a/chapter05/docs/05-graph5.gv b/chapter05/docs/05-graph5.gv
index b6bfd5f2..b03e90b5 100644
--- a/chapter05/docs/05-graph5.gv
+++ b/chapter05/docs/05-graph5.gv
@@ -57,4 +57,4 @@ return a;
EQNode20 -> Phi_a19[taillabel=2];
Return21 -> Region16[taillabel=0 color=red];
Return21 -> EQNode20[taillabel=1];
-} \ No newline at end of file
+}
diff --git a/chapter05/docs/05-graph6.gv b/chapter05/docs/05-graph6.gv
index f888e8e9..1ad7b94a 100644
--- a/chapter05/docs/05-graph6.gv
+++ b/chapter05/docs/05-graph6.gv
@@ -55,4 +55,4 @@ return c;
Phi_c17 -> Con_6[taillabel=2];
Return19 -> Region16[taillabel=0 color=red];
Return19 -> Phi_c17[taillabel=1];
-} \ No newline at end of file
+}
diff --git a/chapter05/docs/05-graph8.gv b/chapter05/docs/05-graph8.gv
index bef29b93..2af43847 100644
--- a/chapter05/docs/05-graph8.gv
+++ b/chapter05/docs/05-graph8.gv
@@ -126,4 +126,4 @@ return a;
edge [style=dashed color=cornflowerblue];
Scope1_0:"Scope1_0_arg" -> Start2:p1;
Scope1_1:"Scope1_1_a" -> Phi_a34;
-} \ No newline at end of file
+}