Update README.md
This commit is contained in:
parent
5b7aa5e26f
commit
8513fab1a2
56
README.md
56
README.md
|
@ -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!
|
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
|
# Now complete all types
|
||||||
|
|
||||||
var: int float double std::string char long long int
|
var: int float double std::string char long long int
|
||||||
|
@ -256,7 +250,7 @@ function:hello
|
||||||
|
|
||||||
# Now the parser can...
|
# Now the parser can...
|
||||||
|
|
||||||
recognize these things...
|
recognize all these things...
|
||||||
|
|
||||||
print("a",e);
|
print("a",e);
|
||||||
|
|
||||||
|
@ -312,6 +306,54 @@ e={e:1,e:2,e:3};
|
||||||
|
|
||||||
e=e[e.e];
|
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...
|
# The structure of basical elements is...
|
||||||
|
|
||||||
class var;
|
class var;
|
||||||
|
|
Loading…
Reference in New Issue