• R/O
  • SSH
  • HTTPS

nina: Commit


Commit MetaInfo

Revision679 (tree)
Time2018-11-23 17:19:48
Authory-moriguchi

Log Message

fixed a bug about skipping spaces

Change Summary

Incremental Difference

--- nina/java/translator/net/morilib/nina/translate/nina_template.dfa.cs.sh (revision 678)
+++ nina/java/translator/net/morilib/nina/translate/nina_template.dfa.cs.sh (revision 679)
@@ -1318,6 +1318,15 @@
13181318 }
13191319 }
13201320
1321+EOF
1322+[ -z "$TYPE" ] && cat << EOF
1323+ if(__stk[__slen - 1].SkipSpaces())
1324+ {
1325+ for(; _isWhiteSpace(c); c = _Read());
1326+ }
1327+
1328+EOF
1329+cat << EOF
13211330 try
13221331 {
13231332 do
--- nina/java/translator/net/morilib/nina/translate/nina_template.dfa.java.sh (revision 678)
+++ nina/java/translator/net/morilib/nina/translate/nina_template.dfa.java.sh (revision 679)
@@ -1173,6 +1173,14 @@
11731173 }
11741174 }
11751175
1176+EOF
1177+[ -z "$TYPE" ] && cat << EOF
1178+ if(__stk[__slen - 1].isSkipSpaces()) {
1179+ for(; _isWhiteSpace(c); c = _read());
1180+ }
1181+
1182+EOF
1183+cat << EOF
11761184 try {
11771185 do {
11781186 en = __stk[__slen - 1];
--- nina/java/translator/net/morilib/nina/translate/nina_template.dfa.js.sub1.sh (revision 678)
+++ nina/java/translator/net/morilib/nina/translate/nina_template.dfa.js.sub1.sh (revision 679)
@@ -27,7 +27,7 @@
2727 echo '/**'
2828 awk '{ printf(" * %s\n", $0) }' description
2929 echo ' */'
30-[ -n "$USE_IMMEDIATE_FN" ] && echo '(function() {'
30+[ -n "$USE_IMMEDIATE_FN" ] && echo '(function($root) {'
3131 cat definition
3232
3333 echo '/* @@@-PARSER-CODE-START-@@@ */'
@@ -879,6 +879,14 @@
879879 }
880880 }
881881
882+EOF
883+[ -z "$TYPE" ] && cat << EOF
884+ if(this.__stk[this.__slen - 1].skipSpaces(this)) {
885+ for(; this._isWhiteSpace(c); c = this._read(rd));
886+ }
887+
888+EOF
889+cat << EOF
882890 try {
883891 do {
884892 en = this.__stk[this.__slen - 1];
@@ -1196,7 +1204,7 @@
11961204 ${CLASSNAME}.parseStream(new java.io.StringReader(s));
11971205 }
11981206 EOF
1199-[ -n "$USE_IMMEDIATE_FN" ] && echo '})();'
1207+[ -n "$USE_IMMEDIATE_FN" ] && echo '})(this);'
12001208
12011209 #
12021210 # print Windows batch file
Show on old repository browser