diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-02-24 20:51:05 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-02-24 20:51:05 (GMT) |
commit | 56e12771a321dfd6b62dc64aa43f1250d64c349e (patch) | |
tree | 55deb0615c006c7b25f89de60f96b1b22f9c85c7 /ds9/library | |
parent | 44816469866c8a1954b3d7f429a2dd40a478f1d0 (diff) | |
download | blt-56e12771a321dfd6b62dc64aa43f1250d64c349e.zip blt-56e12771a321dfd6b62dc64aa43f1250d64c349e.tar.gz blt-56e12771a321dfd6b62dc64aa43f1250d64c349e.tar.bz2 |
add support for namespaces
Diffstat (limited to 'ds9/library')
-rw-r--r-- | ds9/library/lex.fcl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ds9/library/lex.fcl b/ds9/library/lex.fcl index 7e37754..fe661be 100644 --- a/ds9/library/lex.fcl +++ b/ds9/library/lex.fcl @@ -10,13 +10,16 @@ source $ds9(root)/library/parser.tab.tcl %option yylineno %option debug +%x FOO +%s BAR + D [0-9] E [Ee][+-]?{D}+ %% -close {return $yy::CLOSE_} -in {return $yy::IN_} +<FOO>close {return $yy::CLOSE_} +<BAR>in {return $yy::IN_} fit {return $yy::FIT_} open {return $yy::OPEN_} out {return $yy::OUT_} |