Browse Source

更新数据结构

myuan 2 years ago
parent
commit
8e11cad988

+ 4 - 3
2. 词法分析科学计算器/readme.md

@@ -113,14 +113,15 @@ a + b -> +(a, b)
 
 ```C
 {
-    char     函数名[16],  // 定长16, 再长不支持了
+    char     函数名[40],  // 定长40, 再长不支持了
     int32_t  参数量,      // 
     int32_t  参数数组容量, // 参数数组指针后有多大容量, 按照每次*2扩充
     uint64_t *参数数组指针, // 按长整数, 未来迁移到x64时兼容
+    uint64_t *父节点指针, // 该节点的父节点
 }
-// 此结构单个长度为 16+8+8 = 32 字节
+// 此结构单个长度为 40+4+4+8+8 = 64 字节
 ```
-内存结构如图: ![内存结构图](./static/memory-struct.svg)
+内存结构如图: ![内存结构图](./static/memory-struct.png)
 
 
 终于可以开始写递归下降器了. 

BIN
2. 词法分析科学计算器/static/memory-struct.png


File diff suppressed because it is too large
+ 0 - 0
2. 词法分析科学计算器/static/memory-struct.svg


Some files were not shown because too many files changed in this diff