> 2. This informal introduction leaves a lot unspecified. List several open
> questions you have about the language’s syntax and semantics. What do you
> think the answers should be?

- String escaping, Unicode?
- Interaction with the system (i.e., exit status code)?
- What are the built-in errors?
  - What happens when we all a function with the wrong number of arguments? It
    would be cool if it were curried...
- Multiple inheritance?

> 3. Lox is a pretty tiny language. What features do you think it is missing
> that would make it annoying to use for real programs? (Aside from the
> standard library, of course.)

No way to interact with the outside world, whether that's files, stdin, or
networking. No parallelization. Somewhat reminiscent of Lua, really.

FossilOrigin-Name: 394141a0b92ff762adcc54b53e4a04786a5374ad42fe312be5c20b6666dbb3f5
private
alpha 2 years ago
parent fc55b0e6ee
commit f551da3dd7

@ -1,3 +1,11 @@
# Crafting Interpreters # Crafting Interpreters
- [Crafting Interpreters](https://craftinginterpreters.com/) - [Crafting Interpreters](https://craftinginterpreters.com/)
## Installing Lox
```sh
brew install --HEAD kejadlen/personal/lox
```

@ -0,0 +1,9 @@
fun fib(n) {
if (n == 2) {
return 2;
} else {
return n * fib(n - 1);
}
}
print fib(5);

@ -0,0 +1 @@
print "hello world";
Loading…
Cancel
Save