DreamScript
DreamScript is a Programming Language That Makes It Easy For You To Code Or Develop Your Web Application
[
DS Installation
- Install NodeJs
- Open your Console
- Install globally using NPM
npm install -g dreamscript
npm install --save dreamscript
npx dreamscript
- or you can install the compiler :
Here
Put the dreamscript.exe in C:\Users\ASUS\AppData\Roaming\npm
Get Started
~$ dreamscript run <your file or directory file>
atau
~$ dreamscript cmp <your file or directory file>
atau
for any command, you can see at:
~$ dreamscript -h
Example
.
├── code
└── lib
├── index.ds
└── code.ds
$ dreamscript dir code lib
this command will compile all files in the lib
folder and write the compilation results to the code
folder with the same name and the extension js
.
├── code
│ ├── index.js
│ └── code.js
└── lib
├── index.ds
└── code.ds
Example Compile
const ds = require("dreamscript");
var code = `
func ds(){
write("hello, world");
}
ds();
`;
ds.compile(code).then(compiled => {
console.log(compiled);
});
Example Run
const ds = require("dreamscript");
var code = `
func ds(){
write("hello, world");
}
ds();
`;
;(async () => {
await ds.run(code)
});
DOCS
Full Docs, you can see at :
https://zsofttt.github.io/DreamScript
CHANGE LOG
Version 0.0.2 :
- Fix Many Bugs
- Add yesno() function
- Add schemaMongoDB() function
- Add modelMongoDB() function
- Delete ds.ConnectMongoDB() function at program/main.js , but Add the connectMongoDb() function on DreamScript Code
- Delete ds.CreateApp() function at program/main.js , but Add the createApp function on DreamScript Code
- Delete ds.CreateServer() function at program/main.js , but Add the createServer function on DreamScript Code
- Delete ds.Get() function at program/main.js , but Add the GET() function on DreamScript Code
- Delete ds.Post() function at program/main.js , but Add the POST() function on DreamScript Code
CREDITS
Powered By
- Axios
- ExpressJS
- MongoDB (Mongoose)