makersofkerala / thengascript

Start programming for the web in Malayalam!
https://makers-of-kerala.com/thengascript/
MIT License
66 stars 13 forks source link

not all keywords are working #4

Closed AlbinShaji closed 6 years ago

AlbinShaji commented 6 years ago

image

as you can see in the script even the examples you guys gave are not working in a proper way.

sainalshah commented 6 years ago

u have to include type="text/thengascript" with script tag. example,

<script src="node_modules/thengascript/thengascript.js"></script>

<script type="text/thengascript">

var ക = 2; var ച = 4;
document.write(ക + ച);

function വിളി(പേര്) {
  document.write( " കമോണ്ട്രാ " + പേര് + "!");
}; 

വിളി("മഹേഷേ");

</script>
prathyvsh commented 6 years ago

The script has been pushed online, can you please verify if it's working now?

Update: Plan is to implement parsing using Acorn now: See https://github.com/bunchaeffinamateurs/thengascript/issues/8