Skip to content
Permalink
Browse files

* Using ES6 modules in the project files.

* New dev workflow without using karma/browsers for debugging/testing locally.
  (does not change CI flow which still tests on browsers AND node.js).

* npm release now contains individual files for easier debugging/custom bundling.

fixes #123
  • Loading branch information...
Shahar Soel
Shahar Soel committed Jan 13, 2016
1 parent 788ceb3 commit 058210fc6aa9b564322da69ec4767edc73348630
Showing with 8,623 additions and 9,175 deletions.
  1. +1 −1 .gitignore
  2. +2 −0 .idea/codeStyleSettings.xml
  3. +0 −9 .idea/runConfigurations/KARMA_DEBUG.xml
  4. +13 −0 .idea/runConfigurations/Mocha_Unit.xml
  5. +1 −3 bower.json
  6. +0 −25 build/chevrotain.ts
  7. +0 −640 examples/typescript_ecma5/libs/chevrotain.d.ts
  8. +138 −183 gruntfile.js
  9. +4 −26 karma.conf.js
  10. +6 −2 package.json
  11. +0 −20 scripts/findRefs.js
  12. +0 −27 scripts/findSpecs.js
  13. +47 −52 src/api.ts
  14. +2 −0 src/env.d.ts
  15. +50 −52 src/lang/lang_extensions.ts
  16. +64 −61 src/parse/cache.ts
  17. +2 −5 src/parse/constants.ts
  18. +16 −15 src/parse/exceptions_public.ts
  19. +303 −307 src/parse/gast_builder.ts
  20. +221 −216 src/parse/grammar/checks.ts
  21. +53 −56 src/parse/grammar/first.ts
  22. +42 −44 src/parse/grammar/follow.ts
  23. +58 −61 src/parse/grammar/gast.ts
  24. +3 −4 src/parse/grammar/gast_public.ts
  25. +241 −237 src/parse/grammar/interpreter.ts
  26. +130 −123 src/parse/grammar/lookahead.ts
  27. +14 −19 src/parse/grammar/path.ts
  28. +31 −32 src/parse/grammar/resolver.ts
  29. +89 −90 src/parse/grammar/rest.ts
  30. 0 src/parse/parse_tree.ts
  31. +1,495 −1,469 src/parse/parser_public.ts
  32. +228 −217 src/scan/lexer.ts
  33. +230 −234 src/scan/lexer_public.ts
  34. +79 −82 src/scan/tokens_public.ts
  35. +32 −35 src/text/range.ts
  36. +206 −210 src/utils/utils.ts
  37. +3 −0 test/all.ts
  38. +1 −0 test/env.d.ts
  39. +97 −101 test/full_flow/backtracking/backtracking_parser.ts
  40. +56 −48 test/full_flow/backtracking/backtracking_parser_spec.ts
  41. +186 −164 test/full_flow/error_recovery/sql_statements/sql_recovery_parser.ts
  42. +228 −206 test/full_flow/error_recovery/sql_statements/sql_recovery_spec.ts
  43. +78 −83 test/full_flow/error_recovery/sql_statements/sql_recovery_tokens.ts
  44. +33 −36 test/full_flow/error_recovery/switch_case/Switchcase_recovery_tokens.ts
  45. +115 −105 test/full_flow/error_recovery/switch_case/switchcase_recovery_parser.ts
  46. +182 −169 test/full_flow/error_recovery/switch_case/swithcase_recovery_spec.ts
  47. +28 −30 test/full_flow/parse_tree.ts
  48. +17 −20 test/lang/hash_table_spec.ts
  49. +4 −0 test/mocha.opts
  50. +431 −388 test/parse/gast_builder_spec.ts
  51. +434 −415 test/parse/grammar/checks_spec.ts
  52. +65 −63 test/parse/grammar/first_spec.ts
  53. +48 −46 test/parse/grammar/follow_spec.ts
  54. +7 −10 test/parse/grammar/gast_spec.ts
  55. +611 −577 test/parse/grammar/interperter_spec.ts
  56. +90 −86 test/parse/grammar/lookahead_spec.ts
  57. +17 −16 test/parse/grammar/resolver_spec.ts
  58. +178 −169 test/parse/grammar/samples.ts
  59. +800 −796 test/parse/recognizer_lookahead_spec.ts
  60. +418 −412 test/parse/recognizer_spec.ts
  61. +0 −12 test/requirejs_test_main.js
  62. +384 −377 test/scan/lexer_spec.ts
  63. +51 −55 test/scan/token_spec.ts
  64. +2 −9 test/test.config.js
  65. +54 −58 test/text/range_spec.ts
  66. +5 −8 test/utils/matchers.ts
  67. +183 −158 test/utils/utils_spec.ts
  68. +7 −0 tests_integration/definitions/es6_modules.ts
  69. +8 −0 tests_integration/definitions/namespaces.ts
  70. +1 −1 watch.bat
@@ -4,7 +4,7 @@

/bin
/.tscache
/src/parse/.baseDir.ts
.baseDir.ts
/bower_components
/package

@@ -3,6 +3,8 @@
<component name="ProjectCodeStyleSettingsManager">
<option name="PER_PROJECT_SETTINGS">
<value>
<option name="RIGHT_MARGIN" value="140" />
<option name="WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value="true" />
<option name="FORMATTER_TAGS_ENABLED" value="true" />
<JSCodeStyleSettings>
<option name="ALIGN_OBJECT_PROPERTIES" value="1" />

This file was deleted.

@@ -0,0 +1,13 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Mocha Unit" type="mocha-javascript-test-runner" factoryName="Mocha">
<node-options />
<working-directory>$PROJECT_DIR$</working-directory>
<pass-parent-env>true</pass-parent-env>
<envs />
<ui>bdd</ui>
<extra-mocha-options />
<test-kind>PATTERN</test-kind>
<test-pattern>./bin/test/**/*spec.js</test-pattern>
<method />
</configuration>
</component>
@@ -4,9 +4,7 @@
"description": "Chevrotain is a high performance fault Tolerant Javascript parsing DSL for building recursive decent parsers",
"main": "release/chevrotain.js",
"dependencies": {},
"devDependencies": {
"lodash": "^3.10.1"
},
"devDependencies": {},
"moduleType": [
"globals",
"amd",

This file was deleted.

0 comments on commit 058210f

Please sign in to comment.
You can’t perform that action at this time.