Skip to content

Commit d4dcc6d

Browse files
authored
VRMLLoader: Upgrade chevrotain to latest version. (#21694)
1 parent 60280be commit d4dcc6d

File tree

5 files changed

+150
-11
lines changed

5 files changed

+150
-11
lines changed

examples/js/libs/chevrotain.min.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/js/loaders/VRMLLoader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2979,9 +2979,9 @@
29792979

29802980
}
29812981

2982-
const ChevrotainParser = chevrotain.Parser; // eslint-disable-line no-undef
2982+
const CstParser = chevrotain.CstParser; // eslint-disable-line no-undef
29832983

2984-
class VRMLParser extends ChevrotainParser {
2984+
class VRMLParser extends CstParser {
29852985

29862986
constructor( tokenVocabulary ) {
29872987

examples/jsm/libs/chevrotain.module.min.js

Lines changed: 141 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/jsm/loaders/VRMLLoader.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import {
3434
Vector2,
3535
Vector3
3636
} from '../../../build/three.module.js';
37-
import { chevrotain } from '../libs/chevrotain.module.min.js';
37+
import chevrotain from '../libs/chevrotain.module.min.js';
3838

3939

4040
class VRMLLoader extends Loader {
@@ -3238,9 +3238,9 @@ class VRMLLexer {
32383238

32393239
}
32403240

3241-
const ChevrotainParser = chevrotain.Parser;// eslint-disable-line no-undef
3241+
const CstParser = chevrotain.CstParser;// eslint-disable-line no-undef
32423242

3243-
class VRMLParser extends ChevrotainParser {
3243+
class VRMLParser extends CstParser {
32443244

32453245
constructor( tokenVocabulary ) {
32463246

utils/build/rollup.examples.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function unmodularize() {
114114
code = code.replace( 'import { MMDParser } from \'../libs/mmdparser.module.js\';', '' );
115115
code = code.replace( 'import { potpack } from \'../libs/potpack.module.js\';', '' );
116116
code = code.replace( 'import { opentype } from \'../libs/opentype.module.min.js\';', '' );
117-
code = code.replace( 'import { chevrotain } from \'../libs/chevrotain.module.min.js\';', '' );
117+
code = code.replace( 'import chevrotain from \'../libs/chevrotain.module.min.js\';', '' );
118118
code = code.replace( 'import { ZSTDDecoder } from \'../libs/zstddec.module.js\';', '' );
119119

120120
// remove newline at the start of file

0 commit comments

Comments
 (0)