candasm / GoyGoyScript

GoyGoyScript: lets you write JavaScript in Turkish; Finally there is a way for Turks to code in their native language!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Turkish Flag
GoyGoyScript lets you write JavaScript in Turkish; Finally there is a way for Turks to code in their native language! It is named after goygoy, the sacred Turkish schmooze.

See it in action here.

Including GoyGoyScript files in your HTML

GoyGoyScript supports the text/goygoyscript MIME type. Any script tag with that type will be compiled and run automatically:

<script type="text/goygoyscript">
  eğer (x < 5) {
    konsol.log("Merhaba!");
  } değilse {
    konsol.log("Merhaba!");
  }
</script>

You can also specify a src for your script tags:

<script type="text/goygoyscript" src="goygoyconf.goygoy"></script>

Optional

Convert from GoyGoyScript to JavaScript:
GoyGoyScript.turkishToEnglish(code); // returns a string representing the translated code
Convert from JavaScript to GoyGoyScript:
GoyGoyScript.englishToTurkish(code); // returns a string representing the translated code

Missing/incorrect translations?

You can see the translations over here. Feel free to submit a pull request!

###TO-DOs

  • Syntax highlighting for unicode chars
  • npm support for command line compiling
  • Add more translations!!! (ex: Array.pop, push, etc...)

About

GoyGoyScript: lets you write JavaScript in Turkish; Finally there is a way for Turks to code in their native language!

License:MIT License


Languages

Language:JavaScript 98.7%Language:CSS 1.3%