aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-04 17:09:27 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-04 17:09:27 +0200
commit8cd81e49de4e6eb489a651a282ff9413bbec0100 (patch)
treea21818605b8d2fa30b445951ade767a7406c266f /src
parent42f9ede0f584eb20fa0b1f12636352d8d7be0017 (diff)
Formatting
Diffstat (limited to 'src')
-rw-r--r--src/parser.y12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/parser.y b/src/parser.y
index c09067b..02a0658 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -42,23 +42,23 @@ extern const char *current_file;
%%
-input
- : %empty
+input:
+ %empty
| input line {
if ($2.eqn != NULL)
astprocess($2);
}
;
-line
- : EOL { $$.eqn = NULL; }
+line:
+ EOL { $$.eqn = NULL; }
| exp eol { $$ = $1; }
;
eol: EOL | YYEOF;
-exp
- : IDENT {
+exp:
+ IDENT {
$$.eqn = xmalloc(sizeof(eqn_t));
$$.eqn->type = IDENT;
$$.eqn->ch = $1;