John J. Camilleri
|
65308861bc
|
Merge branch 'master' of github.com:GrammaticalFramework/gf-core
|
2022-06-18 21:09:23 +02:00 |
|
John J. Camilleri
|
9f2a3de7a3
|
Add simpler VSCode extension to editor modes page
|
2021-11-08 12:30:21 +01:00 |
|
John J. Camilleri
|
ad3489f0f9
|
Use actions/setup-node instead of nvm
Even though it should be installed, I was getting
nvm: command not found
in the CI logs.
|
2021-10-18 14:47:37 +02:00 |
|
John J. Camilleri
|
0b13d04ac4
|
Use Node.js 12 in CI
|
2021-10-18 14:42:37 +02:00 |
|
John J. Camilleri
|
42c1ec4448
|
Merge branch 'majestic' into majestic-macos
|
2021-10-18 14:27:30 +02:00 |
|
John J. Camilleri
|
ac93f2dd10
|
Don't call msync in PgfDB::sync on macOS
|
2021-10-18 13:54:13 +02:00 |
|
John J. Camilleri
|
a2d843f8ed
|
Skip JavaScript in CI
|
2021-10-18 08:48:50 +02:00 |
|
John J. Camilleri
|
61e95bcfeb
|
Fix compilation errors of Python bindings on macOS
|
2021-10-18 08:27:19 +02:00 |
|
John J. Camilleri
|
c9b668a583
|
Fix compilation with macOS mmap/malloc workaround. Add Python (macOS) to CI.
|
2021-10-15 17:34:19 +02:00 |
|
John J. Camilleri
|
8cd0bb5ec1
|
Use malloc/realloc on macOS when fd < 0... but doesn't compile
|
2021-10-15 15:24:15 +02:00 |
|
John J. Camilleri
|
a5fb51ff3d
|
Add some notes about uninstalling runtime
|
2021-10-14 22:23:39 +02:00 |
|
John J. Camilleri
|
26069e7ffe
|
Set LD_LIBRARY_PATH globally in all workflow jobs/steps
|
2021-10-14 22:09:55 +02:00 |
|
John J. Camilleri
|
d218c286eb
|
Re-enable macOS build in CI. Minor cleanup.
|
2021-10-14 21:52:41 +02:00 |
|
John J. Camilleri
|
900a0985a8
|
Put back bindings in all languages as separate jobs
|
2021-10-14 15:31:05 +02:00 |
|
John J. Camilleri
|
6b93c6fde4
|
Be more conservative when displaying /usr/local
|
2021-10-14 15:25:04 +02:00 |
|
John J. Camilleri
|
60a578bd6f
|
add pipe ro run command
|
2021-10-14 15:21:11 +02:00 |
|
John J. Camilleri
|
04dd99c56c
|
sudo mv
|
2021-10-14 15:19:25 +02:00 |
|
John J. Camilleri
|
d304e57b6e
|
Move after download
|
2021-10-14 15:17:55 +02:00 |
|
John J. Camilleri
|
5bf0c9b7ad
|
mkdir /usr/local/lib and /usr/local/include
|
2021-10-14 15:13:20 +02:00 |
|
John J. Camilleri
|
a044adfc8b
|
Download artifacts to /usr/local
|
2021-10-14 15:08:18 +02:00 |
|
John J. Camilleri
|
695025d1a2
|
Display structure of downloaded files
|
2021-10-14 15:05:03 +02:00 |
|
John J. Camilleri
|
57b9080234
|
First attempt at separating the different language bindings in CI workflow
|
2021-10-14 15:01:37 +02:00 |
|
John J. Camilleri
|
30e3e6ba52
|
Cleanup, update README
|
2021-10-14 11:26:30 +02:00 |
|
John J. Camilleri
|
2d3c390e7d
|
missing \
|
2021-10-14 11:14:38 +02:00 |
|
John J. Camilleri
|
9b591129ed
|
Install build tools with brew
|
2021-10-14 11:13:31 +02:00 |
|
John J. Camilleri
|
8e03b63237
|
Add glibtoolize to macOS CI
|
2021-10-14 11:07:38 +02:00 |
|
John J. Camilleri
|
86246c6fb8
|
Add macOS to CI
|
2021-10-14 11:05:41 +02:00 |
|
John J. Camilleri
|
fc57f94e8a
|
Finish unmarshalling of types. Add mkType et al. Add showType tests, but implementation is just stub.
|
2021-10-13 16:59:11 +02:00 |
|
John J. Camilleri
|
2686e63e58
|
Use memcpy instead of strcpy
|
2021-10-13 14:56:42 +02:00 |
|
John J. Camilleri
|
6497a3dd95
|
runTestTTAndExit requires HUnit >= 1.6.1.0
|
2021-10-12 23:47:49 +02:00 |
|
John J. Camilleri
|
3bdfe1a336
|
Minor cleanup
|
2021-10-12 23:27:49 +02:00 |
|
John J. Camilleri
|
ead1160a75
|
More changes to compile on macOS (incomplete)
|
2021-10-12 15:29:29 +02:00 |
|
John J. Camilleri
|
1401a6d209
|
Fix (most) macOS compilation problems
|
2021-10-12 10:46:39 +02:00 |
|
John J. Camilleri
|
0e011955be
|
Add tests for reading & equality of various expressions
|
2021-10-08 15:06:34 +02:00 |
|
John J. Camilleri
|
71536e8e37
|
Handle errors in readExpr
|
2021-10-08 12:54:36 +02:00 |
|
John J. Camilleri
|
a27cf6a17b
|
Implement all Expr unmarshalling (untested). Put wordsize logic in constants.ts. Some README additions.
|
2021-10-08 12:39:42 +02:00 |
|
John J. Camilleri
|
dae39d8b10
|
Remove 'only' from test suite
|
2021-10-08 08:54:28 +02:00 |
|
John J. Camilleri
|
0d43ec8971
|
Unmarshalling for floats and strings, but strings crashes after multiple invocations
|
2021-10-07 23:25:25 +02:00 |
|
John J. Camilleri
|
16ee006735
|
Add stubs for all un/marshalling functions. Refactoring.
|
2021-10-07 15:58:59 +02:00 |
|
John J. Camilleri
|
db0cbf60cb
|
Support big and negative integers
|
2021-10-07 15:07:14 +02:00 |
|
John J. Camilleri
|
db66144c25
|
Get marshalling of integers working
|
2021-10-07 12:54:02 +02:00 |
|
John J. Camilleri
|
1b3a197aac
|
JavaScript unmarshalling WIP
|
2021-10-05 15:33:19 +02:00 |
|
John J. Camilleri
|
b7e7319542
|
Switch to 'standard' linting
|
2021-10-05 13:56:41 +02:00 |
|
John J. Camilleri
|
869c5d094b
|
Implement categoryProbability, functionProbability, functionIsConstructor, functionsByCategory
|
2021-10-05 13:39:51 +02:00 |
|
John J. Camilleri
|
c1adbedc25
|
Implement bootNGF, readNGF, PgfText_FromString
|
2021-10-05 11:57:24 +02:00 |
|
John J. Camilleri
|
ca2f2bfd89
|
Change from ffi to ffi-napi since the former seems unsupported
This should also fix installation problem of node-gyp in CI
|
2021-10-05 01:02:02 +02:00 |
|
John J. Camilleri
|
634508eaa8
|
Add linting
|
2021-10-04 15:26:50 +02:00 |
|
John J. Camilleri
|
1f72ef77c4
|
Add bootNGF. Organise tests better.
|
2021-10-04 15:07:23 +02:00 |
|
John J. Camilleri
|
7551926383
|
Add FFI bindings for all API functions. Implement getCategories and getFunctions
|
2021-10-04 14:15:35 +02:00 |
|
John J. Camilleri
|
45db11b669
|
Add proper tests, exception handling, implement getAbstractName
|
2021-10-04 12:10:29 +02:00 |
|
John J. Camilleri
|
314db3ea7f
|
Beginnings of JavaScript bindings
|
2021-10-01 12:47:39 +02:00 |
|
John J. Camilleri
|
ad0832903a
|
Add FreeHypos function. Remove old Python 2 preproc definition
|
2021-09-30 10:45:01 +02:00 |
|
John J. Camilleri
|
808e8db141
|
Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic
|
2021-09-28 11:58:31 +02:00 |
|
John J. Camilleri
|
16eb5f1a89
|
Type initialiser accepts sequences, stores internally as tuples. Add tests which try to break things.
|
2021-09-28 11:58:22 +02:00 |
|
John J. Camilleri
|
388829d63d
|
Make hypos tuples again 😥
|
2021-09-28 10:35:19 +02:00 |
|
John J. Camilleri
|
8c3f9c8d73
|
Use PyBool instead of PyLong for bind_type
|
2021-09-27 15:37:33 +02:00 |
|
John J. Camilleri
|
7dafeee57b
|
Raise KeyError in prob functions for undefined functions/categories
|
2021-09-27 14:33:14 +02:00 |
|
John J. Camilleri
|
19251e5e61
|
Add exprProbability
|
2021-09-27 14:22:13 +02:00 |
|
John J. Camilleri
|
a7a20d72e7
|
Use preprocessing directive in module initialisation
|
2021-09-27 14:03:12 +02:00 |
|
John J. Camilleri
|
02d180ad88
|
Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic
|
2021-09-27 13:33:52 +02:00 |
|
John J. Camilleri
|
8c04eed5c3
|
Add bindings for global/abstract flag functions
|
2021-09-27 13:33:34 +02:00 |
|
John J. Camilleri
|
6ce619c146
|
Solve the mystery of the segfaults when reading args in createCategory
it was a missing `&`
|
2021-09-27 11:51:58 +02:00 |
|
John J. Camilleri
|
2deae9d402
|
Add PGF.writeToFile. Add categoryProbability, but it seems pgf_category_prob always returns 0.
|
2021-09-27 11:37:52 +02:00 |
|
John J. Camilleri
|
187ded6d3d
|
Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic
|
2021-09-27 09:40:59 +02:00 |
|
John J. Camilleri
|
6f94957857
|
Make Hypo its own class instead of using tuples
|
2021-09-27 09:00:46 +02:00 |
|
John J. Camilleri
|
28bb236248
|
Add deallocator functions to all classes
|
2021-09-26 15:45:34 +02:00 |
|
John J. Camilleri
|
1fce5144f8
|
Rename fields to match those in runtime. Use tp_members instead of tp_getattro for getters.
|
2021-09-26 15:14:04 +02:00 |
|
John J. Camilleri
|
a46b91fe10
|
Missed one 'free'
|
2021-09-24 16:13:36 +02:00 |
|
John J. Camilleri
|
a2e4e74644
|
Add getters for Type and Expr attributes, with tests
|
2021-09-24 16:10:48 +02:00 |
|
John J. Camilleri
|
4719e509a5
|
Add FreePgfText function
|
2021-09-24 15:00:10 +02:00 |
|
John J. Camilleri
|
fc12749124
|
Complete transaction tests
|
2021-09-24 13:46:46 +02:00 |
|
John J. Camilleri
|
90b7134eef
|
Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic
|
2021-09-24 13:09:36 +02:00 |
|
John J. Camilleri
|
d0ce218ae1
|
Add helper functions for common conversions
|
2021-09-24 13:09:26 +02:00 |
|
John J. Camilleri
|
917c223db7
|
Add checkoutBranch function. Fix incorrect INCREF of non-Python object.
|
2021-09-24 11:47:46 +02:00 |
|
John J. Camilleri
|
139e851f22
|
Add null check before freeing DB
Was causing segfaults in load-failure tests
|
2021-09-24 08:20:31 +02:00 |
|
John J. Camilleri
|
0ff4b0079d
|
Minor changes to transactions.md
|
2021-09-24 07:57:52 +02:00 |
|
John J. Camilleri
|
4611d831ff
|
Add helper function for checking and converting list of hypos
|
2021-09-22 15:37:33 +02:00 |
|
John J. Camilleri
|
21ee96da9b
|
Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic
|
2021-09-22 15:14:49 +02:00 |
|
John J. Camilleri
|
b1fd1f1a5e
|
Fix segfaults with Python 3.8 in Transaction_createCategory. Tweaks to enter/exit functions.
|
2021-09-22 15:14:42 +02:00 |
|
John J. Camilleri
|
04fcaaaac2
|
Declare context differently in Transaction_createCategory
This is an attempt to try fix the segfaults in CI which I cannot reproduce locally
|
2021-09-22 08:34:18 +02:00 |
|
John J. Camilleri
|
60c9ab4c53
|
Fix handlers for 'with' syntax in Transaction object
|
2021-09-21 23:54:55 +02:00 |
|
John J. Camilleri
|
4af807c982
|
Fix createCategory. Add functionProbability.
|
2021-09-21 23:34:03 +02:00 |
|
John J. Camilleri
|
b4b8572af3
|
Header and source file cleanup
|
2021-09-21 22:28:44 +02:00 |
|
John J. Camilleri
|
71dac482c8
|
Started adding support for 'with' construct, failing tests commented out
|
2021-09-21 17:23:38 +02:00 |
|
John J. Camilleri
|
6edf7e6405
|
Add Transaction type to Python bindings, get first tests working.
|
2021-09-21 14:55:20 +02:00 |
|
John J. Camilleri
|
7dba3465d0
|
Refactor modules in Python bindings. Start work on grammar-update functions, but without transactions.
|
2021-09-20 23:42:50 +02:00 |
|
John J. Camilleri
|
44b5d0f870
|
Add newNGF to Python bindings
|
2021-09-17 14:33:36 +02:00 |
|
John J. Camilleri
|
6359537894
|
Add last of tests from basic.hs to Python testsuite. Some tests with quoted identifiers skipped.
|
2021-09-17 13:53:53 +02:00 |
|
John J. Camilleri
|
a3203143ba
|
Add Type constructor, showType, mk[Dep]Hypo, bind type constants
|
2021-09-17 11:27:19 +02:00 |
|
John J. Camilleri
|
a8bda009a4
|
Add and pass all the abstraction test cases. Some header cleanup.
|
2021-09-16 15:38:02 +02:00 |
|
John J. Camilleri
|
b393efff59
|
Fix richcompare functions: second argument could be of any type
|
2021-09-16 13:28:30 +02:00 |
|
John J. Camilleri
|
238f01c9fc
|
Add remaining Expr subclasses, tests failing
|
2021-09-15 16:27:58 +02:00 |
|
John J. Camilleri
|
fd61a6c0d3
|
Add ExprApp to Python bindings
|
2021-09-14 15:28:39 +02:00 |
|
John J. Camilleri
|
6ebb8e5fda
|
Add ExprFun to Python bindings
|
2021-09-14 15:07:03 +02:00 |
|
John J. Camilleri
|
be5751060a
|
Add showExpr and tests for it using variable expressions
|
2021-09-14 00:18:45 +02:00 |
|
John J. Camilleri
|
9e3d329528
|
Update behaviour for bindings to categoryContext when cat is non-existant
|
2021-09-13 22:44:04 +02:00 |
|
John J. Camilleri
|
a715d029f7
|
Fix Haskell tests after changes to categoryContext and functionProb
|
2021-09-13 22:35:23 +02:00 |
|
John J. Camilleri
|
e78e9102be
|
Add variable expressions
|
2021-09-13 22:29:23 +02:00 |
|
John J. Camilleri
|
c5ce2fd4b7
|
Add ExprMeta type, with two basic tests
|
2021-09-13 16:18:32 +02:00 |
|
John J. Camilleri
|
d8a7aef46b
|
Add constructor for ExprLit, use it in tests
|
2021-09-13 15:47:15 +02:00 |
|