From 815eb928cfe5b837039abad4475181c4b506c714 Mon Sep 17 00:00:00 2001 From: William Joye Date: Sat, 3 Mar 2018 17:28:48 -0500 Subject: simplify ds9 parsers --- ds9/parsers/panlex.fcl | 15 +++------------ ds9/parsers/zoomlex.fcl | 16 +++------------- 2 files changed, 6 insertions(+), 25 deletions(-) diff --git a/ds9/parsers/panlex.fcl b/ds9/parsers/panlex.fcl index 37488da..bc078fc 100644 --- a/ds9/parsers/panlex.fcl +++ b/ds9/parsers/panlex.fcl @@ -1,21 +1,12 @@ +#tab panparser.tab.tcl + %{ %} -%option noyywrap -%option caseless -%option nodefault -%option nointeractive -#%option stack -%option yylineno -#%option debug - -D [0-9] -E [Ee][+-]?{D}+ +#include defs.fin %% -#tab panparser.tab.tcl - close {return $CLOSE_} open {return $OPEN_} to {return $TO_} diff --git a/ds9/parsers/zoomlex.fcl b/ds9/parsers/zoomlex.fcl index 370b31c..f2cfd2c 100644 --- a/ds9/parsers/zoomlex.fcl +++ b/ds9/parsers/zoomlex.fcl @@ -1,21 +1,12 @@ +#tab zoomparser.tab.tcl + %{ %} -%option noyywrap -%option caseless -%option nodefault -%option nointeractive -#%option stack -%option yylineno -#%option debug - -D [0-9] -E [Ee][+-]?{D}+ +#include defs.fin %% -#tab zoomparser.tab.tcl - close {return $CLOSE_} in {return $IN_} fit {return $FIT_} @@ -26,4 +17,3 @@ to {return $TO_} #include base.fin %% - -- cgit v0.12