Commit graph

2740 commits

Author SHA1 Message Date
Eddie Antonio Santos
1514af710a
Prefer 'wordBreaker' over 'wordBreaking'. 2019-08-29 12:27:47 -06:00
Eddie Antonio Santos
1bb59b3670
Test that it compiles 'wordBreaker' instead. 2019-08-29 11:58:06 -06:00
Eddie Antonio Santos
08637f2f16
Merge pull request #2009 from keymanapp/developer-add-wordbreaking-api
[Developer] Add Word Breaking API
2019-08-28 22:13:36 -06:00
Eddie Antonio Santos
7100879dc2
Support the word breaking API in the compiler. 2019-08-28 14:38:59 -06:00
Eddie Antonio Santos
ae6cbabc9a
Test that a custom wordbreaking function can be added. 2019-08-28 14:26:47 -06:00
Eddie Antonio Santos
0926a99420
Test that all valid example models compile correctly. 2019-08-28 10:20:00 -06:00
Eddie Antonio Santos
1c7d438f52
Rename all *.model.ts files following new convention. 2019-08-28 10:15:46 -06:00
Eddie Antonio Santos
a5cf6be5b0
Use parseWordListFromFilename() in createTrieDataStructure(). 2019-08-27 10:39:28 -06:00
Eddie Antonio Santos
2a20b6bbc7
Test that the actual word list gets parsed properly (UTF-16/UTF-8). 2019-08-27 10:29:52 -06:00
Eddie Antonio Santos
ddef37f7e6
Test a UTF-16LE file compiles properly. 2019-08-27 10:26:21 -06:00
Eddie Antonio Santos
9f62fc503f
Factor out detectEncoding() and spruce up documentation. 2019-08-27 10:22:32 -06:00
Eddie Antonio Santos
06c2996415
Implement 'detecting' UTF-8. 2019-08-27 10:12:27 -06:00
Eddie Antonio Santos
aa06ccda45
Test reading the wordlist from UTF-8. 2019-08-27 10:08:48 -06:00
Eddie Antonio Santos
ef481a5841
Explicitly DO NOT support UTF-16BE. 2019-08-27 10:07:47 -06:00
Eddie Antonio Santos
144cca2b2d
Never mind... UTF-16BE is not supported by Node ¯\_(ツ)_/¯ 2019-08-27 10:02:15 -06:00
Eddie Antonio Santos
3e030debd3
Test for reading in UTF-16BE. 2019-08-27 09:57:04 -06:00
Eddie Antonio Santos
9fa24e2f6f
Implement parseWordListFromFilename() for UTF-16 files. 2019-08-27 09:52:55 -06:00
Eddie Antonio Santos
d84d6ac18d
Test reading from UTF-16LE wordlist. 2019-08-27 09:45:13 -06:00
Eddie Antonio Santos
f2ff8a95fa
Pass multiple arguments to makePathToFixture(). 2019-08-27 09:40:37 -06:00
Marc Durdin
3629853b5c Merge branch 'beta' into developer-integrate-compiler 2019-08-23 13:03:19 +10:00
Eddie Antonio Santos
85e5e27bdc
compileModel() loads word lists relative to model.ts file. 2019-08-22 10:30:00 -06:00
Eddie Antonio Santos
d58087dc95
Create and test compileModel() utility function. 2019-08-22 09:56:13 -06:00
Eddie Antonio Santos
8b4bb6dec5
Make fixture path relative to model.ts. 2019-08-22 09:44:54 -06:00
Eddie Antonio Santos
fcae4c52a4
Factor out loadFromFilename(). 2019-08-22 09:23:51 -06:00
Eddie Antonio Santos
3d4ae1fd8f
Merge branch 'beta' into developer-compiler-cli 2019-08-22 09:12:04 -06:00
Marc Durdin
c0d1932935 [Developer] Add kmlmc command line compiler and environment 2019-08-22 09:13:20 +10:00
Eddie Antonio Santos
f826e02b24
Compile code with a dummy LMLayerWorker and models namespace; enhance assertions. 2019-08-21 14:51:00 -06:00
Eddie Antonio Santos
ea0efe48bd
Create test helper to find fixtures. 2019-08-21 11:27:59 -06:00
Eddie Antonio Santos
1815ad7a18
Fix paths issue from merge. 2019-08-21 11:08:29 -06:00
Marc Durdin
49fd31dbef [Developer] Start integration of model compiler into distribution 2019-08-21 11:55:27 +10:00
Eddie Antonio Santos
1e4fdeb309
Fix paths issue from merge. 2019-08-20 09:49:37 -06:00
Eddie Antonio Santos
ffe1a71f0f
Add simple command line. 2019-08-20 09:44:53 -06:00
Eddie Antonio Santos
f7bf608f1a
Update README with instructions on how to install the command line interface. 2019-08-20 09:43:49 -06:00
Eddie Antonio Santos
e9b2027520
Place command line in the path. 2019-08-20 09:43:31 -06:00
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