https://github.com/posixpascal/precompiler
https://github.com/posixpascal/precompiler
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/posixpascal/precompiler
- Owner: posixpascal
- Created: 2012-09-10T22:58:53.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2015-12-10T16:01:27.000Z (over 9 years ago)
- Last Synced: 2025-03-09T00:39:54.579Z (4 months ago)
- Language: Java
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Precompiler
===========Because every german school uses stupid java in their programming courses I wrote this neat little Precompiler.
Guess what, it's written in Java itself because I don't know any better. JK, I thought it would fit nice.This thing isn't really a precompiler, well it is, but in fact I use such a stupid method to precompile it that it would blame every other precompiler out there...
Instead of coding a simple tokenizer, I prefer the SPLIT/REGEX tokening...
This thing does:
simplify getter & setter methods by adding a new set of functions.
You can for example do this using my Precompiler:```
public class ExampleCode {private int myVar = 0;
private String myName = "Tom!";
@setter: myVar, myName;
@getter: myVar;
void main(String[] args){
print("Easy Printings!");
}
}
```The @setter, @getter at-script creates setter/getter methods for every variable (you can also comma seperate variables if you want to).
That's it. hillarious right? But i'm tired of all these setter/getter methods. This is rly useless after someone told me eclipse(or any other IDE) would automatically generate them...
So I thought, hey, let's add an @import statement as well, which includes another file. it's like a partial for java source.README was added 4 years later. lol.