Update README.md

This commit is contained in:
Valk Richard Li 2020-01-22 19:07:33 +08:00 committed by GitHub
parent f05097666d
commit fcc09e2e16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 1 deletions

View File

@ -62,7 +62,24 @@ etc. cannot be recognized.
And each statement must have a ';' after it or you will be informed with __'error: expect a ';''__ .
In __version 2.0__ these problems will be solved.
In __version 2.0__ these problems have been solved.
In __version 2.0__
```javascript
(var a,b,c)=(1,2,3);
var (r,g,b)=color;
```
These two types of statements are both definition_expr.
```javascript
(a,b,c)=(1,2,3);
(a,b)=(b,a);
```
This type of statement is multi_assignment.
__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()__
# Calculator