summaryrefslogtreecommitdiffstats
path: root/ds9/library
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2017-06-30 18:48:58 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2017-06-30 18:48:58 (GMT)
commitee1070fe1103bfcada7fe5c3b40a68352f05f53d (patch)
tree9e744dbf04a2dbc1e6fb375beef5dd0bfea396a1 /ds9/library
parent1d5817b311cdaaec31f083eab0dcdfc6a5b155e2 (diff)
downloadblt-ee1070fe1103bfcada7fe5c3b40a68352f05f53d.zip
blt-ee1070fe1103bfcada7fe5c3b40a68352f05f53d.tar.gz
blt-ee1070fe1103bfcada7fe5c3b40a68352f05f53d.tar.bz2
update parser scale
Diffstat (limited to 'ds9/library')
-rw-r--r--ds9/library/lex.fcl7
-rw-r--r--ds9/library/parser.tac20
2 files changed, 22 insertions, 5 deletions
diff --git a/ds9/library/lex.fcl b/ds9/library/lex.fcl
index f81f1ea..8f683e7 100644
--- a/ds9/library/lex.fcl
+++ b/ds9/library/lex.fcl
@@ -39,6 +39,9 @@ el {return $::ELEVATION_}
false {return $::FALSE_}
frame {return $::FRAME_}
highlite {return $::HIGHLITE_}
+histequ {return $::HISTEQU_}
+linear {return $::LINEAR_}
+log {return $::LOG_}
method {return $::METHOD_}
mip {return $::MIP_}
name {return $::NAME_}
@@ -48,10 +51,14 @@ none {return $::NONE_}
off {return $::OFF_}
on {return $::ON_}
open {return $::OPEN_}
+pow {return $::POW_}
save {return $::SAVE_}
scale {return $::SCALE_}
sexagesimal {return $::SEXAGESIMAL_}
+sinh {return $::SINH_}
size {return $::SIZE_}
+squared {return $::SQUARED_}
+sqrt {return $::SQRT_}
survey {return $::SURVEY_}
true {return $::TRUE_}
update {return $::UPDATE_}
diff --git a/ds9/library/parser.tac b/ds9/library/parser.tac
index fca234d..1ab16ba 100644
--- a/ds9/library/parser.tac
+++ b/ds9/library/parser.tac
@@ -32,6 +32,9 @@
%token FALSE_
%token FRAME_
%token HIGHLITE_
+%token HISTEQU_
+%token LINEAR_
+%token LOG_
%token METHOD_
%token MIP_
%token NAME_
@@ -41,10 +44,14 @@
%token OFF_
%token ON_
%token OPEN_
+%token POW_
%token SAVE_
%token SCALE_
%token SEXAGESIMAL_
+%token SINH_
%token SIZE_
+%token SQUARED_
+%token SQRT_
%token SURVEY_
%token TRUE_
%token UPDATE_
@@ -63,8 +70,14 @@ command : 2MASS_ {2MASSDialog} 2mass
| ALIGN_ align
| ANALYSIS_ analysis
| ARRAY_ array
- | ASINH_ asinh
- | numeric {puts "numeric: $1"}
+ | ASINH_ {global scale; set scale(type) asinh; ChangeScale}
+ | HISTEQU_ {global scale; set scale(type) histequ; ChangeScale}
+ | LINEAR_ {global scale; set scale(type) linear; ChangeScale}
+ | LOG_ {global scale; set scale(type) log; ChangeScale}
+ | POW_ {global scale; set scale(type) pow; ChangeScale}
+ | SINH_ {global scale; set scale(type) sinh; ChangeScale}
+ | SQUARED_ {global scale; set scale(type) squared; ChangeScale}
+ | SQRT_ {global scale; set scale(type) sqrt; ChangeScale}
;
numeric : REAL_ {set _ $1}
@@ -195,8 +208,5 @@ analysis : {puts "*** ANALYSIS ***"}
array : {puts "*** ARRAY ***"}
;
-asinh : {puts "*** ASINH ***"}
- ;
-
%%