mirror of
https://github.com/janet-lang/janet
synced 2024-09-28 15:08:40 +00:00
19 lines
663 B
XML
19 lines
663 B
XML
# GST is a general purpose language. It is small, not slow, and supports meta-
|
|
# programming. It also should be structured and static enough to easily scale to
|
|
# large programs. Lastly, it is interoperable with C and C++.
|
|
|
|
# Syntax - There is very little syntax. This simplifies parsing and makes macros
|
|
# easier to implement, which are useful in metaprogramming.
|
|
(+ 1 2 3)
|
|
|
|
# Unlike most lisps, it is not a pure functional language. Also unlike lisp, gst does
|
|
# not make much use of a list data structure, instead using arrays and objects for
|
|
# better performance at runtime.
|
|
(do
|
|
(:= a 1)
|
|
(while (< a 1025)
|
|
(print a)
|
|
(:= a (* a 2))
|
|
)
|
|
)
|