├── .gitignore ├── LICENSE ├── README.md ├── chapter10 ├── AstPrinter.h ├── AstPrinterDriver.cpp ├── Environment.h ├── Error.h ├── Expr.h ├── GenerateAst.cpp ├── Interpreter.h ├── Lox.cpp ├── LoxCallable.h ├── LoxFunction.cpp ├── LoxFunction.h ├── LoxReturn.h ├── Makefile ├── Parser.h ├── RuntimeError.h ├── Scanner.h ├── Stmt.h ├── Token.h ├── TokenType.h └── tests │ ├── test-control-flow.lox │ ├── test-control-flow.lox.expected │ ├── test-control-flow2.lox │ ├── test-control-flow2.lox.expected │ ├── test-functions.lox │ ├── test-functions.lox.expected │ ├── test-functions2.lox │ ├── test-functions2.lox.expected │ ├── test-functions3.lox │ ├── test-functions3.lox.expected │ ├── test-functions4.lox │ ├── test-functions4.lox.expected │ ├── test-statements.lox │ ├── test-statements.lox.expected │ ├── test-statements2.lox │ ├── test-statements2.lox.expected │ ├── test-statements3.lox │ ├── test-statements3.lox.expected │ ├── test-statements4.lox │ ├── test-statements4.lox.expected │ ├── test-statements5.lox │ ├── test-statements5.lox.expected │ ├── test-statements6.lox │ └── test-statements6.lox.expected ├── chapter11 ├── AstPrinter.h ├── AstPrinterDriver.cpp ├── Environment.h ├── Error.h ├── Expr.h ├── GenerateAst.cpp ├── Interpreter.h ├── Lox.cpp ├── LoxCallable.h ├── LoxFunction.cpp ├── LoxFunction.h ├── LoxReturn.h ├── Makefile ├── Parser.h ├── Resolver.h ├── RuntimeError.h ├── Scanner.h ├── Stmt.h ├── Token.h ├── TokenType.h └── tests │ ├── test-control-flow.lox │ ├── test-control-flow.lox.expected │ ├── test-control-flow2.lox │ ├── test-control-flow2.lox.expected │ ├── test-functions.lox │ ├── test-functions.lox.expected │ ├── test-functions2.lox │ ├── test-functions2.lox.expected │ ├── test-functions3.lox │ ├── test-functions3.lox.expected │ ├── test-functions4.lox │ ├── test-functions4.lox.expected │ ├── test-resolving.lox │ ├── test-resolving.lox.expected │ ├── test-resolving2.lox │ ├── test-resolving2.lox.expected │ ├── test-resolving3.lox │ ├── test-resolving3.lox.expected │ ├── test-resolving4.lox │ ├── test-resolving4.lox.expected │ ├── test-statements.lox │ ├── test-statements.lox.expected │ ├── test-statements2.lox │ ├── test-statements2.lox.expected │ ├── test-statements3.lox │ ├── test-statements3.lox.expected │ ├── test-statements4.lox │ ├── test-statements4.lox.expected │ ├── test-statements5.lox │ ├── test-statements5.lox.expected │ ├── test-statements6.lox │ └── test-statements6.lox.expected ├── chapter12 ├── AstPrinter.h ├── AstPrinterDriver.cpp ├── Environment.h ├── Error.h ├── Expr.h ├── GenerateAst.cpp ├── Interpreter.h ├── Lox.cpp ├── LoxCallable.h ├── LoxClass.cpp ├── LoxClass.h ├── LoxFunction.cpp ├── LoxFunction.h ├── LoxInstance.cpp ├── LoxInstance.h ├── LoxReturn.h ├── Makefile ├── Parser.h ├── Resolver.h ├── RuntimeError.h ├── Scanner.h ├── Stmt.h ├── Token.h ├── TokenType.h └── tests │ ├── test-classes.lox │ ├── test-classes.lox.expected │ ├── test-classes10.lox │ ├── test-classes10.lox.expected │ ├── test-classes11.lox │ ├── test-classes11.lox.expected │ ├── test-classes12.lox │ ├── test-classes12.lox.expected │ ├── test-classes13.lox │ ├── test-classes13.lox.expected │ ├── test-classes2.lox │ ├── test-classes2.lox.expected │ ├── test-classes3.lox │ ├── test-classes3.lox.expected │ ├── test-classes4.lox │ ├── test-classes4.lox.expected │ ├── test-classes5.lox │ ├── test-classes5.lox.expected │ ├── test-classes6.lox │ ├── test-classes6.lox.expected │ ├── test-classes7.lox │ ├── test-classes7.lox.expected │ ├── test-classes8.lox │ ├── test-classes8.lox.expected │ ├── test-classes9.lox │ ├── test-classes9.lox.expected │ ├── test-control-flow.lox │ ├── test-control-flow.lox.expected │ ├── test-control-flow2.lox │ ├── test-control-flow2.lox.expected │ ├── test-functions.lox │ ├── test-functions.lox.expected │ ├── test-functions2.lox │ ├── test-functions2.lox.expected │ ├── test-functions3.lox │ ├── test-functions3.lox.expected │ ├── test-functions4.lox │ ├── test-functions4.lox.expected │ ├── test-resolving.lox │ ├── test-resolving.lox.expected │ ├── test-resolving2.lox │ ├── test-resolving2.lox.expected │ ├── test-resolving3.lox │ ├── test-resolving3.lox.expected │ ├── test-resolving4.lox │ ├── test-resolving4.lox.expected │ ├── test-statements.lox │ ├── test-statements.lox.expected │ ├── test-statements2.lox │ ├── test-statements2.lox.expected │ ├── test-statements3.lox │ ├── test-statements3.lox.expected │ ├── test-statements4.lox │ ├── test-statements4.lox.expected │ ├── test-statements5.lox │ ├── test-statements5.lox.expected │ ├── test-statements6.lox │ └── test-statements6.lox.expected ├── chapter13 ├── AstPrinter.h ├── AstPrinterDriver.cpp ├── Environment.h ├── Error.h ├── Expr.h ├── GenerateAst.cpp ├── Interpreter.h ├── Lox.cpp ├── LoxCallable.h ├── LoxClass.cpp ├── LoxClass.h ├── LoxFunction.cpp ├── LoxFunction.h ├── LoxInstance.cpp ├── LoxInstance.h ├── LoxReturn.h ├── Makefile ├── Parser.h ├── Resolver.h ├── RuntimeError.h ├── Scanner.h ├── Stmt.h ├── Token.h ├── TokenType.h └── tests │ ├── test-classes.lox │ ├── test-classes.lox.expected │ ├── test-classes10.lox │ ├── test-classes10.lox.expected │ ├── test-classes11.lox │ ├── test-classes11.lox.expected │ ├── test-classes12.lox │ ├── test-classes12.lox.expected │ ├── test-classes13.lox │ ├── test-classes13.lox.expected │ ├── test-classes2.lox │ ├── test-classes2.lox.expected │ ├── test-classes3.lox │ ├── test-classes3.lox.expected │ ├── test-classes4.lox │ ├── test-classes4.lox.expected │ ├── test-classes5.lox │ ├── test-classes5.lox.expected │ ├── test-classes6.lox │ ├── test-classes6.lox.expected │ ├── test-classes7.lox │ ├── test-classes7.lox.expected │ ├── test-classes8.lox │ ├── test-classes8.lox.expected │ ├── test-classes9.lox │ ├── test-classes9.lox.expected │ ├── test-control-flow.lox │ ├── test-control-flow.lox.expected │ ├── test-control-flow2.lox │ ├── test-control-flow2.lox.expected │ ├── test-functions.lox │ ├── test-functions.lox.expected │ ├── test-functions2.lox │ ├── test-functions2.lox.expected │ ├── test-functions3.lox │ ├── test-functions3.lox.expected │ ├── test-functions4.lox │ ├── test-functions4.lox.expected │ ├── test-inheritance.lox │ ├── test-inheritance.lox.expected │ ├── test-inheritance2.lox │ ├── test-inheritance2.lox.expected │ ├── test-inheritance3.lox │ ├── test-inheritance3.lox.expected │ ├── test-inheritance4.lox │ ├── test-inheritance4.lox.expected │ ├── test-inheritance5.lox │ ├── test-inheritance5.lox.expected │ ├── test-inheritance6.lox │ ├── test-inheritance6.lox.expected │ ├── test-inheritance7.lox │ ├── test-inheritance7.lox.expected │ ├── test-resolving.lox │ ├── test-resolving.lox.expected │ ├── test-resolving2.lox │ ├── test-resolving2.lox.expected │ ├── test-resolving3.lox │ ├── test-resolving3.lox.expected │ ├── test-resolving4.lox │ ├── test-resolving4.lox.expected │ ├── test-statements.lox │ ├── test-statements.lox.expected │ ├── test-statements2.lox │ ├── test-statements2.lox.expected │ ├── test-statements3.lox │ ├── test-statements3.lox.expected │ ├── test-statements4.lox │ ├── test-statements4.lox.expected │ ├── test-statements5.lox │ ├── test-statements5.lox.expected │ ├── test-statements6.lox │ └── test-statements6.lox.expected ├── chapter4 ├── Error.h ├── Lox.cpp ├── Makefile ├── Scanner.h ├── Token.h ├── TokenType.h └── tests │ ├── test-lexing.lox │ ├── test-lexing.lox.expected │ ├── test-lexing2.lox │ └── test-lexing2.lox.expected ├── chapter5 ├── AstPrinter.h ├── AstPrinterDriver.cpp ├── Error.h ├── Expr.h ├── GenerateAst.cpp ├── Lox.cpp ├── Makefile ├── Scanner.h ├── Token.h ├── TokenType.h └── tests │ ├── test-lexing.lox │ ├── test-lexing.lox.expected │ ├── test-lexing2.lox │ └── test-lexing2.lox.expected ├── chapter6 ├── AstPrinter.h ├── AstPrinterDriver.cpp ├── Error.h ├── Expr.h ├── GenerateAst.cpp ├── Lox.cpp ├── Makefile ├── Parser.h ├── Scanner.h ├── Token.h ├── TokenType.h └── tests │ ├── test-parsing.lox │ └── test-parsing.lox.expected ├── chapter7 ├── AstPrinter.h ├── AstPrinterDriver.cpp ├── Error.h ├── Expr.h ├── GenerateAst.cpp ├── Interpreter.h ├── Lox.cpp ├── Makefile ├── Parser.h ├── RuntimeError.h ├── Scanner.h ├── Token.h ├── TokenType.h └── tests │ ├── test-expressions.lox │ ├── test-expressions.lox.expected │ ├── test-expressions2.lox │ └── test-expressions2.lox.expected ├── chapter8 ├── AstPrinter.h ├── AstPrinterDriver.cpp ├── Environment.h ├── Error.h ├── Expr.h ├── GenerateAst.cpp ├── Interpreter.h ├── Lox.cpp ├── Makefile ├── Parser.h ├── RuntimeError.h ├── Scanner.h ├── Stmt.h ├── Token.h ├── TokenType.h ├── challenge2 │ ├── AstPrinter.h │ ├── AstPrinterDriver.cpp │ ├── Environment.h │ ├── Error.h │ ├── Expr.h │ ├── GenerateAst.cpp │ ├── Interpreter.h │ ├── Lox.cpp │ ├── Makefile │ ├── Parser.h │ ├── RuntimeError.h │ ├── Scanner.h │ ├── Stmt.h │ ├── Token.h │ ├── TokenType.h │ └── tests │ │ ├── test-challenge2.lox │ │ ├── test-challenge2.lox.expected │ │ ├── test-statements.lox │ │ ├── test-statements.lox.expected │ │ ├── test-statements2.lox │ │ ├── test-statements2.lox.expected │ │ ├── test-statements3.lox │ │ ├── test-statements3.lox.expected │ │ ├── test-statements4.lox │ │ ├── test-statements4.lox.expected │ │ ├── test-statements5.lox │ │ ├── test-statements5.lox.expected │ │ ├── test-statements6.lox │ │ └── test-statements6.lox.expected └── tests │ ├── test-statements.lox │ ├── test-statements.lox.expected │ ├── test-statements2.lox │ ├── test-statements2.lox.expected │ ├── test-statements3.lox │ ├── test-statements3.lox.expected │ ├── test-statements4.lox │ ├── test-statements4.lox.expected │ ├── test-statements5.lox │ ├── test-statements5.lox.expected │ ├── test-statements6.lox │ └── test-statements6.lox.expected └── chapter9 ├── AstPrinter.h ├── AstPrinterDriver.cpp ├── Environment.h ├── Error.h ├── Expr.h ├── GenerateAst.cpp ├── Interpreter.h ├── Lox.cpp ├── Makefile ├── Parser.h ├── RuntimeError.h ├── Scanner.h ├── Stmt.h ├── Token.h ├── TokenType.h └── tests ├── test-control-flow.lox ├── test-control-flow.lox.expected ├── test-control-flow2.lox ├── test-control-flow2.lox.expected ├── test-statements.lox ├── test-statements.lox.expected ├── test-statements2.lox ├── test-statements2.lox.expected ├── test-statements3.lox ├── test-statements3.lox.expected ├── test-statements4.lox ├── test-statements4.lox.expected ├── test-statements5.lox ├── test-statements5.lox.expected ├── test-statements6.lox └── test-statements6.lox.expected /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/README.md -------------------------------------------------------------------------------- /chapter10/AstPrinter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/AstPrinter.h -------------------------------------------------------------------------------- /chapter10/AstPrinterDriver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/AstPrinterDriver.cpp -------------------------------------------------------------------------------- /chapter10/Environment.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/Environment.h -------------------------------------------------------------------------------- /chapter10/Error.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/Error.h -------------------------------------------------------------------------------- /chapter10/Expr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/Expr.h -------------------------------------------------------------------------------- /chapter10/GenerateAst.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/GenerateAst.cpp -------------------------------------------------------------------------------- /chapter10/Interpreter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/Interpreter.h -------------------------------------------------------------------------------- /chapter10/Lox.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/Lox.cpp -------------------------------------------------------------------------------- /chapter10/LoxCallable.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/LoxCallable.h -------------------------------------------------------------------------------- /chapter10/LoxFunction.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/LoxFunction.cpp -------------------------------------------------------------------------------- /chapter10/LoxFunction.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/LoxFunction.h -------------------------------------------------------------------------------- /chapter10/LoxReturn.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | struct LoxReturn { 6 | const std::any value; 7 | }; -------------------------------------------------------------------------------- /chapter10/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/Makefile -------------------------------------------------------------------------------- /chapter10/Parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/Parser.h -------------------------------------------------------------------------------- /chapter10/RuntimeError.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/RuntimeError.h -------------------------------------------------------------------------------- /chapter10/Scanner.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/Scanner.h -------------------------------------------------------------------------------- /chapter10/Stmt.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/Stmt.h -------------------------------------------------------------------------------- /chapter10/Token.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/Token.h -------------------------------------------------------------------------------- /chapter10/TokenType.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/TokenType.h -------------------------------------------------------------------------------- /chapter10/tests/test-control-flow.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/tests/test-control-flow.lox -------------------------------------------------------------------------------- /chapter10/tests/test-control-flow.lox.expected: -------------------------------------------------------------------------------- 1 | hi 2 | yes 3 | -------------------------------------------------------------------------------- /chapter10/tests/test-control-flow2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/tests/test-control-flow2.lox -------------------------------------------------------------------------------- /chapter10/tests/test-control-flow2.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/tests/test-control-flow2.lox.expected -------------------------------------------------------------------------------- /chapter10/tests/test-functions.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/tests/test-functions.lox -------------------------------------------------------------------------------- /chapter10/tests/test-functions.lox.expected: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /chapter10/tests/test-functions2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/tests/test-functions2.lox -------------------------------------------------------------------------------- /chapter10/tests/test-functions2.lox.expected: -------------------------------------------------------------------------------- 1 | Hi, Dear Reader! 2 | -------------------------------------------------------------------------------- /chapter10/tests/test-functions3.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/tests/test-functions3.lox -------------------------------------------------------------------------------- /chapter10/tests/test-functions3.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/tests/test-functions3.lox.expected -------------------------------------------------------------------------------- /chapter10/tests/test-functions4.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/tests/test-functions4.lox -------------------------------------------------------------------------------- /chapter10/tests/test-functions4.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/tests/test-functions4.lox.expected -------------------------------------------------------------------------------- /chapter10/tests/test-statements.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/tests/test-statements.lox -------------------------------------------------------------------------------- /chapter10/tests/test-statements.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/tests/test-statements.lox.expected -------------------------------------------------------------------------------- /chapter10/tests/test-statements2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/tests/test-statements2.lox -------------------------------------------------------------------------------- /chapter10/tests/test-statements2.lox.expected: -------------------------------------------------------------------------------- 1 | before 2 | after 3 | -------------------------------------------------------------------------------- /chapter10/tests/test-statements3.lox: -------------------------------------------------------------------------------- 1 | var a; 2 | print a; // "nil". 3 | -------------------------------------------------------------------------------- /chapter10/tests/test-statements3.lox.expected: -------------------------------------------------------------------------------- 1 | nil 2 | -------------------------------------------------------------------------------- /chapter10/tests/test-statements4.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/tests/test-statements4.lox -------------------------------------------------------------------------------- /chapter10/tests/test-statements4.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/tests/test-statements4.lox.expected -------------------------------------------------------------------------------- /chapter10/tests/test-statements5.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/tests/test-statements5.lox -------------------------------------------------------------------------------- /chapter10/tests/test-statements5.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/tests/test-statements5.lox.expected -------------------------------------------------------------------------------- /chapter10/tests/test-statements6.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/tests/test-statements6.lox -------------------------------------------------------------------------------- /chapter10/tests/test-statements6.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter10/tests/test-statements6.lox.expected -------------------------------------------------------------------------------- /chapter11/AstPrinter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/AstPrinter.h -------------------------------------------------------------------------------- /chapter11/AstPrinterDriver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/AstPrinterDriver.cpp -------------------------------------------------------------------------------- /chapter11/Environment.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/Environment.h -------------------------------------------------------------------------------- /chapter11/Error.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/Error.h -------------------------------------------------------------------------------- /chapter11/Expr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/Expr.h -------------------------------------------------------------------------------- /chapter11/GenerateAst.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/GenerateAst.cpp -------------------------------------------------------------------------------- /chapter11/Interpreter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/Interpreter.h -------------------------------------------------------------------------------- /chapter11/Lox.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/Lox.cpp -------------------------------------------------------------------------------- /chapter11/LoxCallable.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/LoxCallable.h -------------------------------------------------------------------------------- /chapter11/LoxFunction.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/LoxFunction.cpp -------------------------------------------------------------------------------- /chapter11/LoxFunction.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/LoxFunction.h -------------------------------------------------------------------------------- /chapter11/LoxReturn.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | struct LoxReturn { 6 | const std::any value; 7 | }; -------------------------------------------------------------------------------- /chapter11/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/Makefile -------------------------------------------------------------------------------- /chapter11/Parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/Parser.h -------------------------------------------------------------------------------- /chapter11/Resolver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/Resolver.h -------------------------------------------------------------------------------- /chapter11/RuntimeError.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/RuntimeError.h -------------------------------------------------------------------------------- /chapter11/Scanner.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/Scanner.h -------------------------------------------------------------------------------- /chapter11/Stmt.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/Stmt.h -------------------------------------------------------------------------------- /chapter11/Token.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/Token.h -------------------------------------------------------------------------------- /chapter11/TokenType.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/TokenType.h -------------------------------------------------------------------------------- /chapter11/tests/test-control-flow.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-control-flow.lox -------------------------------------------------------------------------------- /chapter11/tests/test-control-flow.lox.expected: -------------------------------------------------------------------------------- 1 | hi 2 | yes 3 | -------------------------------------------------------------------------------- /chapter11/tests/test-control-flow2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-control-flow2.lox -------------------------------------------------------------------------------- /chapter11/tests/test-control-flow2.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-control-flow2.lox.expected -------------------------------------------------------------------------------- /chapter11/tests/test-functions.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-functions.lox -------------------------------------------------------------------------------- /chapter11/tests/test-functions.lox.expected: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /chapter11/tests/test-functions2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-functions2.lox -------------------------------------------------------------------------------- /chapter11/tests/test-functions2.lox.expected: -------------------------------------------------------------------------------- 1 | Hi, Dear Reader! 2 | -------------------------------------------------------------------------------- /chapter11/tests/test-functions3.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-functions3.lox -------------------------------------------------------------------------------- /chapter11/tests/test-functions3.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-functions3.lox.expected -------------------------------------------------------------------------------- /chapter11/tests/test-functions4.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-functions4.lox -------------------------------------------------------------------------------- /chapter11/tests/test-functions4.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-functions4.lox.expected -------------------------------------------------------------------------------- /chapter11/tests/test-resolving.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-resolving.lox -------------------------------------------------------------------------------- /chapter11/tests/test-resolving.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-resolving.lox.expected -------------------------------------------------------------------------------- /chapter11/tests/test-resolving2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-resolving2.lox -------------------------------------------------------------------------------- /chapter11/tests/test-resolving2.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-resolving2.lox.expected -------------------------------------------------------------------------------- /chapter11/tests/test-resolving3.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-resolving3.lox -------------------------------------------------------------------------------- /chapter11/tests/test-resolving3.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-resolving3.lox.expected -------------------------------------------------------------------------------- /chapter11/tests/test-resolving4.lox: -------------------------------------------------------------------------------- 1 | return "at top level"; 2 | -------------------------------------------------------------------------------- /chapter11/tests/test-resolving4.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-resolving4.lox.expected -------------------------------------------------------------------------------- /chapter11/tests/test-statements.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-statements.lox -------------------------------------------------------------------------------- /chapter11/tests/test-statements.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-statements.lox.expected -------------------------------------------------------------------------------- /chapter11/tests/test-statements2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-statements2.lox -------------------------------------------------------------------------------- /chapter11/tests/test-statements2.lox.expected: -------------------------------------------------------------------------------- 1 | before 2 | after 3 | -------------------------------------------------------------------------------- /chapter11/tests/test-statements3.lox: -------------------------------------------------------------------------------- 1 | var a; 2 | print a; // "nil". 3 | -------------------------------------------------------------------------------- /chapter11/tests/test-statements3.lox.expected: -------------------------------------------------------------------------------- 1 | nil 2 | -------------------------------------------------------------------------------- /chapter11/tests/test-statements4.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-statements4.lox -------------------------------------------------------------------------------- /chapter11/tests/test-statements4.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-statements4.lox.expected -------------------------------------------------------------------------------- /chapter11/tests/test-statements5.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-statements5.lox -------------------------------------------------------------------------------- /chapter11/tests/test-statements5.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-statements5.lox.expected -------------------------------------------------------------------------------- /chapter11/tests/test-statements6.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-statements6.lox -------------------------------------------------------------------------------- /chapter11/tests/test-statements6.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter11/tests/test-statements6.lox.expected -------------------------------------------------------------------------------- /chapter12/AstPrinter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/AstPrinter.h -------------------------------------------------------------------------------- /chapter12/AstPrinterDriver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/AstPrinterDriver.cpp -------------------------------------------------------------------------------- /chapter12/Environment.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/Environment.h -------------------------------------------------------------------------------- /chapter12/Error.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/Error.h -------------------------------------------------------------------------------- /chapter12/Expr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/Expr.h -------------------------------------------------------------------------------- /chapter12/GenerateAst.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/GenerateAst.cpp -------------------------------------------------------------------------------- /chapter12/Interpreter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/Interpreter.h -------------------------------------------------------------------------------- /chapter12/Lox.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/Lox.cpp -------------------------------------------------------------------------------- /chapter12/LoxCallable.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/LoxCallable.h -------------------------------------------------------------------------------- /chapter12/LoxClass.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/LoxClass.cpp -------------------------------------------------------------------------------- /chapter12/LoxClass.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/LoxClass.h -------------------------------------------------------------------------------- /chapter12/LoxFunction.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/LoxFunction.cpp -------------------------------------------------------------------------------- /chapter12/LoxFunction.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/LoxFunction.h -------------------------------------------------------------------------------- /chapter12/LoxInstance.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/LoxInstance.cpp -------------------------------------------------------------------------------- /chapter12/LoxInstance.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/LoxInstance.h -------------------------------------------------------------------------------- /chapter12/LoxReturn.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | struct LoxReturn { 6 | const std::any value; 7 | }; -------------------------------------------------------------------------------- /chapter12/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/Makefile -------------------------------------------------------------------------------- /chapter12/Parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/Parser.h -------------------------------------------------------------------------------- /chapter12/Resolver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/Resolver.h -------------------------------------------------------------------------------- /chapter12/RuntimeError.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/RuntimeError.h -------------------------------------------------------------------------------- /chapter12/Scanner.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/Scanner.h -------------------------------------------------------------------------------- /chapter12/Stmt.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/Stmt.h -------------------------------------------------------------------------------- /chapter12/Token.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/Token.h -------------------------------------------------------------------------------- /chapter12/TokenType.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/TokenType.h -------------------------------------------------------------------------------- /chapter12/tests/test-classes.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-classes.lox -------------------------------------------------------------------------------- /chapter12/tests/test-classes.lox.expected: -------------------------------------------------------------------------------- 1 | DevonshireCream 2 | -------------------------------------------------------------------------------- /chapter12/tests/test-classes10.lox: -------------------------------------------------------------------------------- 1 | print this; 2 | -------------------------------------------------------------------------------- /chapter12/tests/test-classes10.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-classes10.lox.expected -------------------------------------------------------------------------------- /chapter12/tests/test-classes11.lox: -------------------------------------------------------------------------------- 1 | fun notAMethod() { 2 | print this; 3 | } 4 | -------------------------------------------------------------------------------- /chapter12/tests/test-classes11.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-classes11.lox.expected -------------------------------------------------------------------------------- /chapter12/tests/test-classes12.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-classes12.lox -------------------------------------------------------------------------------- /chapter12/tests/test-classes12.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-classes12.lox.expected -------------------------------------------------------------------------------- /chapter12/tests/test-classes13.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-classes13.lox -------------------------------------------------------------------------------- /chapter12/tests/test-classes13.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-classes13.lox.expected -------------------------------------------------------------------------------- /chapter12/tests/test-classes2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-classes2.lox -------------------------------------------------------------------------------- /chapter12/tests/test-classes2.lox.expected: -------------------------------------------------------------------------------- 1 | Bagel instance 2 | -------------------------------------------------------------------------------- /chapter12/tests/test-classes3.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-classes3.lox -------------------------------------------------------------------------------- /chapter12/tests/test-classes3.lox.expected: -------------------------------------------------------------------------------- 1 | called function with argument 2 | -------------------------------------------------------------------------------- /chapter12/tests/test-classes4.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-classes4.lox -------------------------------------------------------------------------------- /chapter12/tests/test-classes4.lox.expected: -------------------------------------------------------------------------------- 1 | Jane 2 | -------------------------------------------------------------------------------- /chapter12/tests/test-classes5.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-classes5.lox -------------------------------------------------------------------------------- /chapter12/tests/test-classes5.lox.expected: -------------------------------------------------------------------------------- 1 | Jane 2 | -------------------------------------------------------------------------------- /chapter12/tests/test-classes6.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-classes6.lox -------------------------------------------------------------------------------- /chapter12/tests/test-classes6.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-classes6.lox.expected -------------------------------------------------------------------------------- /chapter12/tests/test-classes7.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-classes7.lox -------------------------------------------------------------------------------- /chapter12/tests/test-classes7.lox.expected: -------------------------------------------------------------------------------- 1 | Egotist instance 2 | -------------------------------------------------------------------------------- /chapter12/tests/test-classes8.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-classes8.lox -------------------------------------------------------------------------------- /chapter12/tests/test-classes8.lox.expected: -------------------------------------------------------------------------------- 1 | The German chocolate cake is delicious! 2 | -------------------------------------------------------------------------------- /chapter12/tests/test-classes9.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-classes9.lox -------------------------------------------------------------------------------- /chapter12/tests/test-classes9.lox.expected: -------------------------------------------------------------------------------- 1 | Thing instance 2 | -------------------------------------------------------------------------------- /chapter12/tests/test-control-flow.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-control-flow.lox -------------------------------------------------------------------------------- /chapter12/tests/test-control-flow.lox.expected: -------------------------------------------------------------------------------- 1 | hi 2 | yes 3 | -------------------------------------------------------------------------------- /chapter12/tests/test-control-flow2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-control-flow2.lox -------------------------------------------------------------------------------- /chapter12/tests/test-control-flow2.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-control-flow2.lox.expected -------------------------------------------------------------------------------- /chapter12/tests/test-functions.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-functions.lox -------------------------------------------------------------------------------- /chapter12/tests/test-functions.lox.expected: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /chapter12/tests/test-functions2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-functions2.lox -------------------------------------------------------------------------------- /chapter12/tests/test-functions2.lox.expected: -------------------------------------------------------------------------------- 1 | Hi, Dear Reader! 2 | -------------------------------------------------------------------------------- /chapter12/tests/test-functions3.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-functions3.lox -------------------------------------------------------------------------------- /chapter12/tests/test-functions3.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-functions3.lox.expected -------------------------------------------------------------------------------- /chapter12/tests/test-functions4.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-functions4.lox -------------------------------------------------------------------------------- /chapter12/tests/test-functions4.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-functions4.lox.expected -------------------------------------------------------------------------------- /chapter12/tests/test-resolving.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-resolving.lox -------------------------------------------------------------------------------- /chapter12/tests/test-resolving.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-resolving.lox.expected -------------------------------------------------------------------------------- /chapter12/tests/test-resolving2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-resolving2.lox -------------------------------------------------------------------------------- /chapter12/tests/test-resolving2.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-resolving2.lox.expected -------------------------------------------------------------------------------- /chapter12/tests/test-resolving3.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-resolving3.lox -------------------------------------------------------------------------------- /chapter12/tests/test-resolving3.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-resolving3.lox.expected -------------------------------------------------------------------------------- /chapter12/tests/test-resolving4.lox: -------------------------------------------------------------------------------- 1 | return "at top level"; 2 | -------------------------------------------------------------------------------- /chapter12/tests/test-resolving4.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-resolving4.lox.expected -------------------------------------------------------------------------------- /chapter12/tests/test-statements.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-statements.lox -------------------------------------------------------------------------------- /chapter12/tests/test-statements.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-statements.lox.expected -------------------------------------------------------------------------------- /chapter12/tests/test-statements2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-statements2.lox -------------------------------------------------------------------------------- /chapter12/tests/test-statements2.lox.expected: -------------------------------------------------------------------------------- 1 | before 2 | after 3 | -------------------------------------------------------------------------------- /chapter12/tests/test-statements3.lox: -------------------------------------------------------------------------------- 1 | var a; 2 | print a; // "nil". 3 | -------------------------------------------------------------------------------- /chapter12/tests/test-statements3.lox.expected: -------------------------------------------------------------------------------- 1 | nil 2 | -------------------------------------------------------------------------------- /chapter12/tests/test-statements4.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-statements4.lox -------------------------------------------------------------------------------- /chapter12/tests/test-statements4.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-statements4.lox.expected -------------------------------------------------------------------------------- /chapter12/tests/test-statements5.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-statements5.lox -------------------------------------------------------------------------------- /chapter12/tests/test-statements5.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-statements5.lox.expected -------------------------------------------------------------------------------- /chapter12/tests/test-statements6.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-statements6.lox -------------------------------------------------------------------------------- /chapter12/tests/test-statements6.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter12/tests/test-statements6.lox.expected -------------------------------------------------------------------------------- /chapter13/AstPrinter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/AstPrinter.h -------------------------------------------------------------------------------- /chapter13/AstPrinterDriver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/AstPrinterDriver.cpp -------------------------------------------------------------------------------- /chapter13/Environment.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/Environment.h -------------------------------------------------------------------------------- /chapter13/Error.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/Error.h -------------------------------------------------------------------------------- /chapter13/Expr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/Expr.h -------------------------------------------------------------------------------- /chapter13/GenerateAst.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/GenerateAst.cpp -------------------------------------------------------------------------------- /chapter13/Interpreter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/Interpreter.h -------------------------------------------------------------------------------- /chapter13/Lox.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/Lox.cpp -------------------------------------------------------------------------------- /chapter13/LoxCallable.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/LoxCallable.h -------------------------------------------------------------------------------- /chapter13/LoxClass.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/LoxClass.cpp -------------------------------------------------------------------------------- /chapter13/LoxClass.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/LoxClass.h -------------------------------------------------------------------------------- /chapter13/LoxFunction.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/LoxFunction.cpp -------------------------------------------------------------------------------- /chapter13/LoxFunction.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/LoxFunction.h -------------------------------------------------------------------------------- /chapter13/LoxInstance.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/LoxInstance.cpp -------------------------------------------------------------------------------- /chapter13/LoxInstance.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/LoxInstance.h -------------------------------------------------------------------------------- /chapter13/LoxReturn.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | struct LoxReturn { 6 | const std::any value; 7 | }; -------------------------------------------------------------------------------- /chapter13/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/Makefile -------------------------------------------------------------------------------- /chapter13/Parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/Parser.h -------------------------------------------------------------------------------- /chapter13/Resolver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/Resolver.h -------------------------------------------------------------------------------- /chapter13/RuntimeError.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/RuntimeError.h -------------------------------------------------------------------------------- /chapter13/Scanner.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/Scanner.h -------------------------------------------------------------------------------- /chapter13/Stmt.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/Stmt.h -------------------------------------------------------------------------------- /chapter13/Token.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/Token.h -------------------------------------------------------------------------------- /chapter13/TokenType.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/TokenType.h -------------------------------------------------------------------------------- /chapter13/tests/test-classes.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-classes.lox -------------------------------------------------------------------------------- /chapter13/tests/test-classes.lox.expected: -------------------------------------------------------------------------------- 1 | DevonshireCream 2 | -------------------------------------------------------------------------------- /chapter13/tests/test-classes10.lox: -------------------------------------------------------------------------------- 1 | print this; 2 | -------------------------------------------------------------------------------- /chapter13/tests/test-classes10.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-classes10.lox.expected -------------------------------------------------------------------------------- /chapter13/tests/test-classes11.lox: -------------------------------------------------------------------------------- 1 | fun notAMethod() { 2 | print this; 3 | } 4 | -------------------------------------------------------------------------------- /chapter13/tests/test-classes11.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-classes11.lox.expected -------------------------------------------------------------------------------- /chapter13/tests/test-classes12.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-classes12.lox -------------------------------------------------------------------------------- /chapter13/tests/test-classes12.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-classes12.lox.expected -------------------------------------------------------------------------------- /chapter13/tests/test-classes13.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-classes13.lox -------------------------------------------------------------------------------- /chapter13/tests/test-classes13.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-classes13.lox.expected -------------------------------------------------------------------------------- /chapter13/tests/test-classes2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-classes2.lox -------------------------------------------------------------------------------- /chapter13/tests/test-classes2.lox.expected: -------------------------------------------------------------------------------- 1 | Bagel instance 2 | -------------------------------------------------------------------------------- /chapter13/tests/test-classes3.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-classes3.lox -------------------------------------------------------------------------------- /chapter13/tests/test-classes3.lox.expected: -------------------------------------------------------------------------------- 1 | called function with argument 2 | -------------------------------------------------------------------------------- /chapter13/tests/test-classes4.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-classes4.lox -------------------------------------------------------------------------------- /chapter13/tests/test-classes4.lox.expected: -------------------------------------------------------------------------------- 1 | Jane 2 | -------------------------------------------------------------------------------- /chapter13/tests/test-classes5.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-classes5.lox -------------------------------------------------------------------------------- /chapter13/tests/test-classes5.lox.expected: -------------------------------------------------------------------------------- 1 | Jane 2 | -------------------------------------------------------------------------------- /chapter13/tests/test-classes6.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-classes6.lox -------------------------------------------------------------------------------- /chapter13/tests/test-classes6.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-classes6.lox.expected -------------------------------------------------------------------------------- /chapter13/tests/test-classes7.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-classes7.lox -------------------------------------------------------------------------------- /chapter13/tests/test-classes7.lox.expected: -------------------------------------------------------------------------------- 1 | Egotist instance 2 | -------------------------------------------------------------------------------- /chapter13/tests/test-classes8.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-classes8.lox -------------------------------------------------------------------------------- /chapter13/tests/test-classes8.lox.expected: -------------------------------------------------------------------------------- 1 | The German chocolate cake is delicious! 2 | -------------------------------------------------------------------------------- /chapter13/tests/test-classes9.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-classes9.lox -------------------------------------------------------------------------------- /chapter13/tests/test-classes9.lox.expected: -------------------------------------------------------------------------------- 1 | Thing instance 2 | -------------------------------------------------------------------------------- /chapter13/tests/test-control-flow.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-control-flow.lox -------------------------------------------------------------------------------- /chapter13/tests/test-control-flow.lox.expected: -------------------------------------------------------------------------------- 1 | hi 2 | yes 3 | -------------------------------------------------------------------------------- /chapter13/tests/test-control-flow2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-control-flow2.lox -------------------------------------------------------------------------------- /chapter13/tests/test-control-flow2.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-control-flow2.lox.expected -------------------------------------------------------------------------------- /chapter13/tests/test-functions.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-functions.lox -------------------------------------------------------------------------------- /chapter13/tests/test-functions.lox.expected: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /chapter13/tests/test-functions2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-functions2.lox -------------------------------------------------------------------------------- /chapter13/tests/test-functions2.lox.expected: -------------------------------------------------------------------------------- 1 | Hi, Dear Reader! 2 | -------------------------------------------------------------------------------- /chapter13/tests/test-functions3.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-functions3.lox -------------------------------------------------------------------------------- /chapter13/tests/test-functions3.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-functions3.lox.expected -------------------------------------------------------------------------------- /chapter13/tests/test-functions4.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-functions4.lox -------------------------------------------------------------------------------- /chapter13/tests/test-functions4.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-functions4.lox.expected -------------------------------------------------------------------------------- /chapter13/tests/test-inheritance.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-inheritance.lox -------------------------------------------------------------------------------- /chapter13/tests/test-inheritance.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-inheritance.lox.expected -------------------------------------------------------------------------------- /chapter13/tests/test-inheritance2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-inheritance2.lox -------------------------------------------------------------------------------- /chapter13/tests/test-inheritance2.lox.expected: -------------------------------------------------------------------------------- 1 | Fry until golden brown. 2 | -------------------------------------------------------------------------------- /chapter13/tests/test-inheritance3.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-inheritance3.lox -------------------------------------------------------------------------------- /chapter13/tests/test-inheritance3.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-inheritance3.lox.expected -------------------------------------------------------------------------------- /chapter13/tests/test-inheritance4.lox: -------------------------------------------------------------------------------- 1 | print super; // Syntax error. 2 | -------------------------------------------------------------------------------- /chapter13/tests/test-inheritance4.lox.expected: -------------------------------------------------------------------------------- 1 | [line 1] Error at ';': Expect '.' after 'super'. 2 | -------------------------------------------------------------------------------- /chapter13/tests/test-inheritance5.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-inheritance5.lox -------------------------------------------------------------------------------- /chapter13/tests/test-inheritance5.lox.expected: -------------------------------------------------------------------------------- 1 | Method A 2 | -------------------------------------------------------------------------------- /chapter13/tests/test-inheritance6.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-inheritance6.lox -------------------------------------------------------------------------------- /chapter13/tests/test-inheritance6.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-inheritance6.lox.expected -------------------------------------------------------------------------------- /chapter13/tests/test-inheritance7.lox: -------------------------------------------------------------------------------- 1 | super.notEvenInAClass(); 2 | -------------------------------------------------------------------------------- /chapter13/tests/test-inheritance7.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-inheritance7.lox.expected -------------------------------------------------------------------------------- /chapter13/tests/test-resolving.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-resolving.lox -------------------------------------------------------------------------------- /chapter13/tests/test-resolving.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-resolving.lox.expected -------------------------------------------------------------------------------- /chapter13/tests/test-resolving2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-resolving2.lox -------------------------------------------------------------------------------- /chapter13/tests/test-resolving2.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-resolving2.lox.expected -------------------------------------------------------------------------------- /chapter13/tests/test-resolving3.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-resolving3.lox -------------------------------------------------------------------------------- /chapter13/tests/test-resolving3.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-resolving3.lox.expected -------------------------------------------------------------------------------- /chapter13/tests/test-resolving4.lox: -------------------------------------------------------------------------------- 1 | return "at top level"; 2 | -------------------------------------------------------------------------------- /chapter13/tests/test-resolving4.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-resolving4.lox.expected -------------------------------------------------------------------------------- /chapter13/tests/test-statements.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-statements.lox -------------------------------------------------------------------------------- /chapter13/tests/test-statements.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-statements.lox.expected -------------------------------------------------------------------------------- /chapter13/tests/test-statements2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-statements2.lox -------------------------------------------------------------------------------- /chapter13/tests/test-statements2.lox.expected: -------------------------------------------------------------------------------- 1 | before 2 | after 3 | -------------------------------------------------------------------------------- /chapter13/tests/test-statements3.lox: -------------------------------------------------------------------------------- 1 | var a; 2 | print a; // "nil". 3 | -------------------------------------------------------------------------------- /chapter13/tests/test-statements3.lox.expected: -------------------------------------------------------------------------------- 1 | nil 2 | -------------------------------------------------------------------------------- /chapter13/tests/test-statements4.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-statements4.lox -------------------------------------------------------------------------------- /chapter13/tests/test-statements4.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-statements4.lox.expected -------------------------------------------------------------------------------- /chapter13/tests/test-statements5.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-statements5.lox -------------------------------------------------------------------------------- /chapter13/tests/test-statements5.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-statements5.lox.expected -------------------------------------------------------------------------------- /chapter13/tests/test-statements6.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-statements6.lox -------------------------------------------------------------------------------- /chapter13/tests/test-statements6.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter13/tests/test-statements6.lox.expected -------------------------------------------------------------------------------- /chapter4/Error.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter4/Error.h -------------------------------------------------------------------------------- /chapter4/Lox.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter4/Lox.cpp -------------------------------------------------------------------------------- /chapter4/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter4/Makefile -------------------------------------------------------------------------------- /chapter4/Scanner.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter4/Scanner.h -------------------------------------------------------------------------------- /chapter4/Token.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter4/Token.h -------------------------------------------------------------------------------- /chapter4/TokenType.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter4/TokenType.h -------------------------------------------------------------------------------- /chapter4/tests/test-lexing.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter4/tests/test-lexing.lox -------------------------------------------------------------------------------- /chapter4/tests/test-lexing.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter4/tests/test-lexing.lox.expected -------------------------------------------------------------------------------- /chapter4/tests/test-lexing2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter4/tests/test-lexing2.lox -------------------------------------------------------------------------------- /chapter4/tests/test-lexing2.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter4/tests/test-lexing2.lox.expected -------------------------------------------------------------------------------- /chapter5/AstPrinter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter5/AstPrinter.h -------------------------------------------------------------------------------- /chapter5/AstPrinterDriver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter5/AstPrinterDriver.cpp -------------------------------------------------------------------------------- /chapter5/Error.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter5/Error.h -------------------------------------------------------------------------------- /chapter5/Expr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter5/Expr.h -------------------------------------------------------------------------------- /chapter5/GenerateAst.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter5/GenerateAst.cpp -------------------------------------------------------------------------------- /chapter5/Lox.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter5/Lox.cpp -------------------------------------------------------------------------------- /chapter5/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter5/Makefile -------------------------------------------------------------------------------- /chapter5/Scanner.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter5/Scanner.h -------------------------------------------------------------------------------- /chapter5/Token.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter5/Token.h -------------------------------------------------------------------------------- /chapter5/TokenType.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter5/TokenType.h -------------------------------------------------------------------------------- /chapter5/tests/test-lexing.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter5/tests/test-lexing.lox -------------------------------------------------------------------------------- /chapter5/tests/test-lexing.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter5/tests/test-lexing.lox.expected -------------------------------------------------------------------------------- /chapter5/tests/test-lexing2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter5/tests/test-lexing2.lox -------------------------------------------------------------------------------- /chapter5/tests/test-lexing2.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter5/tests/test-lexing2.lox.expected -------------------------------------------------------------------------------- /chapter6/AstPrinter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter6/AstPrinter.h -------------------------------------------------------------------------------- /chapter6/AstPrinterDriver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter6/AstPrinterDriver.cpp -------------------------------------------------------------------------------- /chapter6/Error.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter6/Error.h -------------------------------------------------------------------------------- /chapter6/Expr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter6/Expr.h -------------------------------------------------------------------------------- /chapter6/GenerateAst.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter6/GenerateAst.cpp -------------------------------------------------------------------------------- /chapter6/Lox.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter6/Lox.cpp -------------------------------------------------------------------------------- /chapter6/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter6/Makefile -------------------------------------------------------------------------------- /chapter6/Parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter6/Parser.h -------------------------------------------------------------------------------- /chapter6/Scanner.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter6/Scanner.h -------------------------------------------------------------------------------- /chapter6/Token.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter6/Token.h -------------------------------------------------------------------------------- /chapter6/TokenType.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter6/TokenType.h -------------------------------------------------------------------------------- /chapter6/tests/test-parsing.lox: -------------------------------------------------------------------------------- 1 | -123 * (45.67) 2 | -------------------------------------------------------------------------------- /chapter6/tests/test-parsing.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter6/tests/test-parsing.lox.expected -------------------------------------------------------------------------------- /chapter7/AstPrinter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter7/AstPrinter.h -------------------------------------------------------------------------------- /chapter7/AstPrinterDriver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter7/AstPrinterDriver.cpp -------------------------------------------------------------------------------- /chapter7/Error.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter7/Error.h -------------------------------------------------------------------------------- /chapter7/Expr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter7/Expr.h -------------------------------------------------------------------------------- /chapter7/GenerateAst.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter7/GenerateAst.cpp -------------------------------------------------------------------------------- /chapter7/Interpreter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter7/Interpreter.h -------------------------------------------------------------------------------- /chapter7/Lox.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter7/Lox.cpp -------------------------------------------------------------------------------- /chapter7/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter7/Makefile -------------------------------------------------------------------------------- /chapter7/Parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter7/Parser.h -------------------------------------------------------------------------------- /chapter7/RuntimeError.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter7/RuntimeError.h -------------------------------------------------------------------------------- /chapter7/Scanner.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter7/Scanner.h -------------------------------------------------------------------------------- /chapter7/Token.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter7/Token.h -------------------------------------------------------------------------------- /chapter7/TokenType.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter7/TokenType.h -------------------------------------------------------------------------------- /chapter7/tests/test-expressions.lox: -------------------------------------------------------------------------------- 1 | 2 * (3 / -"muffin") 2 | -------------------------------------------------------------------------------- /chapter7/tests/test-expressions.lox.expected: -------------------------------------------------------------------------------- 1 | Operand must be a number. 2 | [line 1] 3 | -------------------------------------------------------------------------------- /chapter7/tests/test-expressions2.lox: -------------------------------------------------------------------------------- 1 | -123 * (45.67) 2 | -------------------------------------------------------------------------------- /chapter7/tests/test-expressions2.lox.expected: -------------------------------------------------------------------------------- 1 | -5617.410000 2 | -------------------------------------------------------------------------------- /chapter8/AstPrinter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/AstPrinter.h -------------------------------------------------------------------------------- /chapter8/AstPrinterDriver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/AstPrinterDriver.cpp -------------------------------------------------------------------------------- /chapter8/Environment.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/Environment.h -------------------------------------------------------------------------------- /chapter8/Error.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/Error.h -------------------------------------------------------------------------------- /chapter8/Expr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/Expr.h -------------------------------------------------------------------------------- /chapter8/GenerateAst.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/GenerateAst.cpp -------------------------------------------------------------------------------- /chapter8/Interpreter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/Interpreter.h -------------------------------------------------------------------------------- /chapter8/Lox.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/Lox.cpp -------------------------------------------------------------------------------- /chapter8/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/Makefile -------------------------------------------------------------------------------- /chapter8/Parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/Parser.h -------------------------------------------------------------------------------- /chapter8/RuntimeError.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/RuntimeError.h -------------------------------------------------------------------------------- /chapter8/Scanner.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/Scanner.h -------------------------------------------------------------------------------- /chapter8/Stmt.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/Stmt.h -------------------------------------------------------------------------------- /chapter8/Token.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/Token.h -------------------------------------------------------------------------------- /chapter8/TokenType.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/TokenType.h -------------------------------------------------------------------------------- /chapter8/challenge2/AstPrinter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/AstPrinter.h -------------------------------------------------------------------------------- /chapter8/challenge2/AstPrinterDriver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/AstPrinterDriver.cpp -------------------------------------------------------------------------------- /chapter8/challenge2/Environment.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/Environment.h -------------------------------------------------------------------------------- /chapter8/challenge2/Error.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/Error.h -------------------------------------------------------------------------------- /chapter8/challenge2/Expr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/Expr.h -------------------------------------------------------------------------------- /chapter8/challenge2/GenerateAst.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/GenerateAst.cpp -------------------------------------------------------------------------------- /chapter8/challenge2/Interpreter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/Interpreter.h -------------------------------------------------------------------------------- /chapter8/challenge2/Lox.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/Lox.cpp -------------------------------------------------------------------------------- /chapter8/challenge2/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/Makefile -------------------------------------------------------------------------------- /chapter8/challenge2/Parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/Parser.h -------------------------------------------------------------------------------- /chapter8/challenge2/RuntimeError.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/RuntimeError.h -------------------------------------------------------------------------------- /chapter8/challenge2/Scanner.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/Scanner.h -------------------------------------------------------------------------------- /chapter8/challenge2/Stmt.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/Stmt.h -------------------------------------------------------------------------------- /chapter8/challenge2/Token.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/Token.h -------------------------------------------------------------------------------- /chapter8/challenge2/TokenType.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/TokenType.h -------------------------------------------------------------------------------- /chapter8/challenge2/tests/test-challenge2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/tests/test-challenge2.lox -------------------------------------------------------------------------------- /chapter8/challenge2/tests/test-challenge2.lox.expected: -------------------------------------------------------------------------------- 1 | assigned 2 | Variable not initialized. 3 | [line 8] 4 | -------------------------------------------------------------------------------- /chapter8/challenge2/tests/test-statements.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/tests/test-statements.lox -------------------------------------------------------------------------------- /chapter8/challenge2/tests/test-statements.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/tests/test-statements.lox.expected -------------------------------------------------------------------------------- /chapter8/challenge2/tests/test-statements2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/tests/test-statements2.lox -------------------------------------------------------------------------------- /chapter8/challenge2/tests/test-statements2.lox.expected: -------------------------------------------------------------------------------- 1 | before 2 | after 3 | -------------------------------------------------------------------------------- /chapter8/challenge2/tests/test-statements3.lox: -------------------------------------------------------------------------------- 1 | var a; 2 | print a; // Error! 3 | -------------------------------------------------------------------------------- /chapter8/challenge2/tests/test-statements3.lox.expected: -------------------------------------------------------------------------------- 1 | Variable not initialized. 2 | [line 2] 3 | -------------------------------------------------------------------------------- /chapter8/challenge2/tests/test-statements4.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/tests/test-statements4.lox -------------------------------------------------------------------------------- /chapter8/challenge2/tests/test-statements4.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/tests/test-statements4.lox.expected -------------------------------------------------------------------------------- /chapter8/challenge2/tests/test-statements5.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/tests/test-statements5.lox -------------------------------------------------------------------------------- /chapter8/challenge2/tests/test-statements5.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/tests/test-statements5.lox.expected -------------------------------------------------------------------------------- /chapter8/challenge2/tests/test-statements6.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/tests/test-statements6.lox -------------------------------------------------------------------------------- /chapter8/challenge2/tests/test-statements6.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/challenge2/tests/test-statements6.lox.expected -------------------------------------------------------------------------------- /chapter8/tests/test-statements.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/tests/test-statements.lox -------------------------------------------------------------------------------- /chapter8/tests/test-statements.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/tests/test-statements.lox.expected -------------------------------------------------------------------------------- /chapter8/tests/test-statements2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/tests/test-statements2.lox -------------------------------------------------------------------------------- /chapter8/tests/test-statements2.lox.expected: -------------------------------------------------------------------------------- 1 | before 2 | after 3 | -------------------------------------------------------------------------------- /chapter8/tests/test-statements3.lox: -------------------------------------------------------------------------------- 1 | var a; 2 | print a; // "nil". 3 | -------------------------------------------------------------------------------- /chapter8/tests/test-statements3.lox.expected: -------------------------------------------------------------------------------- 1 | nil 2 | -------------------------------------------------------------------------------- /chapter8/tests/test-statements4.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/tests/test-statements4.lox -------------------------------------------------------------------------------- /chapter8/tests/test-statements4.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/tests/test-statements4.lox.expected -------------------------------------------------------------------------------- /chapter8/tests/test-statements5.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/tests/test-statements5.lox -------------------------------------------------------------------------------- /chapter8/tests/test-statements5.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/tests/test-statements5.lox.expected -------------------------------------------------------------------------------- /chapter8/tests/test-statements6.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/tests/test-statements6.lox -------------------------------------------------------------------------------- /chapter8/tests/test-statements6.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter8/tests/test-statements6.lox.expected -------------------------------------------------------------------------------- /chapter9/AstPrinter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/AstPrinter.h -------------------------------------------------------------------------------- /chapter9/AstPrinterDriver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/AstPrinterDriver.cpp -------------------------------------------------------------------------------- /chapter9/Environment.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/Environment.h -------------------------------------------------------------------------------- /chapter9/Error.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/Error.h -------------------------------------------------------------------------------- /chapter9/Expr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/Expr.h -------------------------------------------------------------------------------- /chapter9/GenerateAst.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/GenerateAst.cpp -------------------------------------------------------------------------------- /chapter9/Interpreter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/Interpreter.h -------------------------------------------------------------------------------- /chapter9/Lox.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/Lox.cpp -------------------------------------------------------------------------------- /chapter9/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/Makefile -------------------------------------------------------------------------------- /chapter9/Parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/Parser.h -------------------------------------------------------------------------------- /chapter9/RuntimeError.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/RuntimeError.h -------------------------------------------------------------------------------- /chapter9/Scanner.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/Scanner.h -------------------------------------------------------------------------------- /chapter9/Stmt.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/Stmt.h -------------------------------------------------------------------------------- /chapter9/Token.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/Token.h -------------------------------------------------------------------------------- /chapter9/TokenType.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/TokenType.h -------------------------------------------------------------------------------- /chapter9/tests/test-control-flow.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/tests/test-control-flow.lox -------------------------------------------------------------------------------- /chapter9/tests/test-control-flow.lox.expected: -------------------------------------------------------------------------------- 1 | hi 2 | yes 3 | -------------------------------------------------------------------------------- /chapter9/tests/test-control-flow2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/tests/test-control-flow2.lox -------------------------------------------------------------------------------- /chapter9/tests/test-control-flow2.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/tests/test-control-flow2.lox.expected -------------------------------------------------------------------------------- /chapter9/tests/test-statements.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/tests/test-statements.lox -------------------------------------------------------------------------------- /chapter9/tests/test-statements.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/tests/test-statements.lox.expected -------------------------------------------------------------------------------- /chapter9/tests/test-statements2.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/tests/test-statements2.lox -------------------------------------------------------------------------------- /chapter9/tests/test-statements2.lox.expected: -------------------------------------------------------------------------------- 1 | before 2 | after 3 | -------------------------------------------------------------------------------- /chapter9/tests/test-statements3.lox: -------------------------------------------------------------------------------- 1 | var a; 2 | print a; // "nil". 3 | -------------------------------------------------------------------------------- /chapter9/tests/test-statements3.lox.expected: -------------------------------------------------------------------------------- 1 | nil 2 | -------------------------------------------------------------------------------- /chapter9/tests/test-statements4.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/tests/test-statements4.lox -------------------------------------------------------------------------------- /chapter9/tests/test-statements4.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/tests/test-statements4.lox.expected -------------------------------------------------------------------------------- /chapter9/tests/test-statements5.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/tests/test-statements5.lox -------------------------------------------------------------------------------- /chapter9/tests/test-statements5.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/tests/test-statements5.lox.expected -------------------------------------------------------------------------------- /chapter9/tests/test-statements6.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/tests/test-statements6.lox -------------------------------------------------------------------------------- /chapter9/tests/test-statements6.lox.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/the-lambda-way/CppLox/HEAD/chapter9/tests/test-statements6.lox.expected --------------------------------------------------------------------------------