diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-19 18:26:25 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-20 06:07:33 +0100 |
commit | 39f102571dc8b5c120adf0612dbf3a6b77f3c2cf (patch) | |
tree | 6937dcdcc2267dcabda1d2d64bfcbe5c9b029bc0 /parser.cpp | |
parent | 39cb3b36cbac59c938acf6b71cbb3087f0fca5b4 (diff) | |
download | sciteco-39f102571dc8b5c120adf0612dbf3a6b77f3c2cf.tar.gz |
QRegister push-down stack: [x and ]x commands
* rubout is quite tricky but ensures minimal memory copying
Diffstat (limited to 'parser.cpp')
-rw-r--r-- | parser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -338,6 +338,9 @@ StateStart::StateStart() : State() transitions['E'] = &States::ecommand; transitions['I'] = &States::insert; transitions['S'] = &States::search; + + transitions['['] = &States::pushqreg; + transitions[']'] = &States::popqreg; transitions['Q'] = &States::getqreginteger; transitions['U'] = &States::setqreginteger; transitions['%'] = &States::increaseqreg; |