aboutsummaryrefslogtreecommitdiff
path: root/noao/digiphot/photcal/parser/lexer.com
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /noao/digiphot/photcal/parser/lexer.com
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'noao/digiphot/photcal/parser/lexer.com')
-rw-r--r--noao/digiphot/photcal/parser/lexer.com13
1 files changed, 13 insertions, 0 deletions
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