REmove unneeded type and update the README.md file
This commit is contained in:
22
README.md
22
README.md
@@ -2,3 +2,25 @@
|
|||||||
|
|
||||||
A C++ export engine for the Yab interpreted language.
|
A C++ export engine for the Yab interpreted language.
|
||||||
|
|
||||||
|
## Download Source Instructions
|
||||||
|
|
||||||
|
`git clone --recurse-submodules --depth 1 https://github.com/SamuraiCrow/Yab2Cpp.git`
|
||||||
|
|
||||||
|
If you forget to recurse-submodules or if the submodule code gets stale, type the following after it is done downloading:
|
||||||
|
`git submodule update --init --recursive`
|
||||||
|
|
||||||
|
## Compiling the Test Codes
|
||||||
|
|
||||||
|
Type the following in the Yab2Cpp directory and substitute the actual number of threads your CPU can run after the -j:
|
||||||
|
`make -j8 debug` or just `make -j8` for a release build.
|
||||||
|
|
||||||
|
Once it's done building, you can run the test code by typing:
|
||||||
|
`./tester` or `./tester -G` if you want it to generate all the build logs too.
|
||||||
|
|
||||||
|
To compile the executable, type `cd runtime` then `make -j8` and finally `./main` to try it out.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Note:
|
||||||
|
|
||||||
|
The current version only supports test code for the code generator. Progress is ongoing.
|
||||||
|
|||||||
@@ -112,7 +112,6 @@ enum CODES:unsigned int
|
|||||||
T_STRINGFUNC,
|
T_STRINGFUNC,
|
||||||
T_FLOATFUNC,
|
T_FLOATFUNC,
|
||||||
T_INTFUNC,
|
T_INTFUNC,
|
||||||
T_VOIDFUNC,
|
|
||||||
T_UNKNOWNFUNC
|
T_UNKNOWNFUNC
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -192,8 +192,7 @@ void fn::close()
|
|||||||
{
|
{
|
||||||
/* check if no returns and no return type */
|
/* check if no returns and no return type */
|
||||||
enum CODES t=this->getType();
|
enum CODES t=this->getType();
|
||||||
if (this->kind==T_UNKNOWN&&
|
if (this->kind==T_UNKNOWN && t==T_UNKNOWNFUNC)
|
||||||
(t==T_UNKNOWNFUNC||t==T_VOIDFUNC))
|
|
||||||
{
|
{
|
||||||
/* generate a typeless return */
|
/* generate a typeless return */
|
||||||
this->generateReturn();
|
this->generateReturn();
|
||||||
|
|||||||
Reference in New Issue
Block a user