aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;