Skip to content

MiroslavVitkov/cgetset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cgetset - a small utility for automatic setter/getter functions generation.

The program parses a text file of variable declarations. As of now, nearly no grammar is supported 
- no unions, structs, bitfields, let alone classes and other c++ complications.

The use is as follows:
cgetset <input file> <templates folder>

The program searches in the templates folder for fiels with names, matching those of the declared types 
e.g. "int.h" && "int.c". Then it simply appends the file to the corresponding output file. 

If a matching template file is not found, "default" is searched. If that is also not found, the program crashes.

'@' characters, encountered in the template file, are exchanged for the current variable's name.

About

simple c parser - generates getter/setter methods for all declarations, self-contained

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published