diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-05-10 21:23:51 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-05-10 21:23:51 (GMT) |
commit | 44b298577ac9f07ec6560fe0a1f6bbd37f8bd250 (patch) | |
tree | 9b2df286f1771499bcb79f4d0b401c498ab7c917 /ds9/parsers | |
parent | abebccd43ae4ebf24ef336ef5c1c2bf18a03becc (diff) | |
download | blt-44b298577ac9f07ec6560fe0a1f6bbd37f8bd250.zip blt-44b298577ac9f07ec6560fe0a1f6bbd37f8bd250.tar.gz blt-44b298577ac9f07ec6560fe0a1f6bbd37f8bd250.tar.bz2 |
add ds9 mosaicimagewfpc2 parser
Diffstat (limited to 'ds9/parsers')
-rw-r--r-- | ds9/parsers/mosaicimagewfpc2lex.fcl | 14 | ||||
-rw-r--r-- | ds9/parsers/mosaicimagewfpc2parser.tac | 32 |
2 files changed, 46 insertions, 0 deletions
diff --git a/ds9/parsers/mosaicimagewfpc2lex.fcl b/ds9/parsers/mosaicimagewfpc2lex.fcl new file mode 100644 index 0000000..8464c5e --- /dev/null +++ b/ds9/parsers/mosaicimagewfpc2lex.fcl @@ -0,0 +1,14 @@ +#tab mosaicimagewfpc2parser.tab.tcl + +%{ +%} + +#include defs.fin + +%% + +new {return $NEW_} + +#include string.fin + +%% diff --git a/ds9/parsers/mosaicimagewfpc2parser.tac b/ds9/parsers/mosaicimagewfpc2parser.tac new file mode 100644 index 0000000..1f3aaa8 --- /dev/null +++ b/ds9/parsers/mosaicimagewfpc2parser.tac @@ -0,0 +1,32 @@ +%{ +%} + +#include string.tin + +%start command + +%token NEW_ + +%% + +command : mosaicimagewfpc2 + | mosaicimagewfpc2 {yyclearin; YYACCEPT} STRING_ + ; + +mosaicimagewfpc2 : opts {MosaicImageWFPC2CmdLoad {}} + | opts STRING_ {MosaicImageWFPC2CmdLoad $2} + ; + +opts : + | NEW_ {CreateFrame} + ; + +%% + +proc mosaicimagewfpc2::yyerror {msg} { + variable yycnt + variable yy_current_buffer + variable index_ + + ParserError $msg $yycnt $yy_current_buffer $index_ +} |