krangelov
|
e0288f46dc
|
the namespace iterator now takes a PgfExn parameter like in the old runtime
|
2021-08-31 09:31:06 +02:00 |
|
John J. Camilleri
|
aecaa422ec
|
Add getFunctionsByCat to Python bindings
|
2021-08-30 23:25:18 +02:00 |
|
John J. Camilleri
|
b7bd5a4561
|
Add getCategories and getFunctions to Python bindings, but don't know how to handle errors?
|
2021-08-30 22:26:22 +02:00 |
|
John J. Camilleri
|
50e54d131b
|
Add abstractName getter to Python bindings. Use line comments (//) to make navigating code easier.
|
2021-08-30 15:03:54 +02:00 |
|
John J. Camilleri
|
3e4f2ba1a0
|
Use pytest for Python bindings test suite
|
2021-08-30 13:31:27 +02:00 |
|
John J. Camilleri
|
ad4600b5c4
|
Add bootNGF and readNGF to Python bindings
|
2021-08-30 10:38:10 +02:00 |
|
krangelov
|
69f74944e2
|
The unmarshaller is no longer stored in the PGF object but is passed explicitly to each function that needs it.
|
2021-08-26 16:14:56 +02:00 |
|
John J. Camilleri
|
fdaf19a5d4
|
Bump version of Python bindings
|
2021-08-24 10:04:07 +02:00 |
|
John J. Camilleri
|
beab2ad899
|
Update Python instructions, add simple testsuite (which fails with segmentation fault)
|
2021-08-24 09:05:16 +02:00 |
|
krangelov
|
a5008c2fe1
|
implemented functionType and marshalling for types and expressions
|
2021-08-10 15:07:41 +02:00 |
|
krangelov
|
91f183ca6a
|
move the C sources to the subfolder pgf again for backwards compatibility
|
2021-08-08 18:29:16 +02:00 |
|
krangelov
|
1088b4ef38
|
implement grammar loading from Python
|
2021-08-08 16:11:23 +02:00 |
|
krangelov
|
155657709a
|
Merge branch 'master' into c-runtime
|
2021-07-30 11:20:04 +02:00 |
|
krangelov
|
8fbfc0b4a9
|
bracketedLinearize now reports the binding spots just like the Haskell binding
|
2021-02-26 14:58:31 +01:00 |
|
krangelov
|
23edeec5a9
|
added an API for cloning expressions/types/literals
|
2020-08-14 20:54:15 +02:00 |
|
John J. Camilleri
|
ab3c6ec4eb
|
Update descriptions in Python bindings setup.py
|
2020-06-17 11:36:31 +02:00 |
|
krangelov
|
0ad1c352fe
|
expose lookupCohorts in Python
|
2020-05-20 16:12:50 +02:00 |
|
Johan Dahlin
|
589c358389
|
Expose PGF/Concr/Iter/Bracket
Expose the remaining types in the module.
These are helpful for example in type annotations.
|
2020-04-01 21:37:13 -03:00 |
|
krangelov
|
f22bd70585
|
The APIs for callbacks and the bracketed strings now use a string for the analysis intead of an integer. This is now consistent with lookupMorpho and friends
|
2020-03-05 11:58:21 +01:00 |
|
krangelov
|
2ab9fee8e4
|
Python 3 literal callbacks will receive offsets in number of characters instead of bytes
|
2020-01-17 12:41:54 +01:00 |
|
krangelov
|
dbb09cc689
|
remove bogus comment
|
2019-12-07 21:59:41 +01:00 |
|
krangelov
|
bb298fadbe
|
silence warnings in the Python bindings
|
2019-12-07 10:27:06 +01:00 |
|
krangelov
|
acb70ccc1b
|
cleanup
|
2019-09-19 22:30:08 +02:00 |
|
Krasimir Angelov
|
5a2b200948
|
manually copy the "c-runtime" branch from the old repository.
|
2018-11-02 14:38:44 +01:00 |
|
Prasanth Kolachina
|
ef4731e8ba
|
spell error in py.egs.README
|
2018-05-24 09:47:55 +02:00 |
|
Krasimir Angelov
|
1c04fa4897
|
the parser for abstract expressions in the C runtime now supports partial parses
|
2017-09-28 13:57:13 +02:00 |
|
Krasimir Angelov
|
06ec6b3e92
|
added a method in Python for pretty printing a grammar
|
2017-09-26 09:16:48 +02:00 |
|
Krasimir Angelov
|
527d97fdd2
|
fix the type signatures for the linearizer callbacks
|
2017-09-08 22:58:42 +02:00 |
|
Krasimir Angelov
|
301b100988
|
word completion in the C parser now returns information about the function which generates the token
|
2017-09-06 14:37:51 +02:00 |
|
Krasimir Angelov
|
15d014abb8
|
the parser in the C runtime can now detect incomplete sentences just like the parser in the Haskell runtime. This is also reflected in all bindings.
|
2017-09-06 12:38:42 +02:00 |
|
Krasimir Angelov
|
eaf9f0c3ac
|
the C runtime now supports the same customizations for GraphViz as the Haskell runtime
|
2017-08-31 10:58:49 +02:00 |
|
Krasimir Angelov
|
a0fc2f28e8
|
more in the runtime documentation
|
2017-08-28 14:23:47 +02:00 |
|
Krasimir Angelov
|
dfc32b9616
|
lookupSentence is now available from Python
|
2017-08-20 20:21:33 +02:00 |
|
Krasimir Angelov
|
a8eeb49767
|
the linearizer API now allows to detect metavariables. This is used for instancein the lookup where the tokens produced from the metavariables are interpreted as distinct from all other tokens.
|
2017-08-07 16:39:19 +02:00 |
|
krasimir
|
a839bdc687
|
bugfix for print names in the C runtime and expose the functionality from Java
|
2017-05-11 09:11:30 +00:00 |
|
krasimir
|
33ec916c9c
|
make some of the functions in the Python binding static
|
2017-04-19 09:45:15 +00:00 |
|
krasimir
|
71a9f2cba8
|
use gu_string_buf_data in the Python binding to avoid copying
|
2017-04-13 13:47:13 +00:00 |
|
krasimir
|
2588a6f016
|
gu_string_buf -> gu_new_string_buf in libgu
|
2017-04-13 13:43:48 +00:00 |
|
krasimir
|
bd1128e303
|
now the Python API also accepts types as start categories. Using a string is still ok.
|
2017-01-26 13:31:08 +00:00 |
|
krasimir
|
3467a54965
|
bring the Haskell binding a bit closer to the pure Haskell API
|
2017-01-26 12:48:22 +00:00 |
|
prasanth.kolachina
|
ef33f1ab35
|
python examples compatible with both Python 2 and 3
|
2016-09-19 08:32:08 +00:00 |
|
krasimir
|
5a9b5dc860
|
python2 is now supported. the patch is based on a contribution from Vinit Ravishankar
|
2016-08-01 10:39:54 +00:00 |
|
krasimir
|
2605ee85d7
|
two memory leaks in the Python bindings
|
2016-08-01 10:31:37 +00:00 |
|
krasimir
|
821878773c
|
bugfix in the load method in the Python binding. The file was never closed.
|
2016-06-16 08:02:06 +00:00 |
|
krasimir
|
fdf4bd3196
|
change the API for literals in Java and Python. The input sentence is no longer a parameter to the callbacks.
|
2016-05-20 15:20:02 +00:00 |
|
krasimir
|
6947d36e1a
|
fix in the Python binding. The input sentence to the parser needs to be copied since otherwise the Python string may be discarded the garbage collector
|
2015-12-18 19:46:59 +00:00 |
|
krasimir
|
5faa99e89d
|
added bracketedLinearizeAll in Python
|
2015-09-30 08:35:09 +00:00 |
|
krasimir
|
6b90024d09
|
pickling/unpickling for types
|
2015-08-12 10:11:00 +00:00 |
|
krasimir
|
ac6ce58777
|
support for transparent pickling/unpickling of abstract expressions in Python
|
2015-08-12 09:21:23 +00:00 |
|
krasimir
|
b3680b6025
|
merge the states for reasoning and evaluation into a single structure
|
2015-07-03 11:53:52 +00:00 |
|