ChristmasTime is a fun, lightweight scripting language written in C, with a Christmas-themed syntax. Use gift for variables, say to print, and jingle for loops — perfect for learning interpreters or just having fun.
- Simple variable system (
gift x = 5) - Print command (
say "Hello") - Math and expressions
- Conditions (
if … { … }) - Loops (
jingle 3 times { … }) - Blocks and comments
- Fully implemented lexer, parser, AST evaluator
- Easy to extend C codebase
gcc christmastime.c -o christmastime -lmCreate a file called project_test.ct:
gift count = 3
jingle count times {
say "Ho ho ho!"
}./christmastime project_test.ct./christmastimeThen type:
say "HoHoHo"Press enter to see the output instantly.
gift gifts = 5
if gifts > 3 {
say "Many gifts!"
} else {
say "Just a few gifts."
}- Functions support
- Arrays and objects
- Import modules
- Bytecode VM for faster execution
- Standard library (random, string functions, file I/O)
- Enhanced error handling
This project is open source and available under the MIT License.