From 7f58cf305f260f0cfb71767dd701f94883ed3abd Mon Sep 17 00:00:00 2001 From: Charlie Turner Date: Sat, 24 Jan 2015 21:51:17 +0000 Subject: [PATCH] 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 --- docs/tutorial/LangImpl1.rst | 2 +- docs/tutorial/LangImpl9.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial/LangImpl1.rst b/docs/tutorial/LangImpl1.rst index a2c5eeebf47..3333ce8706f 100644 --- a/docs/tutorial/LangImpl1.rst +++ b/docs/tutorial/LangImpl1.rst @@ -80,7 +80,7 @@ in the various pieces. The structure of the tutorial is: collection support, exceptions, debugging, support for "spaghetti stacks", and a bunch of other tips and tricks. -By the end of the tutorial, we'll have written a bit less than 700 lines +By the end of the tutorial, we'll have written a bit less than 1000 lines of non-comment, non-blank, lines of code. With this small amount of code, we'll have built up a very reasonable compiler for a non-trivial language including a hand-written lexer, parser, AST, as well as code diff --git a/docs/tutorial/LangImpl9.rst b/docs/tutorial/LangImpl9.rst index 6f694931ef8..c5140a12e5c 100644 --- a/docs/tutorial/LangImpl9.rst +++ b/docs/tutorial/LangImpl9.rst @@ -15,7 +15,7 @@ being a semi-interesting (but probably still useless) toy. :) It is interesting to see how far we've come, and how little code it has taken. We built the entire lexer, parser, AST, code generator, and an -interactive run-loop (with a JIT!) by-hand in under 700 lines of +interactive run-loop (with a JIT!) by-hand in under 1000 lines of (non-comment/non-blank) code. Our little language supports a couple of interesting features: it -- 2.34.1