Skip to content

Latest commit

 

History

History
executable file
·
49 lines (38 loc) · 1.69 KB

README.md

File metadata and controls

executable file
·
49 lines (38 loc) · 1.69 KB

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...)