Grammalecte  Check-in [36ac4eb1e0]

Overview
Comment:[core][js] gc engine: fix syntax errors
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core | rg
Files: files | file ages | folders
SHA3-256: 36ac4eb1e05e4afbe9abb9e26bff75ec3996ee96fcc198fca9bcc8c9da3c9c36
User & Date: olr on 2018-09-10 14:49:41
Other Links: branch diff | manifest | tags
Context
2018-09-10
14:50
[build] update slices conversion to JS check-in: aa2c423edb user: olr tags: build, rg
14:49
[core][js] gc engine: fix syntax errors check-in: 36ac4eb1e0 user: olr tags: core, rg
13:00
[core][js] gc engine: fix syntax errors check-in: 516c08196b user: olr tags: core, rg
Changes

Modified gc_core/js/lang_core/gc_engine.js from [47e7686c16] to [a0b79dbb13].

  1059   1059           if (sNegPattern === "*") {
  1060   1060               // all morph must match sPattern
  1061   1061               return lMorph.every(sMorph  =>  (sMorph.search(sPattern) !== -1));
  1062   1062           }
  1063   1063           else {
  1064   1064               if (lMorph.some(sMorph  =>  (sMorph.search(sNegPattern) !== -1))) {
  1065   1065                   return false;
         1066  +            }
  1066   1067           }
  1067   1068       }
  1068   1069       // search sPattern
  1069   1070       return lMorph.some(sMorph  =>  (sMorph.search(sPattern) !== -1));
  1070   1071   }
  1071   1072   
  1072   1073   function analyse (sWord, sPattern, sNegPattern) {
................................................................................
  1080   1081           if (sNegPattern === "*") {
  1081   1082               // all morph must match sPattern
  1082   1083               return lMorph.every(sMorph  =>  (sMorph.search(sPattern) !== -1));
  1083   1084           }
  1084   1085           else {
  1085   1086               if (lMorph.some(sMorph  =>  (sMorph.search(sNegPattern) !== -1))) {
  1086   1087                   return false;
         1088  +            }
  1087   1089           }
  1088   1090       }
  1089   1091       // search sPattern
  1090   1092       return lMorph.some(sMorph  =>  (sMorph.search(sPattern) !== -1));
  1091   1093   }
  1092   1094   
  1093   1095   
................................................................................
  1368   1370   //////// GRAMMAR CHECKER PLUGINS
  1369   1371   
  1370   1372   ${pluginsJS}
  1371   1373   
  1372   1374   
  1373   1375   // generated code, do not edit
  1374   1376   const oEvalFunc = {
  1375         -    ${callablesJS}
  1376         -    ${graph_callablesJS}
         1377  +    // callables for regex rules
         1378  +${callablesJS}
         1379  +
         1380  +    // callables for graph rules
         1381  +${graph_callablesJS}
  1377   1382   }
  1378   1383   
  1379   1384   
  1380   1385   if (typeof(exports) !== 'undefined') {
  1381   1386       exports.lang = gc_engine.lang;
  1382   1387       exports.locales = gc_engine.locales;
  1383   1388       exports.pkg = gc_engine.pkg;