Thomas Hallgren
750a1349ff
gfse: allow public grammars to be deleted in more cases
...
The editor doesn't show delete buttons on grammars published by other
users, but it was too picky when deciding which grammars you own. Now
it should be possible to delete grammars from the device/browser
you published it from, even if you don't have a private copy of it any more.
On a related note, there seems to be problem with the way unique grammars
names are created and maintained, causing published grammars to be duplicated
in some cases. This needs to be overhauled.
2018-03-29 17:02:22 +02:00
Thomas Hallgren
78cf184957
gfse: fix for some browser: hovering over an empty grammar comment to edit it
...
This was a problem in Safari (an other similar browsers I presume), but
not in Firefox: hovering over the grammar comment (shown below the grammar
name when you edit a grammar) didn't reveal the button to edit it, thus
preventing you from adding a comment. It was till possible by selecting the
"Enable editing on touch devices." at the bottom of the screen, but most
people probably didn't notice that it is possible to add a comment.
2018-03-29 16:17:25 +02:00
Thomas Hallgren
a9135c9b7e
Merge branch 'master' of www.grammaticalframework.org:/usr/local/www/GF
2018-03-29 14:56:07 +02:00
Thomas Hallgren
31ef32a815
gfse: sort list of public grammars by age, by default
...
There is also a menu so you can choose to sort the list by name or by age
2018-03-29 14:54:42 +02:00
Krasimir Angelov
bb4218433f
- tweak the tokenizer in pgf_lookup_sentence to threat .!?,: as separate tokens
...
+ bugfix which causes crashes
2018-02-22 11:35:54 +01:00
Krasimir Angelov
a16fe3415a
partial fix for word completion in the C runtime
2018-02-04 17:21:15 +01:00
Thomas Hallgren
5164951e23
Remove "Warning: default encoding has changed from Latin-1 to UTF-8"
...
The warning is about a change that was made in GF 3.6 (June 2014) and has
probably outlived its purpose by now.
2018-01-23 14:55:33 +01:00
Aarne Ranta
96adbebca8
some paradigm extensions
2018-01-21 12:18:15 +01:00
Krasimir Angelov
a7926835a3
bugfix for random generation with HOAS
2017-12-19 10:47:30 +01:00
Krasimir Angelov
fa8530add1
silence some warnings on MINGW32
2017-12-09 23:11:04 +01:00
Krasimir Angelov
4a1d19086a
added one more include to define alloca for Windows
2017-12-09 23:06:34 +01:00
Krasimir Angelov
515ea697ba
Merge branch 'master' of https://github.com/GrammaticalFramework/GF
2017-12-09 23:05:32 +01:00
Krasimir Angelov
7260d5496d
fix the compilation of sqlite3Btree.c on Windows
2017-12-09 23:04:34 +01:00
Aarne Ranta
79feeaf5b8
new option linerize -tabtreebank for tab-separated treebank generation
2017-12-06 17:37:12 +01:00
Krasimir Angelov
0bb6b5968e
temporaryly fix GF.Command.Commands2
2017-10-05 21:09:38 +02:00
Krasimir Angelov
e3aa392e63
further extend the API of the C runtime
2017-10-04 09:45:56 +02:00
Krasimir Angelov
e426e87cf8
in the PGF2 api: remove showCategory. add categoryContext and functionIsConstructor
2017-10-03 16:05:01 +02:00
Krasimir Angelov
8eef0b5376
GF.Compile.Instructions is obsolete and now removed
2017-09-29 16:52:56 +02:00
Krasimir Angelov
f2bc7ec7b6
added exprSubstitute in the C runtime for substituting meta variables
2017-09-28 16:33:34 +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
404154d16b
added showPGF in the Haskell API
2017-09-25 18:31:36 +02:00
Krasimir Angelov
d79ac56870
handle productions in the internal creation API
2017-09-25 13:23:53 +02:00
Krasimir Angelov
d103fe6755
make pgf_production_is_lexical public since it will be needed in the Haskell binding
2017-09-25 12:20:48 +02:00
Krasimir Angelov
5f39d062b7
fix typo in jni_utils.c
2017-09-25 10:53:05 +02:00
Krasimir Angelov
9c781c7b24
fix the compilation of jsg.c after the last patch
2017-09-25 10:41:15 +02:00
Krasimir Angelov
66c20b1996
handle BIND & CAPIT in bracketedLinearize for Java
2017-09-25 10:36:38 +02:00
Krasimir Angelov
b3d96cfa93
added Expr.size() in the Java binding
2017-09-18 21:55:10 +02:00
Krasimir Angelov
7ae5ef0a35
add writer.c in Android.mk
2017-09-15 10:32:06 +02:00
Krasimir Angelov
bcb97a336e
make the API for indexing in the parser and the linearizer public since it will be needed in the Haskell binding
2017-09-14 18:11:24 +02:00
Krasimir Angelov
d574bb2164
an almost complete API for building new PGF files in the Haskell binding
2017-09-14 15:23:13 +02:00
Krasimir Angelov
1ff8dd88e8
fix gu_encode_double
2017-09-13 17:20:00 +02:00
Krasimir Angelov
febf01a9be
corrections in the PGF writer
2017-09-13 14:05:26 +02:00
Krasimir Angelov
80b61f716c
added PGF2.Internal.writePGF in the Haskell binding
2017-09-13 10:32:39 +02:00
Krasimir Angelov
df992c31fd
added gu_out_u16be, gu_out_u64be and gu_out_f64be in libgu. The later is using gu_encode_double which is probably still wrong. Corrected gu_in_le and gu_in_f64be.
2017-09-13 10:23:28 +02:00
Krasimir Angelov
3e55aa4424
added function pgf_write
2017-09-13 09:30:52 +02:00
Krasimir Angelov
09e5278690
added PGF writer to the C runtime
2017-09-13 09:23:55 +02:00
Krasimir Angelov
3aecefebdb
an almost complete API for creating the abstract syntax of a PGF in memory
2017-09-11 14:12:36 +02:00
Krasimir Angelov
6712969503
an API to access the grammar's flags
2017-09-11 08:50:29 +02:00
Krasimir Angelov
09f5c95d82
more type corrections
2017-09-08 23:45:33 +02:00
Krasimir Angelov
31b5e550b7
the Haskell binding should be more careful with the matching types in C
2017-09-08 23:21:40 +02:00
Krasimir Angelov
527d97fdd2
fix the type signatures for the linearizer callbacks
2017-09-08 22:58:42 +02:00
Krasimir Angelov
71e6562eaa
an initial sketch for PGF building API in the Haskell binding
2017-09-08 15:15:23 +02:00
Krasimir Angelov
16172be940
the C runtime should also install data.h in order to make it possible to access the internal structures
2017-09-07 21:34:39 +02:00
Krasimir Angelov
4f680b728b
a light API in the Haskell binding for accessing the internal data structures
2017-09-07 21:31:33 +02:00
Krasimir Angelov
60bd12a952
the experimental export to Lambda Prolog is now obsolete and is removed
2017-09-07 14:01:46 +02:00
Thomas Hallgren
9f7a6cfe10
PGF2.FFI: import Data.Word(Word)
...
for compatibility with older versions of GHC
2017-09-06 18:01:08 +02:00
Krasimir Angelov
ebe7cb3b73
A new function called "completions" is added in the Haskell runtime and used in PGFService. This makes the extraction of completions more platform independent
2017-09-06 15:17:28 +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
ef071d9157
Merge branch 'master' of https://github.com/GrammaticalFramework/GF
2017-09-06 12:40:22 +02:00