Commit graph

4256 commits

Author SHA1 Message Date
Eddie Antonio Santos
ba39766920
Merge remote-tracking branch 'origin/beta' into developer-compiler-cli 2019-08-20 09:42:57 -06:00
Eddie Antonio Santos
4f34630e5c
Rename TypeScript to ts, because even the internal ts does it. 2019-08-20 09:42:31 -06:00
Eddie Antonio Santos
d0bbfcaaef
Explicilty specify what kind of a file we want. 2019-08-20 09:42:15 -06:00
Eddie Antonio Santos
e8d7fb2435
Move the reference line to the compiler. Now the model.ts file doesn't need to know about that either! 2019-08-20 09:41:18 -06:00
Eddie Antonio Santos
5e8faca769
Compile sample-model to source code. 2019-08-20 09:40:55 -06:00
Eddie Antonio Santos
275062f0db
Rough draft of compilation of module. 2019-08-20 09:40:27 -06:00
Eddie Antonio Santos
5f696ac6da
Update developer README. 2019-08-19 15:26:28 -06:00
Eddie Antonio Santos
ca18b318c9
Export ModelSourceError when... the model source code is invalid! 2019-08-19 15:26:28 -06:00
Eddie Antonio Santos
b27f9a7a25
Add minimal README and install deps on build. 2019-08-19 15:26:28 -06:00
Eddie Antonio Santos
ed38a5714f
Add a few more strict checks. 2019-08-19 15:26:28 -06:00
Eddie Antonio Santos
678d853af3
Turn on noUnusedLocals 2019-08-19 15:26:28 -06:00
Eddie Antonio Santos
5e90e955bf
Enable noImplicitReturns. 2019-08-19 15:26:28 -06:00
Eddie Antonio Santos
602932b157
Move all source files to source/ (matching rest of Keyman conventions). 2019-08-19 15:26:27 -06:00
Eddie Antonio Santos
d34648495a
Handle case when BOM appears before a comment or empty line! 2019-08-09 13:10:16 -06:00
Eddie Antonio Santos
3e88b9114a
[Developer] Update documentation on UTF-8 BOM handling; write test. 2019-08-09 12:56:59 -06:00
Eddie Antonio Santos
6c72c2acb3
Default punctuation is no longer specified in compiler. 2019-07-30 10:16:40 -06:00
Eddie Antonio Santos
5513503dd2
Clean-up unused interfaces in lexical model compiler. 2019-07-30 10:12:37 -06:00
Eddie Antonio Santos
3017300f33
Factor out some interfaces required both by compiler and by worker to their own file. 2019-07-30 10:07:11 -06:00
Eddie Antonio Santos
fe0a99c6e4
Merge branch 'master' into lmlayer-specify-punctuation 2019-07-30 09:22:34 -06:00
Eddie Antonio Santos
65136a06e2
Add set -eu to prevent further mistakes in build.sh.
This change is has not been approved by the UK parliament :p
2019-07-30 09:21:37 -06:00
Eddie Antonio Santos
31650eba49
Allow for optional punctuation to be passed into options. 2019-07-29 15:55:17 -06:00
Eddie Antonio Santos
930f4b9eb7
Correct some comments. 2019-07-29 09:19:49 -06:00
Eddie Antonio Santos
37e1dc34cf
[Developer] Add build.sh to developer/js. 2019-07-29 09:17:39 -06:00
Eddie Antonio Santos
87089a197d
Implement alternate open/close quote. 2019-07-25 15:11:40 -06:00
Eddie Antonio Santos
795b862ce6
Add punctuation to trie model source code. 2019-07-25 12:38:24 -06:00
Eddie Antonio Santos
3d2d94e93e
Write interface for specifying punctuation. 2019-07-25 11:36:02 -06:00
Eddie Antonio Santos
9589778597
Test that the compiler adds the punctuation. 2019-07-25 11:26:39 -06:00
Eddie Antonio Santos
2e5855090a
Fix tsconfig... 2019-07-25 11:22:07 -06:00
dependabot[bot]
b4e8f43e19
Bump lodash from 4.17.11 to 4.17.15 in /developer/js
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.15.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.11...4.17.15)

Signed-off-by: dependabot[bot] <support@github.com>
2019-07-19 04:39:37 +00:00
Marc Durdin
1886c19850 [Developer] Include index.ts in tsconfig.json to fix regression from #1861 2019-07-19 06:42:13 +10:00
Eddie Antonio Santos
c80a44e9c5
Remove forgotten console.log(). 2019-07-13 11:07:31 -06:00
Eddie Antonio Santos
c6fbdfa153
Remove Object.values() in favour of Object.keys(). 2019-07-13 11:04:55 -06:00
Eddie Antonio Santos
ae224172e2
Add minimal README. 2019-07-04 09:47:04 -06:00
Eddie Antonio Santos
41b23f1889
Remove example test. 2019-07-04 09:44:34 -06:00
Eddie Antonio Santos
f7a14943a9
Add a simple assertion for testing the trie compiler. 2019-07-04 09:42:53 -06:00
Eddie Antonio Santos
b2c24e08bd
Enable testing with Chai's assert. 2019-07-04 09:16:57 -06:00
Eddie Antonio Santos
4ae5ae9b86
Add mocha-chai for TypeScript. 2019-07-04 09:13:42 -06:00
Eddie Antonio Santos
9eca54b8bd
Haha, nevermind, that might crash on an empty array :( 2019-06-13 09:19:51 -06:00
Eddie Antonio Santos
6270b110b4
Remove unnecessary optional argument to reduce. 2019-06-13 09:15:06 -06:00
Eddie Antonio Santos
33201b2e25
Remove over-specified types for lambdas. 2019-06-13 09:11:42 -06:00
Eddie Antonio Santos
6b51abf67b
Remove now unnecessary @ts-ignore. 2019-06-13 09:09:32 -06:00
Eddie Antonio Santos
41375e4731
Extract sum weights from trie to model compiler. 2019-06-12 15:06:13 -06:00
Eddie Antonio Santos
c1e88eb33c
Merge branch 'master' into lmlayer-remove-obsolete-wordlist 2019-06-03 09:22:48 -06:00
Eddie Antonio Santos
08666cbbdf
Add a reminder TODO. 2019-05-28 11:42:43 -06:00
Eddie Antonio Santos
8e48768512
Remove compiler for old wordlist model; current trie model will handle it. 2019-05-28 11:32:18 -06:00
Eddie Antonio Santos
704faccd92
[LMLayer] Make default key function consistent in compiler and worker. 2019-05-28 09:56:06 -06:00
Marc Durdin
beea4b2582
Merge pull request #1798 from keymanapp/developer-lexical-model-compiler-languages-fix-1793
[developer] Lexical model compiler was not flattening languages arrays for .model_info file
2019-05-24 18:57:01 +10:00
Marc Durdin
176166f404 [Developer] Lexical model compiler should validate model ids found in packages while building 2019-05-24 14:10:49 +10:00
Marc Durdin
b8d732d3e9 [developer] Fixes #1793. Lexical model compiler was not flattening languages arrays for .model_info file 2019-05-24 13:15:31 +10:00
Eddie Antonio Santos
6395ff5ce0
Merge branch 'master' into lmlayer-search-key-param 2019-05-22 23:12:33 -06:00