From 8cd81e49de4e6eb489a651a282ff9413bbec0100 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 4 Sep 2024 17:09:27 +0200 Subject: Formatting --- src/parser.y | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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; -- cgit v1.2.3