Krasimir Angelov
db8843c8bf
Update memory_model.md
2021-08-07 20:39:09 +02:00
Krasimir Angelov
bfd839b7b0
Update README.md
2021-08-07 18:29:59 +02:00
Krasimir Angelov
78d6282da2
Create README.md
2021-08-07 18:29:31 +02:00
Krasimir Angelov
cc8db24a46
Update memory_model.md
2021-08-07 10:36:34 +02:00
Krasimir Angelov
72c51f4bf9
Create memory_model.md
2021-08-07 09:44:50 +02:00
krangelov
3a7743afad
added the expression type
2021-08-06 20:03:22 +02:00
krangelov
825e8447db
make it possible to load several grammars in the same process and ensure reader-writer exclusion
2021-08-06 19:34:02 +02:00
krangelov
2d6bcd1953
a better API for loading PGF & NGF files
2021-08-06 16:50:21 +02:00
krangelov
dc1644563f
extend the abstract syntax API
2021-08-06 12:43:30 +02:00
krangelov
87f1e24384
started a testsuite
2021-08-05 20:45:08 +02:00
krangelov
36e87668e0
make sure that changes in the database are always flushed
2021-08-05 20:05:29 +02:00
krangelov
2d3aac5aa1
fixed white space
2021-08-05 19:30:50 +02:00
krangelov
217e0d8cc6
added function abstractName from the API
2021-08-05 19:30:05 +02:00
krangelov
75e19bbffa
document the exception handling
2021-08-05 18:05:42 +02:00
krangelov
cc4a215f83
fix the memory leak in case of exceptions
2021-08-05 17:58:04 +02:00
krangelov
7d85d3ca9a
fix: when PGF loading forgot reading "functions per cat"
2021-08-05 17:13:11 +02:00
krangelov
e298410e57
read_name -> read_text in literals
2021-08-05 17:06:05 +02:00
krangelov
5e320943c9
started on the Haskell binding
2021-08-05 17:01:49 +02:00
krangelov
54421492b2
fix the balancing to avoid segmentation faults
2021-08-05 16:28:50 +02:00
krangelov
84789c9fbf
finished reading the abstract syntax
2021-08-05 12:37:12 +02:00
krangelov
17629e4821
strings are stored as length+text and NULL byte is not a terminator
2021-07-30 13:45:22 +02:00
Krasimir Angelov
a8b3537184
Create DESIDERATA.md
2021-07-30 12:55:33 +02:00
krangelov
8f0a1b8fee
started a new database-backed runtime from scratch
2021-07-30 12:08:28 +02:00
krangelov
155657709a
Merge branch 'master' into c-runtime
2021-07-30 11:20:04 +02:00
krangelov
265f08d6ee
added link to vis-network.min.js
2021-07-26 16:57:05 +02:00
krangelov
e47042424e
Merge branch 'master' of https://github.com/GrammaticalFramework/gf-core
2021-07-26 16:52:11 +02:00
krangelov
ecf309a28e
fix links to WordNet
2021-07-26 16:51:58 +02:00
Inari Listenmaa
667bfd30bd
Merge pull request #87 from anka-213/make-it-fast
...
Remove the `Either Int` from value2term
2021-07-20 04:35:37 +02:00
Inari Listenmaa
45bc5595c0
Update C runtime install instructions
2021-07-15 09:54:15 +08:00
Meowyam
743f5e55d4
add missing install.sh file for c runtime
2021-07-14 17:20:20 +08:00
Andreas Källberg
7faf8c9dad
Clean up redundant case expressions
2021-07-12 16:38:29 +08:00
Andreas Källberg
b3881570c7
Remove last traces of the Either in value2term
2021-07-12 15:53:49 +08:00
Andreas Källberg
bd270b05ff
Remove the Either Int from value2term
...
This prevents HUGE space leak and makes compiling a PGF a LOT faster
For example, an application grammar moved from taking over 50GB
of ram and taking 5 minutes (most of which is spent on garbage colelction)
to taking 1.2 seconds and using 42mb of memory
The price we pay is that the "variable #n is out of scope" error is now
lazy and will happen when we try to evaluate the term instead of
happening when the function returns and allowing the caller to chose how
to handle the error.
I don't think this should matter in practice, since it's very rare;
at least Inari has never encountered it.
2021-07-12 15:50:43 +08:00
John J. Camilleri
a1fd3ea142
Fix bug introduced in cdbe73eb47
...
Apparently I don't understand how pattern-matching works in Haskell
2021-07-08 13:56:58 +02:00
John J. Camilleri
cdbe73eb47
Remove two missing-methods warnings
2021-07-08 12:10:41 +02:00
John J. Camilleri
0954b4cbab
More cabal file cleanup. Remove some more tabs from Haskell source.
2021-07-07 13:04:09 +02:00
John J. Camilleri
f2e52d6f2c
Replace tabs for whitespace in source code
2021-07-07 09:40:41 +02:00
John J. Camilleri
ef42216415
Add import from command line invocation to command history
...
Closes #64
2021-07-06 15:35:03 +02:00
John J. Camilleri
0c3ca3d79a
Add note in PGF2 documentation about risk for integer overflow.
...
Closes #109
2021-07-06 14:43:21 +02:00
John J. Camilleri
e2e5033075
Merge pull request #122 from 2jacobtan/master
...
specify version bounds in *.cabal files
2021-07-06 14:31:29 +02:00
John J. Camilleri
84b4b6fab9
Some more cabal file cleanup. Add stack files for pgf, pgf2.
2021-07-06 14:11:30 +02:00
Inari Listenmaa
d2fb755fab
Merge branch 'master' into concrete-new
2021-07-06 09:37:22 +02:00
Inari Listenmaa
1b66bf2773
Merge pull request #121 from Meowyam/issue97
...
resolves GrammaticalFramework/gf-core/#97
2021-07-06 09:22:48 +02:00
Meowyam
1e3de38ac4
remove redundant options
2021-07-06 15:22:59 +08:00
Inari Listenmaa
4e8859aa75
Merge pull request #118 from GrammaticalFramework/canonical
...
Fixes to canonical compilation
2021-07-06 09:16:52 +02:00
Meowyam
dff215504a
resolves GrammaticalFramework/gf-core/#97, without l
2021-07-06 15:00:17 +08:00
Inari Listenmaa
173ab96839
Hotfix for https://github.com/GrammaticalFramework/gf-core/issues/56
2021-07-06 14:59:53 +08:00
John J. Camilleri
dff1193f7b
Add --haskell=pgf2 flag
2021-07-06 14:59:53 +08:00
2jacobtan
e1a40640cd
specify version bounds in pgf.cabal and pgf2.cabal
2021-07-06 05:42:34 +08:00
Inari Listenmaa
09d772046e
Merge pull request #57 from inariksit/cc-bugfix-rgl-only
...
Hotfix for #56 (cc doesn't work for many RGL languages)
2021-07-02 10:11:35 +02:00