Coder Social home page Coder Social logo

makersofkerala / thengascript Goto Github PK

View Code? Open in Web Editor NEW
63.0 7.0 13.0 57 KB

Start programming for the web in Malayalam!

Home Page: https://makers-of-kerala.com/thengascript/

License: MIT License

JavaScript 100.00%
malayalam thengascript javascript es7

thengascript's People

Contributors

its-joseph-230606 avatar pranavpramod avatar prathyvsh avatar rahulmahesh62 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

thengascript's Issues

easy way to integrate any language

if the mapping between native language and english is in different file, will be very easy to include other languages.
For example if there is mapping files, malayalam-map.js, tamil-map.js, telugu-map.js, and any language mapping we can use this lib easily. Just need a data attribute in script tag
like . - <script src="https://rawgit.com/bunchaeffinamateurs/thengascript/dev/thengascript.js" data-lang="otherLanguage"></script>

Alias Browser Methods

Bring in aliases for methods of common browser objects (window, document, Array etc. and their methods).

image

not all keywords are working

image

<script> var ക = 2; var ച = 4; document.write(ക + ച); function വിളി(പേര്) { document.write( " കമോണ്ട്രാ " + പേര് + "!"); }; വിളി("മഹേഷേ"); </script>

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

script transpiles string literals too.

console.log("ആണെങ്കിൽ")

prints if.

One solution could be to translate string to some intermediate representation before translating keywords.

Bring in better parsing

I have been trying out Thengascript to build a complete application recently, and the current idea of Malayalam -> English mapping via regex as expected doesn't scale up to the job. Idea is to bring in better parsing to identify tokens and replace them.

cannot work with CommonJS modules

Right now, there is no way to work with modules, as the required modules are not translated. I think the solution is to translate the thengascript and write to a new destination, with mirrored directory structure of original code, so module imports with relative path can work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.