commit a9d5d953637c4635a688e83f5be48a37769d9515
parent 8c7d89b7392e899d22b16cb4de7a00394c66fe62
Author: Mohammad-Reza Nabipoor <m.nabipoor@yahoo.com>
Date: Tue, 29 Sep 2020 03:28:44 +0330
README.md: Update Chap. 2
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
@@ -188,8 +188,8 @@ Token{
### `ASTNode` class
Each node of AST (Abstract Syntax Tree) can be saved in `ASTNode` class. It's a
-polymorphic type that accepts an instance of type `T` that satisfies the
-following requirements:
+concepts-based polymorphic type that accepts an instance of type `T` that
+satisfies the following requirements:
- `T` is a [Regular type][regular]
- The following functions are defined:
@@ -211,8 +211,8 @@ enum class NodeType
};
```
-For more information about implementation details of this polymorphic type and
-the benefits of this design, you can watch
+For more information about implementation details of concepts-based polymorphic
+types and their benefits, you can watch
[this great talk by Sean Parent](https://youtu.be/QGcVXgEVMJg).
If you're impatient you can go directly to time
[49:13](https://youtu.be/QGcVXgEVMJg?t=49m13s).
@@ -265,7 +265,7 @@ Because there's no invariant to establish.
### Example of usage
-```
+```c++
#include "kaleidoscope_ast.hpp"
using namespace kal;