Update README.md

This commit is contained in:
Valk Richard Li 2019-08-21 00:20:31 +08:00 committed by GitHub
parent 5b7aa5e26f
commit 8513fab1a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 49 additions and 7 deletions

View File

@ -10,12 +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!
# Nasal--
For some reasons i will first try to make a interpreter for nasal--(???)
Maybe.Because i haven't take the lesson of 'principle of compiler'(what a shame...)
# Now complete all types
var: int float double std::string char long long int
@ -256,7 +250,7 @@ function:hello
# Now the parser can...
recognize these things...
recognize all these things...
print("a",e);
@ -312,6 +306,54 @@ e={e:1,e:2,e:3};
e=e[e.e];
e=e.e();
var e={
e:1,
e:func(){},
e:func(e,e){},
e:func(){
e;
e;
},
e:func(e,e){
e;
e;
}
};
var e=func(){}
var e=func(e,e){}
var e=func(){e;e;}
var e=func(e,e){e;e;}
var e=func(e,e,e,e,e){
e=1;
e=e[0];
e=e(e,e,e);
return e;
}
# The structure of basical elements is...
class var;