summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/yesno.trl
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-05-08 21:11:59 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-05-08 21:11:59 (GMT)
commit6736e9427bcbabf9a02b7549337df06226b805ae (patch)
treead929d5507cd53c027f2ec2b3d075fe1dce7d8a2 /ds9/parsers/yesno.trl
parent3df839da664ea2addc7ccc6d7868dc55b0ee279b (diff)
downloadblt-6736e9427bcbabf9a02b7549337df06226b805ae.zip
blt-6736e9427bcbabf9a02b7549337df06226b805ae.tar.gz
blt-6736e9427bcbabf9a02b7549337df06226b805ae.tar.bz2
add ds9 samp parser
Diffstat (limited to 'ds9/parsers/yesno.trl')
-rw-r--r--ds9/parsers/yesno.trl9
1 files changed, 9 insertions, 0 deletions
diff --git a/ds9/parsers/yesno.trl b/ds9/parsers/yesno.trl
index a34d258..bee9006 100644
--- a/ds9/parsers/yesno.trl
+++ b/ds9/parsers/yesno.trl
@@ -12,3 +12,12 @@ yesno : {set _ 1}
# YYABORT
# }
+yes : YES_ {set _ 1}
+ | ON_ {set _ 1}
+ | TRUE_ {set _ 1}
+ ;
+
+no : NO_ {set _ 0}
+ | OFF_ {set _ 0}
+ | FALSE_ {set _ 0}
+ ;