summaryrefslogtreecommitdiffstats
path: root/contrib/tools/ragel6/rubyflat.cpp
diff options
context:
space:
mode:
authororivej <[email protected]>2022-02-10 16:45:01 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:01 +0300
commit2d37894b1b037cf24231090eda8589bbb44fb6fc (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/tools/ragel6/rubyflat.cpp
parent718c552901d703c502ccbefdfc3c9028d608b947 (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'contrib/tools/ragel6/rubyflat.cpp')
-rw-r--r--contrib/tools/ragel6/rubyflat.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/contrib/tools/ragel6/rubyflat.cpp b/contrib/tools/ragel6/rubyflat.cpp
index 20eb2095836..827084d2c21 100644
--- a/contrib/tools/ragel6/rubyflat.cpp
+++ b/contrib/tools/ragel6/rubyflat.cpp
@@ -279,17 +279,17 @@ void RubyFlatCodeGen::LOCATE_TRANS()
" _keys = " << vCS() << " << 1\n"
" _inds = " << IO() << "[" << vCS() << "]\n"
" _slen = " << SP() << "[" << vCS() << "]\n"
- " _wide = " << GET_WIDE_KEY() << "\n"
+ " _wide = " << GET_WIDE_KEY() << "\n"
" _trans = if ( _slen > 0 && \n"
- " " << K() << "[_keys] <= _wide && \n"
- " " << "_wide <= " << K() << "[_keys + 1] \n"
+ " " << K() << "[_keys] <= _wide && \n"
+ " " << "_wide <= " << K() << "[_keys + 1] \n"
" ) then\n"
- " " << I() << "[ _inds + _wide - " << K() << "[_keys] ] \n"
+ " " << I() << "[ _inds + _wide - " << K() << "[_keys] ] \n"
" else \n"
" " << I() << "[ _inds + _slen ]\n"
" end\n"
"";
-
+
}
std::ostream &RubyFlatCodeGen::COND_INDEX_OFFSET()
@@ -309,17 +309,17 @@ std::ostream &RubyFlatCodeGen::COND_INDEX_OFFSET()
void RubyFlatCodeGen::COND_TRANSLATE()
{
- out <<
+ out <<
" _widec = " << GET_KEY() << "\n"
" _keys = " << vCS() << " << 1\n"
" _conds = " << CO() << "[" << vCS() << "]\n"
" _slen = " << CSP() << "[" << vCS() << "]\n"
- " _wide = " << GET_WIDE_KEY() << "\n"
- " _cond = if ( _slen > 0 && \n"
- " " << CK() << "[_keys] <= _wide &&\n"
- " " << "_wide <= " << CK() << "[_keys + 1]\n"
+ " _wide = " << GET_WIDE_KEY() << "\n"
+ " _cond = if ( _slen > 0 && \n"
+ " " << CK() << "[_keys] <= _wide &&\n"
+ " " << "_wide <= " << CK() << "[_keys + 1]\n"
" ) then \n"
- " " << C() << "[ _conds + _wide - " << CK() << "[_keys]" << " ]\n"
+ " " << C() << "[ _conds + _wide - " << CK() << "[_keys]" << " ]\n"
" else\n"
" 0\n"
" end\n";