Skip to content

High-level programming language for application end-users.

License

Notifications You must be signed in to change notification settings

qrichert/carbonscript

Repository files navigation

CarbonScript

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.

First Time Looking at Interpreter Code?

Check out the Interpreter Crash Course.

Language Tour

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

Roadmap

  • Iterables ([a, b, c])
  • for loops
  • Replace unary ! with not.
  • 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

About

High-level programming language for application end-users.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published