summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/gridparser.tac
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-03-29 21:32:54 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-03-29 21:32:54 (GMT)
commitc3419fd29a2894195925560d2c37915dd555a6d6 (patch)
treed8f5cc7edca60fc84ec1bfa08c6a08fd3892177b /ds9/parsers/gridparser.tac
parent4cc2d933414b448948fb17bf480b281163759016 (diff)
downloadblt-c3419fd29a2894195925560d2c37915dd555a6d6.zip
blt-c3419fd29a2894195925560d2c37915dd555a6d6.tar.gz
blt-c3419fd29a2894195925560d2c37915dd555a6d6.tar.bz2
add ds9 plot parser
Diffstat (limited to 'ds9/parsers/gridparser.tac')
-rw-r--r--ds9/parsers/gridparser.tac33
1 files changed, 9 insertions, 24 deletions
diff --git a/ds9/parsers/gridparser.tac b/ds9/parsers/gridparser.tac
index c8b7afa..f0d2974 100644
--- a/ds9/parsers/gridparser.tac
+++ b/ds9/parsers/gridparser.tac
@@ -164,9 +164,9 @@ border : yesno {global grid; set grid(border) $1}
numerics : yesno {global grid; set grid(numlab) $1}
| FONT_ font {global grid; set grid(numlab,font) $2}
| FONTSIZE_ INT_ {global grid; set grid(numlab,size) $2}
- | FONTWEIGHT_ fontweight {global grid; set grid(numlab,weight) $2}
- | FONTSLANT_ fontslant {global grid; set grid(numlab,slant) $2}
- | FONTSTYLE_ numlabfontstyle
+ | FONTWEIGHT_ fontWeight {global grid; set grid(numlab,weight) $2}
+ | FONTSLANT_ fontSlant {global grid; set grid(numlab,slant) $2}
+ | FONTSTYLE_ fontStyle
| COLOR_ STRING_ {global grid; set grid(numlab,color) $2}
| GAP1_ numeric {global grid; set grid(numlab,gap1) $2}
| GAP2_ numeric {global grid; set grid(numlab,gap2) $2}
@@ -175,28 +175,18 @@ numerics : yesno {global grid; set grid(numlab) $1}
| VERTICAL_ yesno {global grid; set grid(numlab,vertical) $2}
;
-numlabfontstyle : NORMAL_ {global grid; set grid(numlab,weight) normal; set grid(numlab,slant) roman}
- | BOLD_ {global grid; set grid(numlab,weight) bold; set grid(numlab,slant) roman}
- | ITALIC_ {global grid; set grid(numlab,weight) normal; set grid(numlab,slant) italic}
- ;
-
title : yesno {global grid; set grid(title) $1}
| TEXT_ STRING_ {global grid; set grid(title,text) $2}
| DEF_ yesno {global grid; set grid(title,def) $2}
| GAP_ numeric {global grid; set grid(title,gap) $2}
| FONT_ font {global grid; set grid(title,font) $2}
| FONTSIZE_ INT_ {global grid; set grid(title,size) $2}
- | FONTWEIGHT_ fontweight {global grid; set grid(title,weight) $2}
- | FONTSLANT_ fontslant {global grid; set grid(title,slant) $2}
- | FONTSTYLE_ titlefontstyle
+ | FONTWEIGHT_ fontWeight {global grid; set grid(title,weight) $2}
+ | FONTSLANT_ fontSlant {global grid; set grid(title,slant) $2}
+ | FONTSTYLE_ fontStyle
| COLOR_ STRING_ {global grid; set grid(title,color) $2}
;
-titlefontstyle : NORMAL_ {global grid; set grid(title,weight) normal; set grid(title,slant) roman}
- | BOLD_ {global grid; set grid(title,weight) bold; set grid(title,slant) roman}
- | ITALIC_ {global grid; set grid(title,weight) normal; set grid(title,slant) italic}
- ;
-
labels : yesno {global grid; set grid(textlab) $1}
| TEXT1_ STRING_ {global grid; set grid(textlab,text1) $2}
| TEXT2_ STRING_ {global grid; set grid(textlab,text2) $2}
@@ -206,17 +196,12 @@ labels : yesno {global grid; set grid(textlab) $1}
| GAP2_ numeric {global grid; set grid(textlab,gap2) $2}
| FONT_ font {global grid; set grid(textlab,font) $2}
| FONTSIZE_ INT_ {global grid; set grid(textlab,size) $2}
- | FONTWEIGHT_ fontweight {global grid; set grid(textlab,weight) $2}
- | FONTSLANT_ fontslant {global grid; set grid(textlab,slant) $2}
- | FONTSTYLE_ labelsfontstyle
+ | FONTWEIGHT_ fontWeight {global grid; set grid(textlab,weight) $2}
+ | FONTSLANT_ fontSlant {global grid; set grid(textlab,slant) $2}
+ | FONTSTYLE_ fontStyle
| COLOR_ STRING_ {global grid; set grid(textlab,color) $2}
;
-labelsfontstyle : NORMAL_ {global grid; set grid(textlab,weight) normal; set grid(textlab,slant) roman}
- | BOLD_ {global grid; set grid(textlab,weight) bold; set grid(textlab,slant) roman}
- | ITALIC_ {global grid; set grid(textlab,weight) normal; set grid(textlab,slant) italic}
- ;
-
view : GRID_ yesno {global grid; set grid(grid) $1}
| AXES_ viewaxes
| TITLE_ yesno {global grid; set grid(title) $2}