diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-04-13 19:07:24 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-04-13 19:07:24 (GMT) |
commit | c035c9899e98dd4963f4e26948c4a5159f294f56 (patch) | |
tree | 9c614ce9d8910642704d598656ef2bca68cf2372 /ds9/library/frame.tcl | |
parent | 9dbeaaa6ccc5cb8f3bef0bd33f26b9f7c5332cd4 (diff) | |
download | blt-c035c9899e98dd4963f4e26948c4a5159f294f56.zip blt-c035c9899e98dd4963f4e26948c4a5159f294f56.tar.gz blt-c035c9899e98dd4963f4e26948c4a5159f294f56.tar.bz2 |
add ds9 lock/match parser
Diffstat (limited to 'ds9/library/frame.tcl')
-rw-r--r-- | ds9/library/frame.tcl | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/ds9/library/frame.tcl b/ds9/library/frame.tcl index 112bde6..5322d26 100644 --- a/ds9/library/frame.tcl +++ b/ds9/library/frame.tcl @@ -2526,6 +2526,14 @@ proc ProcessLockCmd {varname iname} { # we need to be realized ProcessRealizeDS9 + global debug + if {$debug(tcl,parser)} { + lock::YY_FLUSH_BUFFER + lock::yy_scan_string [lrange $var $i end] + lock::yyparse + incr i [expr $lock::yycnt-1] + } else { + switch -- [string tolower [lindex $var $i]] { frame - frames { @@ -2651,6 +2659,7 @@ proc ProcessLockCmd {varname iname} { } } } +} proc ProcessSendLockCmd {proc id param} { global panzoom @@ -2700,6 +2709,14 @@ proc ProcessMatchCmd {varname iname} { # we need to be realized ProcessRealizeDS9 + global debug + if {$debug(tcl,parser)} { + match::YY_FLUSH_BUFFER + match::yy_scan_string [lrange $var $i end] + match::yyparse + incr i [expr $match::yycnt-1] + } else { + switch -- [string tolower [lindex $var $i]] { frame - frames { @@ -2745,4 +2762,4 @@ proc ProcessMatchCmd {varname iname} { 3d {Match3DCurrent} } } - +} |