Giter Club home page Giter Club logo

thengascript's Introduction

Thengascript

Start programming for the web in Malayalam

Thengascript Logo

Ever wondered what it would be like to program for the web in Malayalam? This wonder is what drove the creation of Thengascript.

With it, you can start programming for the web today in Malayalam!

Check out the demos and documentation: http://makers-of-kerala.com/thengascript/

Underneath the hood, it translates your code to its ECMAscript equivalent which is then interpreted and ran by the browser.

Docs

If you want to try the live examples above, you can input Malayalam using Google Input Tools Extension.

To write code on your computer download Thengascript and include it in your code as:

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

Now you can start Thengascripting in two ways. Include your inline code as:

<script type="text/thengascript">

/* Write your Thengascript code here */

</script>

or you can also include the file using the src attribute:

<script type="text/thengascript" src="your-thengascript-file.js"></script>

Sample files can be found inside the demos/ folder.

(c) 2018-2024 — Makers of Kerala MIT License - എന്ന് വെച്ചാ basically പൊളിച്ചടക്കാമെന്ന്

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

Alias Browser Methods

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

image

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.

Reference Error in malayalam

I tried this in javascript

INPUT:

let k = "console.log('english')";
eval(k);

OUTPUT:

english

I tried this in Thengascript
INPUT:

ആവട്ടെ  = "കാണിക്കുക('മലയാളം')";
മൂല്യനിർണ്ണയം();

OUTPUT:

Error:  ReferenceError: കാണിക്കുക is not defined 

Tested in nodejs

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.

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.

script transpiles string literals too.

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

prints if.

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

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>

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.