summaryrefslogtreecommitdiff
path: root/gr-utils/python/modtool/templates/templates.py
Commit message (Collapse)AuthorAgeFilesLines
* gr-utils: restructure {mod,block}tool foldersjapm482020-04-101-754/+0
| | | | | Move modtool and blocktool outside of the python folder, as per issue #2462.
* Switch from boost pointers to std C++11 pointersThomas Habets2020-04-011-2/+2
| | | | | | | | | | | | | | | | | | | Most of this code is automated code changes: ``` set -e SUB="s/dummy/dummy/" for i in shared_ptr make_shared dynamic_pointer_cast weak_ptr enable_shared_from_this get_deleter; do SUB="$SUB;s/boost::$i/std::$i/g" done SUB="$SUB;s^#include <boost/shared_ptr.hpp>^#include <memory>^g" SUB="$SUB;s^namespace boost^namespace std^g" find . \( -name "*.cc" -o -name "*.h" -o -name "*.i" -o -name "*.cxx" -o -name "*.py" \) -print0 | xargs -0 sed -i "$SUB" ``` Only one manual change. In `./gr-fec/lib/fec_mtrx_impl.cc`, add `#include <algorithm>`.
* Update license header to SPDX formatdevnulling2020-01-271-41/+3
|
* Block header parsing tool: GSoC 2019 (#2750)Arpit Gupta2019-12-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add base.py file in cli module to import override Click functions * Create cli and core base module for AST generation of header blocks * Create basic CLI for blocktool with minimal support * Add Sequence Completer to CLI and successful generation of AST * CLI structure complete with parseheader command * Basic core structure complete * Add test script gr_blocktool to run the tool * Add JSON schema and validation for parsed json output file * Change properties and methods key to list in JSON schema * Create an independent api from blocktool * Bug fix for abslute path of the header files * Create basic parser core api * Parse the block header documentation * Expose the core api, minor bug fixes * Create the code pylint compatible * Modify cli to accept file_path as an argument, parse default values of make function arguments * Fix: Namespace parsing of block header file * Parse the io_signature from the implementation file of the block header * Create json file generator * Add key-value io_signature and docstring in json schema, change sample generated json output * Fix: squash an I/O parsing bug * Change directory structure for blocktool tests * Add Blocktool unittest * Removed empty strings, make the code pylint compatible * Use str.format() to get output * Implement YAML generator * Add a new CLI argument to parse a complete header directory * Add Logger to log errors without raising exceptions * Create output schema file in blocktool core * Change directory structure of blocktool and cli commands * write unittests for Blocktool Excceptions * Add sample yaml files * Simplify blocktool cli structure * Refactor blocktool exception handling * Split long blocktool unit-tests * Parse message ports from the implementation file * Add tests for parsed message port id, update sample json files * Add blocktool subdirectory, files in CMakeLists.txt * Remove test files to run Blocktool * Fix: locates implementation file by traversing the module * Integrate blocktool with modtool as an external plugin * Create proper formatting of io_signature for yaml files * Extend modtool makeyaml command to extend support for blocktool * Remove external plugin for modtool support, add blocktool independent script * Minor formatiing, change function name due to conflict with modtool function * Add support to read and add blocktool special comments in header file * Fix: Key Errors, Modify Documentation Reader * Raise warning in case of conflict in the parsed information and blocktool comments * Remove all the blocktool boilerplate cli code and provide minimal support * Remove gr_blocktool script and use blocktool as a python module * Major refactoring of the modtool cli structure to support the blocktool API * Check for PyGCCXML dependency during build * Add README.md for gr-blocktool and remove modtool cli warnings
* Add gr::modname namespace to Boost UTF templateAnders Kalør2019-12-041-4/+9
|
* Improve GRC YAML templateAnders Kalør2019-08-291-15/+17
|
* modtool: use correct yaml comments for grc templateJosh Morman2019-08-051-17/+17
| | | | | GRC template was creating parser issues from the getgo because of the lingering XML comments. Use proper YML comments
* modtool: remove quotes for python hier block templateJosh Morman2019-07-171-2/+2
| | | | fixes #2628
* modtool: Update Python templatesJohannes Demel2019-03-311-7/+7
| | | | | | | Update templates for Python blocks and Python QA code. Previously, these templates created broken import statements. Also, a deprecated call to `gr_unittest.run(...)` is updated to not include a filename argument anymore. Finally, the python block signature generator was updated.
* utils: Remove end of line spaces and other whitespace from gr_modtool.Ron Economos2019-03-081-8/+0
|
* Modtool: Fix .yml template for grc bindingsSwapnil Negi2019-03-041-3/+2
|
* modtool: gr-modtool overhaul GSoC 2018Swapnil Negi2019-01-041-0/+794
This commit contains all the changes done during the 2018 GSoC "gr-modtool overhaul". Changes include: - Rewrite of gr-modtool based on Python Click - Split of gr-modtool in cli and core - Adherence to new GNU Radio 3.8 API for OOTs - Pylint improvements - Py3k and Py2k compatibility This feature is merged in a squash-merge due to big refactoring on the head and base branch and the impossibility to unclutter both.