dag

Djmoch's Auto Generator
git clone git://git.danielmoch.com/dag.git
Log | Files | Refs | README | LICENSE

commit 3892ad821590bdd1790b1451ef32c0409c572ac6
parent 2f3175c23154232f24da8bd23dc402f42850d8ee
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sun, 18 Sep 2022 06:25:10 -0400

parse.l: Support flex

Diffstat:
Mparse.l | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/parse.l b/parse.l @@ -1,5 +1,6 @@ %{ /* See LICENSE file for copyright and license details */ +#include <err.h> #include "y.tab.h" %} @@ -43,3 +44,8 @@ none { } [ \t\n]+ + +%% +void yyerror(char *e) { + err(1, "syntax error: %s", e); +}