diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2017-07-12 14:58:33 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2017-07-12 14:58:33 (GMT) |
commit | cde8d5d99872757f55bb700987846360b3e722ba (patch) | |
tree | 06052bb56257b2377c9fc53d068516514e8b4de6 /ds9/library | |
parent | e001dce075ee7a0adf09bdad52e942d6a07938f7 (diff) | |
download | blt-cde8d5d99872757f55bb700987846360b3e722ba.zip blt-cde8d5d99872757f55bb700987846360b3e722ba.tar.gz blt-cde8d5d99872757f55bb700987846360b3e722ba.tar.bz2 |
update parser
Diffstat (limited to 'ds9/library')
-rw-r--r-- | ds9/library/lex.fcl | 6 | ||||
-rw-r--r-- | ds9/library/parser.tac | 14 |
2 files changed, 20 insertions, 0 deletions
diff --git a/ds9/library/lex.fcl b/ds9/library/lex.fcl index ae59c09..9f669d6 100644 --- a/ds9/library/lex.fcl +++ b/ds9/library/lex.fcl @@ -32,6 +32,7 @@ E [Ee][+-]?{D}+ -orient {return $::ORIENTCMD_} -pan {return $::PANCMD_} -pixeltable {return $::PIXELTABLECMD_} +-prefs {return $::PREFSCMD_} -private {return $::PRIVATECMD_} -pow {return $::POWCMD_} -quit {return $::QUITCMD_} @@ -51,7 +52,9 @@ azimuth {return $::AZIMUTH_} az {return $::AZIMUTH_} background {return $::BACKGROUND_} bg {return $::BACKGROUND_} +bgcolor {return $::BGCOLOR_} border {return $::BORDER_} +clear {return $::CLEAR_} close {return $::CLOSE_} color {return $::COLOR_} compass {return $::COMPASS_} @@ -71,6 +74,7 @@ global {return $::GLOBAL_} highlite {return $::HIGHLITE_} histequ {return $::HISTEQU_} in {return $::IN_} +irafalign {return $::IRAFALIGN_} linear {return $::LINEAR_} limits {return $::LIMITS_} line {return $::LINE_} @@ -83,6 +87,7 @@ minmax {return $::MINMAX_} mip {return $::MIP_} mode {return $::MODE_} name {return $::NAME_} +nancolor {return $::NANCOLOR_} new {return $::NEW_} no {return $::NO_} none {return $::NONE_} @@ -102,6 +107,7 @@ size {return $::SIZE_} squared {return $::SQUARED_} sqrt {return $::SQRT_} survey {return $::SURVEY_} +threads {return $::THREADS_} to {return $::TO_} true {return $::TRUE_} update {return $::UPDATE_} diff --git a/ds9/library/parser.tac b/ds9/library/parser.tac index b59d5c8..07a2978 100644 --- a/ds9/library/parser.tac +++ b/ds9/library/parser.tac @@ -26,6 +26,7 @@ set file(load) 0 %token NANCMD_ %token ORIENTCMD_ %token PANCMD_ +%token PREFSCMD_ %token PIXELTABLECMD_ %token PRIVATECMD_ %token POWCMD_ @@ -44,7 +45,9 @@ set file(load) 0 %token ASINH_ %token AZIMUTH_ %token BACKGROUND_ +%token BGCOLOR_ %token BORDER_ +%token CLEAR_ %token CLOSE_ %token COLOR_ %token COMPASS_ @@ -63,6 +66,7 @@ set file(load) 0 %token HIGHLITE_ %token HISTEQU_ %token IN_ +%token IRAFALIGN_ %token LIMITS_ %token LINE_ %token LINEAR_ @@ -75,6 +79,7 @@ set file(load) 0 %token MIP_ %token MODE_ %token NAME_ +%token NANCOLOR_ %token NEW_ %token NO_ %token NONE_ @@ -94,6 +99,7 @@ set file(load) 0 %token SQUARED_ %token SQRT_ %token SURVEY_ +%token THREADS_ %token TO_ %token TRUE_ %token UPDATE_ @@ -125,6 +131,7 @@ command : 2MASSCMD_ {2MASSDialog} 2mass | ORIENTCMD_ orient | PANCMD_ pan | PIXELTABLECMD_ pixelTable + | PREFSCMD_ prefs | PRIVATECMD_ { # backword compatibility } @@ -298,6 +305,13 @@ pixelTable : {PixelTableDialog} | CLOSE_ {PixelTableDestroyDialog} ; +prefs : CLEAR_ {ClearPrefs} + | BGCOLOR_ STRING_ {global pds9; set pds9(bg) $2; PrefsBgColor} + | NANCOLOR_ STRING_ {global pds9; set pds9(nan) $2; PrefsNanColor} + | THREADS_ INT_ {global pds9; set ds9(threads) $2; ChangeThreads} + | IRAFALIGN_ yesno {global pds9; set pds9(iraf) $2; PrefsIRAFAlign} + ; + scale : scaleScales {global scale; set scale(type) $1; ChangeScale} | LOG_ scaleLog | DATASEC_ yesno |