WARNING!! THIS LANGUAGE IS IN DEVELOPMENT. ANYTHING CAN CHANGE AT ANY MOMENT.
Gen is a dynamic, interpreted, procedural programming language.
See the documentation
日本語はこっちです。
Almost everything (for, if, and more) can be written in just one line. But it is pretty wordy, so it's also easy to learn.
TODO List
- Built-in functions
- Map (dictionary in Python)
- Import other files
- Reading files with extention .gen (meaning allowing multi-line statements)
Installation
git clone https://github.com/Gen-lang/Gen.git
cd PyGen/pygen
Then you can run Makefile:
make install
Then you can use gen:
gen some_file.gen
Hello World
println("Hello World")
Example
For examples, see examples directory.
# Fizzbuzz
for fizzbuzz = 0 through 51 then
if fizzbuzz % 3 == 0 and fizzbuzz % 5 == 0 then
println("fizzbuzz")
continue
elseif fizzbuzz % 3 == 0 then
println("fizz")
continue
elseif fizzbuzz % 5 == 0 then
println("buzz")
continue
end
end
Contributing
Contributions are welcome! Especially, I need an assist on Makefile to make Gen available to Windows users.
Reports
If you found a bug, please open a new issue and paste the error message and your code that caused the bug.
Credits
I learned a lot from this series and T# programming language.