yuchdev / code_generator Goto Github PK
View Code? Open in Web Editor NEWSimple and straightforward code generator for creating program code. At the moment offers support for C++, Java and HTML5 for generating reports.
License: MIT License
Simple and straightforward code generator for creating program code. At the moment offers support for C++, Java and HTML5 for generating reports.
License: MIT License
//.h
namespace web{
class CExample {
CExample();
}
}
//.cpp
web::CExample:CExample(){
}
I'm trying to generate a struct with out a parent and is getting the following result. the ": public" should not be there. Besides it looks a little strange with a extra newline between all variables.
test_class = CppClass(name="test", is_struct=True)
test_class.add_variable(CppVariable(name="foo", type="int"))
test_class.add_variable(CppVariable(name="bar", type="int"))
struct test : public
{
int foo;
int bar;
};
Python 3.10.12
Name: code-generation
Version: 2.3.0
Summary: Provides functionality of generating source code programmatically
Home-page: https://github.com/yuchdev/code_generator
Author: Yurii Cherkasov
Author-email: [email protected]
License:
Location: /home/dev/.local/lib/python3.10/site-packages
Requires: pathlib
Required-by:
//.cpp
Child::Child(Engine &engine) : Parent(engine) {
}
Using the pip version of the project will lead to a failing Actions pipeline in case of incompatible changes:
Is this the intended behavior?
How to generate:
#include "myfile.h"
I just started reading the implementation.
Thanks
//.cpp
#include "header.h"
For further development it would be good to create a v.1.1.0 tag. Proposal: v1.1.0 for 2976c36 on the master branch?
After I was asked to write a test after a small PR, I realized how difficult is to create a unit test for a code generator library.
I would like to use this issue to collect some information related to unit-testing a code-generation software.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.