projects
/
external
/
ragel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tizen 2.3.1 release
[external/ragel.git]
/
ragel
/
csfflat.cpp
diff --git
a/ragel/csfflat.cpp
b/ragel/csfflat.cpp
index
f3dc864
..
f504eb2
100644
(file)
--- a/
ragel/csfflat.cpp
+++ b/
ragel/csfflat.cpp
@@
-270,7
+270,7
@@
void CSharpFFlatCodeGen::writeExec()
" " << WIDE_ALPH_TYPE() << " _widec;\n";
}
" " << WIDE_ALPH_TYPE() << " _widec;\n";
}
- if (
has
End ) {
+ if (
!no
End ) {
testEofUsed = true;
out <<
" if ( " << P() << " == " << PE() << " )\n"
testEofUsed = true;
out <<
" if ( " << P() << " == " << PE() << " )\n"
@@
-280,7
+280,7
@@
void CSharpFFlatCodeGen::writeExec()
if ( redFsm->errState != 0 ) {
outLabelUsed = true;
out <<
if ( redFsm->errState != 0 ) {
outLabelUsed = true;
out <<
- " if ( " << CS() << " == " << redFsm->errState->id << " )\n"
+ " if ( " <<
v
CS() << " == " << redFsm->errState->id << " )\n"
" goto _out;\n";
}
" goto _out;\n";
}
@@
-288,7
+288,7
@@
void CSharpFFlatCodeGen::writeExec()
if ( redFsm->anyFromStateActions() ) {
out <<
if ( redFsm->anyFromStateActions() ) {
out <<
- " switch ( " << FSA() << "[" << CS() << "] ) {\n";
+ " switch ( " << FSA() << "[" <<
v
CS() << "] ) {\n";
FROM_STATE_ACTION_SWITCH();
SWITCH_DEFAULT() <<
" }\n"
FROM_STATE_ACTION_SWITCH();
SWITCH_DEFAULT() <<
" }\n"
@@
-304,10
+304,10
@@
void CSharpFFlatCodeGen::writeExec()
out << "_eof_trans:\n";
if ( redFsm->anyRegCurStateRef() )
out << "_eof_trans:\n";
if ( redFsm->anyRegCurStateRef() )
- out << " _ps = " << CS() << ";\n";
+ out << " _ps = " <<
v
CS() << ";\n";
out <<
out <<
- " " << CS() << " = " << TT() << "[_trans];\n\n";
+ " " <<
v
CS() << " = " << TT() << "[_trans];\n\n";
if ( redFsm->anyRegActions() ) {
out <<
if ( redFsm->anyRegActions() ) {
out <<
@@
-327,7
+327,7
@@
void CSharpFFlatCodeGen::writeExec()
if ( redFsm->anyToStateActions() ) {
out <<
if ( redFsm->anyToStateActions() ) {
out <<
- " switch ( " << TSA() << "[" << CS() << "] ) {\n";
+ " switch ( " << TSA() << "[" <<
v
CS() << "] ) {\n";
TO_STATE_ACTION_SWITCH();
SWITCH_DEFAULT() <<
" }\n"
TO_STATE_ACTION_SWITCH();
SWITCH_DEFAULT() <<
" }\n"
@@
-337,11
+337,11
@@
void CSharpFFlatCodeGen::writeExec()
if ( redFsm->errState != 0 ) {
outLabelUsed = true;
out <<
if ( redFsm->errState != 0 ) {
outLabelUsed = true;
out <<
- " if ( " << CS() << " == " << redFsm->errState->id << " )\n"
+ " if ( " <<
v
CS() << " == " << redFsm->errState->id << " )\n"
" goto _out;\n";
}
" goto _out;\n";
}
- if (
has
End ) {
+ if (
!no
End ) {
out <<
" if ( ++" << P() << " != " << PE() << " )\n"
" goto _resume;\n";
out <<
" if ( ++" << P() << " != " << PE() << " )\n"
" goto _resume;\n";
@@
-357,21
+357,21
@@
void CSharpFFlatCodeGen::writeExec()
if ( redFsm->anyEofTrans() || redFsm->anyEofActions() ) {
out <<
if ( redFsm->anyEofTrans() || redFsm->anyEofActions() ) {
out <<
- " if ( " << P() << " == " <<
EOFV
() << " )\n"
+ " if ( " << P() << " == " <<
vEOF
() << " )\n"
" {\n";
if ( redFsm->anyEofTrans() ) {
out <<
" {\n";
if ( redFsm->anyEofTrans() ) {
out <<
- " if ( " << ET() << "[" << CS() << "] > 0 ) {\n"
+ " if ( " << ET() << "[" <<
v
CS() << "] > 0 ) {\n"
" _trans = " << CAST(transType) << " (" << ET() <<
" _trans = " << CAST(transType) << " (" << ET() <<
- "[" << CS() << "] - 1);\n"
+ "[" <<
v
CS() << "] - 1);\n"
" goto _eof_trans;\n"
" }\n";
}
if ( redFsm->anyEofActions() ) {
out <<
" goto _eof_trans;\n"
" }\n";
}
if ( redFsm->anyEofActions() ) {
out <<
- " switch ( " << EA() << "[" << CS() << "] ) {\n";
+ " switch ( " << EA() << "[" <<
v
CS() << "] ) {\n";
EOF_ACTION_SWITCH();
SWITCH_DEFAULT() <<
" }\n";
EOF_ACTION_SWITCH();
SWITCH_DEFAULT() <<
" }\n";