Giter Club home page Giter Club logo

code_generator's People

Contributors

erichschroeter avatar tcitbiint3 avatar yuchdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

code_generator's Issues

Tag for v1.1.0

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?

CppClass adds ": public" to class even though no parent is defined

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.

python

        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"))

result

	struct test  : public 
	{
		
		int foo;
		
		int bar;
		
	};

env

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:

Adding namespace

//.h

namespace web{
class CExample {
CExample();
}
}

//.cpp

web::CExample:CExample(){
}

Generate include file

How to generate:
#include "myfile.h"

I just started reading the implementation.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.