krangelov
b56591c6b6
the parser now ensures that all word senses are in the chart
2019-06-25 12:58:28 +02:00
krangelov
b94bb50ec9
fix in gu_buf_heap_pop
2019-06-24 12:27:36 +02:00
krangelov
e2395335cb
Merge branch 'master' of https://github.com/GrammaticalFramework/gf-core
2019-06-24 12:14:15 +02:00
krangelov
2d9478b973
share some code for printing
2019-06-24 12:13:14 +02:00
John J. Camilleri
17e3f753fb
gflib.ts: put warning on console when function undefined
2019-06-13 14:43:21 +02:00
John J. Camilleri
498ad572ac
gflib.ts: fix in annotation when type is unknown
2019-06-13 14:12:53 +02:00
John J. Camilleri
bc61f8c191
gflib.ts: generate source map, which is helpful for debugging
2019-06-13 13:53:58 +02:00
John J. Camilleri
d252cfd610
gflib.ts: handled unimplemented functions during linearisation
2019-06-13 10:31:49 +02:00
John J. Camilleri
46a1bdc7ea
gflib.ts: also accept U+00C0-U+00FF (\192-\255) in idents in parseTree
...
Matches definition in src/compiler/GF/Grammar/Lexer.x
2019-06-12 15:28:25 +02:00
John J. Camilleri
18d0e1fad0
gflb.ts: add comments about startsWith polyfill, making into module
2019-06-12 09:51:27 +02:00
John J. Camilleri
ab94e93b94
Avoid modifying String prototype in TypeScript runtime
...
Adds new class TaggedString
2019-06-10 11:39:31 +02:00
John J. Camilleri
a229507392
Use strict mode in TypeScript, catch some more corner cases
2019-06-10 11:14:14 +02:00
John J. Camilleri
6a9c917b29
TypeScript readme
2019-06-10 10:19:43 +02:00
John J. Camilleri
9ba4a42426
Add generated gflib.js under typescript/js. Add deprecation notice in javascript.
2019-06-10 10:15:03 +02:00
John J. Camilleri
bbd1c9147a
Catch for when rules are undefined
2019-06-10 09:48:44 +02:00
John J. Camilleri
4793d376d9
Create copies when tagging
...
Not sure if this behaviour is identical to previous version,
or in truth how important it really is anyway
2019-06-10 09:45:04 +02:00
John J. Camilleri
63606fd2d0
Minor indentation fixes in gflib.js
...
Despite it being deprecated 🙈
2019-06-10 09:29:43 +02:00
John J. Camilleri
d6a1e87f4a
Support for pre in gflib.ts. Some type annotation fixes.
2019-06-07 21:17:41 +02:00
John J. Camilleri
ffcdaa921f
Porting of JS runtime to TypeScript (gflib.ts) complete
2019-06-07 13:58:23 +02:00
John J. Camilleri
f2e03bfc51
Remove type definitions gflib.d.ts which contained many errors and now obsolete
2019-06-07 10:07:23 +02:00
John J. Camilleri
c89656f3ee
More type fixes in gflib.ts after setting noImplicitAny
2019-06-07 10:06:19 +02:00
John J. Camilleri
c9b4318e9e
Clean up whitespace in [old] gflib.js
2019-06-07 09:34:13 +02:00
John J. Camilleri
1e43e7be4b
Fix all type errs in gflib.ts except tagging ones. Add TS/eslint configs.
...
gflib.js required changing the String prototype which I'm not sure I want to do here
2019-06-07 09:33:24 +02:00
John J. Camilleri
44261b7582
More progress on gflib.ts
...
All code has been copied from gflib.js but there are many type errors
yet to be resolved
2019-06-05 10:23:27 +02:00
John J. Camilleri
b980bce334
Add gflib.ts, a port of JS runtime gflib.js into TypeScript (WIP)
2019-06-04 15:16:17 +02:00
John J. Camilleri
bd7753db1a
Update TypeScript definitions for gflib.js
...
Still not 100% tested: best solution will really be to rewrite
gflib.js in TypeScript and at the same time use ES modules
2019-05-29 14:43:28 +02:00
krangelov
8c18d7162f
bits of documentation
2019-05-28 12:59:07 +02:00
krangelov
ac039ec74f
filter out empty cohorts
2019-05-28 12:42:59 +02:00
krangelov
9f0ea19a1c
API for scanning for cohorts in an arbitrary text
2019-05-28 12:26:00 +02:00
krangelov
8df2121650
Merge branch 'master' of https://github.com/GrammaticalFramework/gf-core
2019-05-27 09:06:11 +02:00
krangelov
8b9719bd2d
remove duplicate definition for RecordCompare
2019-05-27 09:05:41 +02:00
Thomas Hallgren
a5a019a124
runtime/javascript: use a grammar.js with two langauges
...
grammar.js contained only one langauge: FoodsEng. Now it contains
FoodsEng and FoodsIta, similar to what's shown in the gf-tutorial.
The grammar comes from gf-contrib/tutorial/foods.
2019-05-03 15:19:19 +02:00
Thomas Hallgren
61fe167392
gf-tutorial: fix link to JavaScript translator demo
...
After fixing trivial problem in translator.html, the demo works, but
the example grammar contains only one langauge, so it is not so
interesting. translator.html is located in src/runtime/javascript.
The editor.html in the same location also works.
2019-05-03 14:52:28 +02:00
Aarne Ranta
b3387e80e4
hiding morphological tags from Latex printing of dependency trees
2019-03-20 22:19:32 +01:00
krangelov
099f2de5b4
support cross-compilation from Linux to Windows
2019-03-19 12:43:38 +01:00
krangelov
2f2b39c5d2
Merge branch 'master' of https://github.com/GrammaticalFramework/gf-core
2019-03-19 11:22:09 +01:00
krangelov
f3d7d55752
added one more possible location for Java headers
2019-03-19 11:21:39 +01:00
Thomas Hallgren
0970d678cf
haskell-bind/utils.c: add missing return
...
Found via C compiler warning
2019-03-07 14:11:29 +01:00
krangelov
52f2739da1
strip empty phrases in bracketedLinearize
2019-02-27 08:27:50 +01:00
krangelov
64a2483b12
added Data.Data.Data instance for Expr
2019-02-20 13:00:51 +01:00
krangelov
1d1e65185a
fixes in the headers for use with Microsoft Visual C++
2019-02-18 11:39:21 +01:00
krangelov
c32cd7133f
fixes in the headers for compilation on Windows
2019-02-18 11:23:01 +01:00
krangelov
409731413e
disable the parser debugger which was left enabled by accident
2019-02-14 15:33:21 +01:00
krangelov
8a5e7fa25d
fix the reader for patterns in a def rule
2019-02-14 15:32:12 +01:00
krangelov
e05c79a751
different definition for GF_ARRAY_LEN
2019-02-14 15:31:36 +01:00
krangelov
ef21d08225
bugfix in computing record lengths
2019-02-14 15:29:33 +01:00
Thomas Hallgren
fc5c2b5a22
PGF.Haskell.fromStr: fix double spaces caused by empty tokens
2019-01-23 02:45:23 +01:00
Prasanth Kolachina
0accd97691
add CoNLLU as output format for gf2ud: merging issue ( #24 )
2019-01-07 13:24:49 +01:00
Prasanth Kolachina
f8bd35543c
Merge pull request #24 from odanoburu/gf2ud-comments
...
(gf2ud) add comments to CoNLL-U output
2019-01-07 13:18:45 +01:00
Krasimir Angelov
260c0d07e0
revert to printing the unique id in ppBracketedString
2018-12-20 10:54:04 +01:00