Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't report an error when parsing an empty annotations fileHEADupstream/master | Dominik Holland | 2022-01-27 | 1 | -1/+5 |
| | | | | Fixes: #64 | ||||
* | Improve error handling when parsing annotation files | Dominik Holland | 2022-01-27 | 1 | -4/+13 |
| | | | | | | | | | | | | The System.lookup() function is now throwing an exception when the name couldn't be found, instead of just returning None. This exception is catched in the FileSystem object and printed on stderr. In strict mode, any annotation error results in exiting the generator. Fixes: #90 | ||||
* | Always provide a error message when using undefiend jinja variables | Dominik Holland | 2022-01-27 | 1 | -11/+5 |
| | | | | This stopped working with newer jinja versions. | ||||
* | Fix deprecated API usage | Dominik Holland | 2022-01-27 | 1 | -1/+1 |
| | | | | | | In addition fix all warnings found by flake. Also enable flake8 checks and more verbose test output on the CI. | ||||
* | Improve error reporting in qface files | Dominik Holland | 2022-01-27 | 1 | -1/+5 |
| | | | | | Only report the errors once using our own ErrorHandler. Also fix a bug which prevented the error message to be shown. | ||||
* | Fixes FileNotFoundError about the empty string path | Junil Kim | 2022-01-27 | 1 | -1/+2 |
| | |||||
* | Remove unneeded make_traceback import | Dominik Holland | 2022-01-27 | 1 | -2/+0 |
| | | | | | The generator used to import make_traceback, but in newer jinja versions this doesn't exist anymore. | ||||
* | - introduce qface script mode | Juergen Bocklage-Ryannel | 2018-12-24 | 1 | -2/+5 |
| | | | | | | - add ability to load dynamic filters for qface script mode - extract generic filters - fixed some issues with cpp macros | ||||
* | - update macros to use ns filters | Juergen Bocklage-Ryannel | 2018-11-22 | 1 | -7/+22 |
| | | | | | - add path to generator out = dest / path / document - pre-register qtml/qtcpp/doc/basic filters | ||||
* | Merge branch 'develop' of github.com:Pelagicore/qface into develop | Juergen Bocklage-Ryannel | 2018-11-22 | 1 | -4/+19 |
|\ | | | | | | | | | # Conflicts: # qface/watch.py | ||||
| * | add parse stream operation | Juergen Bocklage-Ryannel | 2018-11-01 | 1 | -4/+19 |
| | | |||||
* | | - add new qface binary to launch external rule files | Juergen Bocklage-Ryannel | 2018-11-22 | 1 | -2/+9 |
|/ | | | | | | - add ns to qtcpp/qtqml filters - restructured rules format, docs are now a list - changed monitor signature | ||||
* | added force option to generator. Force will force overwriting | Juergen Bocklage-Ryannel | 2018-05-03 | 1 | -4/+6 |
| | | | | files (so ignoring preserved). | ||||
* | Exposed the profile option on FileSytem.parse | Juergen Bocklage-Ryannel | 2018-03-07 | 1 | -7/+8 |
| | |||||
* | some cleanup | Juergen Bocklage-Ryannel | 2018-01-18 | 1 | -15/+16 |
| | |||||
* | Add a option to force writing the content to a file (#67) | Dominik Holland | 2017-12-15 | 1 | -4/+4 |
| | | | | This is needed when the generator is used inside a build system like make as this is checking timestamps and only calls the generator when needed. | ||||
* | Improve error handling (#62) | Dominik Holland | 2017-09-07 | 1 | -16/+35 |
| | | | | | | | | | | | | * Improve the error formatting All errors are now formated in a way qt-creator understands out of the box. Errors are now reported on stderr instead of stdout and a valid exit code is used * In strict mode also report undefined variables as errors | ||||
* | Changed the logic for preserved documents in a rule file. | Juergen Bocklage-Ryannel | 2017-08-11 | 1 | -5/+3 |
| | | | | | To make a document preserve you just move the target/source pair into the preserve tag of the rule. | ||||
* | removed print statement | Juergen Bocklage-Ryannel | 2017-08-10 | 1 | -2/+0 |
| | |||||
* | Added source to generator, which is a prefix to template lookup | Juergen Bocklage-Ryannel | 2017-08-09 | 1 | -6/+33 |
| | |||||
* | Added features support for rule generator | Juergen Bocklage-Ryannel | 2017-08-03 | 1 | -4/+17 |
| | |||||
* | Added preserve options to rule generator yaml format. You need to | Juergen Bocklage-Ryannel | 2017-08-03 | 1 | -1/+3 |
| | | | | | enlist the target document in the preserve line to withc on the preserve option of the generator for the document. | ||||
* | simplified the messages printed to console | Juergen Bocklage-Ryannel | 2017-08-03 | 1 | -9/+9 |
| | |||||
* | Fixed small bug to reset destination on default | Juergen Bocklage-Ryannel | 2017-08-01 | 1 | -1/+1 |
| | |||||
* | Added new RuleGenerator which loads it tempaltes from a YAML | Juergen Bocklage-Ryannel | 2017-08-01 | 1 | -0/+43 |
| | | | | | | | | | | | | | | | | | | | | file. The format is roughly: <target>: <symbol>: context: {} destination: '' documents: <target>:<source> <target> is a name of the current target (e.g. client, server, plugin) <symbol> must be either system, module, interface, struct or enum system = FileSystem.parse(src) generator = RuleGenerator(search_path=here / 'templates', destination=dst) generator.filters.update(Filters.get_filters()) generator.filters.update({'parse_doc': parse_doc}) generator.process_rules(here / 'qtcpp.yaml', system) | ||||
* | Added filters dictionary to standard filters. | Juergen Bocklage-Ryannel | 2017-08-01 | 1 | -25/+28 |
| | | | | Filters can now be batch added using generator.filters.update(filters) | ||||
* | simplified generator writing | Juergen Bocklage-Ryannel | 2017-07-27 | 1 | -2/+6 |
| | | | | | | - generator has now own context dict - ctx for generator write is now optional if set on generator - destination is now applied through template apply | ||||
* | Added better (still not optima) error handling for the parser | Juergen Bocklage-Ryannel | 2017-07-25 | 1 | -4/+51 |
| | |||||
* | - added JINJA template package loader | Juergen Bocklage-Ryannel | 2017-07-11 | 1 | -2/+7 |
| | | | | - added macro library for common cpp snippets | ||||
* | Added general template error handler | Juergen Bocklage-Ryannel | 2017-07-10 | 1 | -1/+4 |
| | |||||
* | Added some jinja template exception handling | Juergen Bocklage-Ryannel | 2017-07-08 | 1 | -1/+13 |
| | |||||
* | Added a hash and lower_first filter to the generic filters | Juergen Bocklage-Ryannel | 2017-06-27 | 1 | -0/+6 |
| | |||||
* | Merge the fixes from master into develop and add a new fix for the needed ↵ | Dominik Holland | 2017-06-27 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | 'typing' package (#53) * Add 'six' as a requirement to requirements.txt and setup.py (#46) It seems like the 'six' package is a dependency and needs to be installed expliclty. * Fix generator.py to always write with the utf-8 encoding (#47) On windows the default encoding is not utf-8, that's why need to set it when opening a file for writing * antlr4 has a implicit dependency towards the 'typing' module antlr doesn't specify the dependency anywhere and on most systems 'typing' is already installed, but on systems like RHEL it is not installed and needs to be specified explicitly | ||||
* | added support for a local _tempates folder to overwrite templates. Also ↵ | Juergen Bocklage-Ryannel | 2017-04-12 | 1 | -7/+5 |
| | | | | added a header template. This allows you to have a custom license header | ||||
* | yaml based inline annotations (#31) | jryannel | 2017-04-03 | 1 | -3/+8 |
| | | | | | | | | | | | | | | | | * added support for inline yaml based annotations * CLI supports now livereloading of the documentation * updated the documentation to cover more annoations insights * added support for inline yaml based annotations * CLI supports now livereloading of the documentation * updated the documentation to cover more annoations insights * clarified that there should be one annotation per line | ||||
* | Fixed some issues with annotations. Several attributes should work now and ↵ | Juergen Bocklage-Ryannel | 2017-03-28 | 1 | -1/+2 |
| | | | | also the correct merging from YAML annotations with IDL annotations | ||||
* | fixed type in function name | Juergen Bocklage-Ryannel | 2017-03-28 | 1 | -2/+2 |
| | |||||
* | Added API to call merge annotations with custom document path | Juergen Bocklage-Ryannel | 2017-01-30 | 1 | -12/+16 |
| | |||||
* | Added initial support for external annotation files using the YAML syntax. ↵ | Juergen Bocklage-Ryannel | 2017-01-30 | 1 | -5/+23 |
| | | | | See grammar documentation | ||||
* | smaller cosmetics update and renamed searchpath for generator to search_path | Juergen Bocklage-Ryannel | 2017-01-26 | 1 | -16/+18 |
| | |||||
* | updated tests for qtcpp filters | Juergen Bocklage-Ryannel | 2017-01-16 | 1 | -3/+6 |
| | |||||
* | some minor code layout changes | Juergen Bocklage-Ryannel | 2017-01-13 | 1 | -0/+1 |
| | |||||
* | Started to use .qface file extension for interface files. The parse method ↵ | Juergen Bocklage-Ryannel | 2017-01-08 | 1 | -2/+2 |
| | | | | accepts now also a file pattern to find the correct interface files. | ||||
* | fixed var and method names to follow python conventions | Juergen Ryannel | 2016-12-20 | 1 | -1/+5 |
| | |||||
* | updated destination property for generator | Juergen Bocklage-Ryannel | 2016-12-12 | 1 | -2/+11 |
| | |||||
* | Added destination property to generator to allow easier prefixing for write ↵ | Juergen Bocklage-Ryannel | 2016-12-12 | 1 | -2/+4 |
| | | | | operations. | ||||
* | fixes logic issue around preserving changed file flag | Juergen Ryannel | 2016-12-09 | 1 | -2/+2 |
| | |||||
* | converted documentation to use sphinx | Juergen Ryannel | 2016-12-09 | 1 | -0/+4 |
| | |||||
* | renamed overwrite to preserve, to preserve file during generation; add log ↵ | Juergen Bocklage-Ryannel | 2016-12-07 | 1 | -2/+2 |
| | | | | yaml file | ||||
* | WIP: updating the qtcpp generator | Juergen Bocklage-Ryannel | 2016-12-05 | 1 | -19/+19 |
| |