-
jlox and clox have different behavior when working with not a number values. This code:
```
var nan = 0.0/0.0;
print nan;
print nan == nan;
print nan != nan;
print nan > nan;
print nan < nan;
…
-
Hi
I was randomly testing some text messages trying to detect the language using your assembly and got these results:
`Like super duper sketchy`
Language is: da
Probability: 0.9992335438728333
…
-
Maybe this is too basic. But I'm kind of unclear of the distinction between an interpreter and a compiler.
According to the explanation provided in one of the initial chapters of jlox, interpreters…
-
I have a question about pre/post increment/decrement (a++, ++a, a--, --a) expressions and how they fit within the rules.
Could you please give me some guidance on how to implement those? as I can see…
-
In the third chapter there was a note about how making `print` a statement is a little hack to allow testing the interpreter before we have working functions. Now that we have implemented functions, t…
-
#### possible errors (if being really picky)
- copyright year is 2015, I forgot to point this out earlier
- "Ritchie had this idea called ..." - This might be nothing but the reader might have forgo…
colms updated
7 years ago
-
I was studying your book and while I was reading code, i typed "54hello", the lexer of the language accepted it and the lexer returned:
> 54hello
NUMBER 54 54.0
IDENTIFIER hello null
EOF null
…
-
Writing lox code is currently a pain in the ass because one can not write
foo(fun() { ... }) or foo(fun bar() { ... })
but has to write
fun bar() { ... }
foo(bar);
which is less readable …
forax updated
7 years ago
-
[Section 1.3](http://craftinginterpreters.com/introduction.html#the-first-interpreter) gives a great description of bootstrapping. After the description of Lox in [Chapter 3](http://craftinginterpret…
-
Some stuff that might be worth throwing an eye over:
- rules blocks in this chapter have semicolons after each rule but earlier chapters don't e.g. program = statement* EOF ; (that semicolon ther…
colms updated
7 years ago