CarbonScript is a high-level programming language.
It is primarily designed to be embedded in applications and to face end-users.
Being a mix of Python and C-style/JavaScripty syntax, it should be quite easy to pick up.
Check out the Interpreter Crash Course.
See Language Tour for quick overview.
You may also read The Big One.
If you're into that, here is the Grammar.
This is how CarbonScript looks and feels like:
print("hello, world\n")
func hello()
return "hello"
const foo = 42
var bar = 3
if (foo > bar)
bar = 7
else if (foo < bar)
bar = 1.618
else
bar = 108
while (true)
for (var i in [1..10:1])
print(i)
break
- Iterables (
[a, b, c]
) for
loops- Replace unary
!
withnot
. - Make classes out of LiteralValues.
- Add global scope to Environment.
- Functions
- Classes
- Refactor error handling.
- Standard library (small).
- Python bindings and standard library overrides.
- Resource management/usage limits.
- Refactoring/cleanup
- Optimizations