-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
45 lines (30 loc) · 892 Bytes
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Some prototypes for Grammatical Framework
=========================================
CRUD - CRUD operations
----------------------
To try out:
$ cd crud
$ gf
> i CrudEng.gf CrudFin.gf CrudRus.gf
Crud> l Done Process Piece
piece was processed
kappale käsiteltiin
штука обработалась
Crud> gr -number=1000 | l -treebank | wf
Crud> p -lang=Eng "add group ." | pt -number=1 | l -lang=Fin
Showcase:
python crud.py
Tests:
pytest -vv test_crud.py
Adding lexicon:
1. Add new lexicon items to all LexCrud???.gf-files
2. Run Python update_grammar.py
3. Now All gf-files are updated
Adding new functions:
1. Edit CrudI.tpl and Crud.tpl for defitions and types
2. Run Python update_grammar.py
3. Now All gf-files are updated
TODO:
* Rewrite instructions using crud grammar :-)
* Fix TODO-cases in the tests (maybe, in RGL)
* Try to make pytest output unencoded test names