Update README.md

This commit is contained in:
Valk Richard Li 2019-10-22 13:06:13 +08:00 committed by GitHub
parent 1e70da28f7
commit e3199c5f76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 9 deletions

View File

@ -10,13 +10,6 @@ So this is an interpreter for Nasal written by C++.
The interpreter is still in development.Anyone who interested in this could also join us! The interpreter is still in development.Anyone who interested in this could also join us!
# Now complete add and sub in abstract syntax tree
And add a command 'ast' to see the AST
and command 'run' can give you the result
# Now complete Lexical Analysis! # Now complete Lexical Analysis!
What do it's outputs look like? What do it's outputs look like?
@ -55,7 +48,19 @@ But something occurred,so i finally didn't make it.However you can still see thi
The parser can recognize some basic elements in resource program. The parser can recognize some basic elements in resource program.
And in future i will make it to support more flexible grammar. In version 1.1 you can use the fully-functional parser.
But there are still some differences such as:
(var a,b,c)=(1,2,3);
var (r,g,b)=color;
(a,b)=(b,a);
etc. cannot be recognized.
And each statement must have a ';' after it or you will be informed with 'error: expect a ';''.
# Calculator # Calculator
@ -63,4 +68,4 @@ You can try a calculator in version 0.17~0.19 !
# Abstract syntax tree # Abstract syntax tree
In version 1.0 the ast will be completed. In version 1.2 the ast will be completed.