aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/pyolian (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Pyolian: fixes for recent eolian changesDave Andreoli2018-11-282-8/+3
|
* Pyolian tests: 2 small improvementsDave Andreoli2018-11-282-9/+10
| | | | | | | | 1. properly use unittest infra to skip tests, otherwise we will forgot the commented tests 2. split the new name collision test (failing, but really cool) so it have a proper name and the results are more readable
* pyolian: Fix tests after class renames and API changeLauro Moura2018-11-272-43/+47
| | | | | | | | | | | | | | | | | | Summary: There is still a test failing as at least Ecore.Audio is both a namespace and a class. Test Plan: python test_pyolian.py Reviewers: DaveMDS, q66 Reviewed By: q66 Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7371
* eolian: implement new inherit behaviorDaniel Kolesa2018-11-232-5/+14
| | | | | | | | | | | | | Eolian now separates 'parent' and 'extensions'. For regular classes, parent is the first item in the inherits list and extesions is the rest. For interfaces and mixins, parent is NULL and extends is the inherits list. The reason for this is the separation of them in syntax in near future. It also slightly changes the behavior; since for interfaces and mixins, parent is always NULL now, you can freely inherit from all types of classes without needing to manually put an interface type as the first item of the inherits list.
* eolian: make doc ref resolution globalDaniel Kolesa2018-04-181-1/+1
| | | | | | | | | | | Doc refs no longer introduce new dependencies into files. Instead, they're parsed globally, and any doc ref lookup is also made globally. This allows unit based dependencies to correspond more to what files actually really need at compile time/runtime, with docs being irrelevant to that; it also simplifies the API. The doc resolution API now takes Eolian_State instead of Eolian_Unit, too.
* Pyolian: fix __repr__ for DocumentationDave Andreoli2018-03-171-2/+3
|
* Pyolian doc generator: update wrt name API changesDave Andreoli2018-03-172-13/+13
| | | | | Argh, this has been difficult... hopefully I have done this right
* Pyolian: let ctypes automatically convert typesDave Andreoli2018-03-171-154/+159
| | | | | Not a big improvement and not so much automatically... but for sure a bit less to type :)
* Pyolian: use tuple instead of list in declarationsDave Andreoli2018-03-171-163/+163
| | | | This is a bit more correct and (maybe) a bit more faster
* Pyolian: new API eolian_unit_state_getDave Andreoli2018-03-173-3/+19
|
* Pyolian: new API eolian_object_unit_getDave Andreoli2018-03-173-0/+19
| | | | Also implemented __repr__ for Unit and State
* Pyolian: fix tests wrt name/short_name/full_name API changesDave Andreoli2018-03-171-32/+35
|
* Pyolian: add support EOLIAN_SO_DIR env varDave Andreoli2018-03-162-2/+9
| | | | Thanks goes to @lauromoura for proposing this in D5840
* eolian: event/function_get_by_name -> by_name_getDaniel Kolesa2018-03-163-17/+17
|
* pyolian: remove unneeded bindings in eolian_stateDaniel Kolesa2018-03-142-112/+0
|
* eolian: refactor doc ref resolution APIDaniel Kolesa2018-03-141-3/+3
|
* pyolian: update name APIsDaniel Kolesa2018-03-122-188/+32
|
* Pyolian generator: adjust to follow eolian changesDave Andreoli2018-03-111-2/+1
|
* Pyolian: remove the useless Object.type bindingDave Andreoli2018-03-112-42/+33
| | | | | | This is useless in py as Objects are never returned directly, you always get the correct subtype (Class, Variable, etc..). It was also clashing with Class.type
* Pyolian: add tests for Eolian_ObjectDave Andreoli2018-03-112-23/+69
| | | | | | | | | | | Two of the new tests are failing, the problem is that now we have name clashes between Eolian_Object and Eolian_Class (at least) For the moment I spotted: - Object.name clash with Class.name - Object.type clash with Class.type Also fixed a typo in eolian_lib.py spotted by the new tests, and removed the old tests for Declaration.
* Pyolian: build the correct type from generic ObjectDave Andreoli2018-03-111-0/+28
| | | | | This way all the generic Eolian_Object types are automatically converted to the correct types (Class, Variable, etc...)
* eolian: resolve to Eolian_Objects instead of voidsDaniel Kolesa2018-03-091-1/+1
|
* eolian: return Eolian_Object_Type from ref resolverDaniel Kolesa2018-03-093-15/+2
| | | | This needs only one enum and allows for better interop.
* pyolian: add support for object retrievalDaniel Kolesa2018-03-082-0/+40
|
* pyolian: wipe out declaration apiDaniel Kolesa2018-03-082-84/+0
|
* pyolian: add Eolian_Object APIs and remove obsolete file_get onesDaniel Kolesa2018-03-082-47/+79
|
* Pyolian: new APIs for typedecl lookupsDave Andreoli2018-03-014-89/+137
|
* Pyolian: new variable lookup APIsDave Andreoli2018-03-013-51/+84
| | | | with adjusted tests
* Pyolian: new APIs for class retrievalDave Andreoli2018-03-014-41/+57
| | | | Also updated tests, generator and gendoc accordly
* Pyolian: add APIs to retrieve units from a stateDave Andreoli2018-02-283-2/+37
| | | | Also fixed a declaration error from previous commit
* Pyolian: add API to get file name of a unitDave Andreoli2018-02-282-0/+8
|
* Pyolian: add API to get children of a unitDave Andreoli2018-02-283-0/+14
|
* Pyolian: reorder the header fileDave Andreoli2018-02-281-141/+171
| | | | No functional changes, just reordered the declarations
* Pyolian: rename Eolian to Eolian_StateDave Andreoli2018-02-273-5/+5
|
* Pyolian: eolian_file_parse -> eolian_state_file_parseDave Andreoli2018-02-272-4/+4
|
* Pyolian: rename path/filename retrieval APIsDave Andreoli2018-02-273-24/+24
|
* Pyolian: rename all_files_parse functionsDave Andreoli2018-02-272-8/+8
|
* Pyolian: new APIs for directory scanningDave Andreoli2018-02-274-13/+13
| | | | | eolian_directory_scan => eolian_state_directory_add eolian_system_directory_scan => eolian_state_system_directory_add
* eolian: eolian_* -> eolian_state_*, Eolian -> Eolian_StateDaniel Kolesa2018-02-272-18/+18
|
* Pyolian: improve a bit the namespace generationDave Andreoli2018-02-181-20/+28
| | | | | | | I still think that namespaces should be directly exposed by eolian. Currently pyolian provide a namespace implementation but it's hard to get it right, and it should be really shared between all eolian users.
* pyolian: improve a bit the 2 example templatesDave Andreoli2018-01-253-8/+16
|
* pyolian: improve the doc generationDave Andreoli2018-01-241-1/+18
|
* pyolian test: just rename the main eolian stateDave Andreoli2018-01-231-59/+59
|
* Pyolian: fix and tests for recent changesDave Andreoli2018-01-163-6/+38
| | | | | | q66: please leave the pyolian updating work to me, it's harder for me to fix wrong stuff instead of just implement myself ;)
* eolian: do not require unit when stringifying typesDaniel Kolesa2018-01-162-17/+12
| | | | | | As it is no longer necessary to pass unit when evaluating exprs, it is not necessary to pass it here either. Convert all the APIs to the new style and update all instances in our tree.
* Pyolian: add tests for recently added funcsDave Andreoli2018-01-142-11/+56
|
* eolian: aliased_base_get funcs don't need unitDaniel Kolesa2018-01-122-18/+14
|
* eolian: type_typedecl_get doesn't need a unitDaniel Kolesa2018-01-122-9/+7
|
* eolian: do not require unit for type_class_getDaniel Kolesa2018-01-122-9/+7
|
* Pyolian: cache classes and propertiesDave Andreoli2018-01-051-136/+171
| | | | This give an overrall speed up of aroud 50% in the full doc generation.