From fcc09e2e165e444e83c12b75866afa7e0e614259 Mon Sep 17 00:00:00 2001 From: Valk Richard Li <48872266+ValKmjolnir@users.noreply.github.com> Date: Wed, 22 Jan 2020 19:07:33 +0800 Subject: [PATCH] Update README.md --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4835b4a..781b978 100644 --- a/README.md +++ b/README.md @@ -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