From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- noao/digiphot/photcal/parser/lexer.com | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 noao/digiphot/photcal/parser/lexer.com (limited to 'noao/digiphot/photcal/parser/lexer.com') diff --git a/noao/digiphot/photcal/parser/lexer.com b/noao/digiphot/photcal/parser/lexer.com new file mode 100644 index 00000000..76255b55 --- /dev/null +++ b/noao/digiphot/photcal/parser/lexer.com @@ -0,0 +1,13 @@ +# Lexer common. This is necessary since the parser, generated by xyacc, +# does not allow any access to the lexer to initialize it, or to get +# variable values. + +# Variables to initialize lexer +int nlines # line counter +int pos # character position in line +char line[SZ_LINE] # last line from file + +# Variables returned by lexer +char id[SZ_LINE] # last identifier from lexer + +common /lexcom/ nlines, pos, line, id -- cgit