llvm.org GIT mirror llvm / 7f58cf3
Update references to lines of code count. The number of lines of code in Kaleidoscope has risen from the previously reported 700 to 986 according to the cloc tool. This tools was run on the toy.cpp file from Chapter 8. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227019 91177308-0d34-0410-b5e6-96231b3b80d8 Charlie Turner 4 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
7979 collection support, exceptions, debugging, support for "spaghetti
8080 stacks", and a bunch of other tips and tricks.
8181
82 By the end of the tutorial, we'll have written a bit less than 700 lines
82 By the end of the tutorial, we'll have written a bit less than 1000 lines
8383 of non-comment, non-blank, lines of code. With this small amount of
8484 code, we'll have built up a very reasonable compiler for a non-trivial
8585 language including a hand-written lexer, parser, AST, as well as code
1414
1515 It is interesting to see how far we've come, and how little code it has
1616 taken. We built the entire lexer, parser, AST, code generator, and an
17 interactive run-loop (with a JIT!) by-hand in under 700 lines of
17 interactive run-loop (with a JIT!) by-hand in under 1000 lines of
1818 (non-comment/non-blank) code.
1919
2020 Our little language supports a couple of interesting features: it