No project description provided
Project description
adacut
A tool to "cut" versions out of an Ada source file.
The "cuts" are defined using lines that start with a --$
comments marker.
Those lines are in the form --$ {begin, end, line} {question, answer, cut} [{comment, code}]
Example
The file titi_toto.ads
--$ begin question
-- Titi?
--$ end question
--$ begin answer
-- Toto
--$ end answer
can be turned into two different sources using adacut:
adacut -m question titi_toto.ads > titi.ads
-- Titi?
adacut -m answer titi_toto.ads > toto.ads
-- Toto
The -c <CUT>
switch allows to cut the given block.
cuttable.ads
--$ begin cut
Answer : Integer := 1;
--$ end cut
--$ begin cut
Answer : Integer := 2;
--$ end cut
adacut -c 1 > cut.ads
Answer : Integer := 1;
Test Adacut
You need pytest to be installed then simply run $ pytest
If you want to perform more exhaustive testing, you can use tox
$ tox
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file adacut-1.0.tar.gz
.
File metadata
- Download URL: adacut-1.0.tar.gz
- Upload date:
- Size: 1.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2115ea8ebb55906a5ca0cce5f5e46bdce1a67dbb9e5157dd0f57692edda98bb3 |
|
MD5 | bcacd36099c05bf4ed7cae2409cbc5b5 |
|
BLAKE2b-256 | 45820403b0108d04f38e2d15eaac30990f572441ed3f820fa67817a92fdc7950 |
File details
Details for the file adacut-1.0-py3-none-any.whl
.
File metadata
- Download URL: adacut-1.0-py3-none-any.whl
- Upload date:
- Size: 1.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2978fe54b411a17389885a13314251b0b991b6d7f40df2811673de6c1baa13b8 |
|
MD5 | 9cc1c55228d8b37d2dcfd1e524113a6a |
|
BLAKE2b-256 | 993ac68d9d171a1079ee0109c58dec8b6863a2b9a27bb3415322c0313e2c158b |