From e5f4f7b85fbb91a293a7d89d7b85adfbaeeb51f4 Mon Sep 17 00:00:00 2001 From: Thalia Archibald Date: Fri, 21 Jun 2024 06:13:09 -0700 Subject: Format whitespace (#86) * Trim trailing whitespace * Ensure final new lines * Convert line endings from CRLF to LF * Replace tabs with spaces --- chapter03/docs/03-grammar.md | 14 +++++++------- chapter03/docs/03-graph2.gv | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'chapter03/docs') diff --git a/chapter03/docs/03-grammar.md b/chapter03/docs/03-grammar.md index 2a6d4c1b..14a7d5fa 100644 --- a/chapter03/docs/03-grammar.md +++ b/chapter03/docs/03-grammar.md @@ -10,7 +10,7 @@ program statement : returnStatement | declStatement - | blockStatment + | blockStatment | expressionStatement | metaStatement ; @@ -38,11 +38,11 @@ returnStatement expression : additiveExpression ; - + additiveExpression - : multiplicativeExpression (('+' | '-') multiplicativeExpression)* + : multiplicativeExpression (('+' | '-') multiplicativeExpression)* ; - + multiplicativeExpression : unaryExpression (('*' | '/') unaryExpression)* ; @@ -62,11 +62,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/chapter03/docs/03-graph2.gv b/chapter03/docs/03-graph2.gv index f570b13e..460b63c8 100644 --- a/chapter03/docs/03-graph2.gv +++ b/chapter03/docs/03-graph2.gv @@ -32,4 +32,4 @@ int a=1; int b=2; int c=0; { int b=3; c=a+b; #showGraph; } return c; #showGraph; Scope1_0:"Scope1_0_a" -> Con_3; Scope1_0:"Scope1_0_b" -> Con_4; Scope1_0:"Scope1_0_c" -> Add7; -} \ No newline at end of file +} -- cgit v1.2.3