Skip to content

Latest commit

 

History

History
74 lines (48 loc) · 1.97 KB

README.md

File metadata and controls

74 lines (48 loc) · 1.97 KB

FarsiScript

FarsiScript is a Persian dialect of JavaScript. The goal is to make programming more accessible to beginners from South-West Asia (No! I was kidding :) it's just for fun!). FarsiScript uses informal Persian analogies to programming concepts, making it easy to get started without remembering keywords.

Thanks a lot to UrduScript

It's highly suggested not to use this programming language for beginners.

FarsiScript transpiles to JavaScript. All JavaScript frameworks (like jQuery, UnderScore, React, etc) can be seemlessly used.

Hello World

// declare variable
motaghayer naam = "Asad"

// output to console
chaap("Salam, " + naam)

Try it online here

Installation (Web Editor)

If you want to run the web editor offline. Follow these steps:

Prerequisites:

In order to run FarsiScript on your computer, you need to install Node.js first.

Installing (Windows):
  • Download zip or clone the repository

  • Inside your project directory, run:

    npm install
    npm install -g nws
    npm run windows
  • Open your browser and type

http://localhost:3030
Installing (MacOs, Ubuntu, Unix, etc):
  • Download zip or clone the repository
  • Inside your project directory, run:
npm install
npm start
  • Open your browser and type
http://localhost:3030

Contributing

This is a open project and I am open to all ideas and improvements. See this page.

Acknowledgments

  • Project is only possible due to Sweet.js.
  • The online editor uses the wonderful CodeMirror.
  • Special thanks to Ali Alavi, Osman Mian, Eric Bhatti for their help.

Appreciation

Again, Thanks a lot to UrduScript