Update README.md
This commit is contained in:
parent
b8c8d89cfd
commit
e4167f0700
20
README.md
20
README.md
|
@ -36,7 +36,7 @@ And the flow chart of lexer is here:
|
||||||
|
|
||||||
# Parser
|
# Parser
|
||||||
|
|
||||||
In __version 2.0__
|
## In __version 2.0__
|
||||||
```javascript
|
```javascript
|
||||||
(var a,b,c)=(1,2,3);
|
(var a,b,c)=(1,2,3);
|
||||||
var (r,g,b)=color;
|
var (r,g,b)=color;
|
||||||
|
@ -49,16 +49,28 @@ These two types of statements are both definition_expr.
|
||||||
```
|
```
|
||||||
This type of statement is multi_assignment.
|
This type of statement is multi_assignment.
|
||||||
|
|
||||||
__And to check if an expr in '(' ')' is multi_scalar or multi_id__
|
And to check if an expr in '(' ')' is multi_scalar or multi_id.
|
||||||
|
|
||||||
__i used bool nasal_parse::check_multi_scalar() and bool nasal_parse::check_multi_assignment()__
|
i used bool nasal_parse::check_multi_scalar() and bool nasal_parse::check_multi_assignment().
|
||||||
|
|
||||||
|
## In __version 3.0__
|
||||||
|
|
||||||
|
I refactored parser and make it easier to maintain.
|
||||||
|
|
||||||
|
the EBNF is also refactored.
|
||||||
|
|
||||||
# Abstract Syntax Tree
|
# Abstract Syntax Tree
|
||||||
|
|
||||||
In __version 1.2__ the ast has been completed.
|
In __version 1.2__ the ast has been completed.
|
||||||
|
|
||||||
|
In __version 3.0__ the ast is refactored and is now easier to read and maintain.
|
||||||
|
|
||||||
# Version 2.0
|
# Version 2.0
|
||||||
|
|
||||||
a completed ast-interpreter with unfinished lib functions.
|
a completed ast-interpreter with unfinished lib functions.
|
||||||
|
|
||||||
a new byte code interpreter is in progress(version 3.0).
|
# Version 3.0
|
||||||
|
|
||||||
|
ast-interpreter uses new techniques so it can run codes more efficiently.
|
||||||
|
|
||||||
|
byte-code-interpreter is in progress(i need a lot of time to learn that :( ).
|
||||||
|
|
Loading…
Reference in New Issue