GithubHelp home page GithubHelp logo

ats-lua's People

Contributors

bakpakin avatar githwxi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ats-lua's Issues

To-do list

Hi Calvin:

I have just set up the project. The transpiler code is directly based on atscc2js.

The next step is for you to manually write some code that you think should be
the kind of output from transpiling fact_dats.c (in TEST). For instance, how would
you implement the following function (generated by atscc2js) in Lua:

function
fact(arg0)
{
//
// knd = 0
  var tmpret0
  var tmp1
  var tmp2
  var tmp3
  var tmplab, tmplab_js
//
  // __patsflab_fact
  tmp1 = ats2luapre_gt_int0_int0(arg0, 0);
  if(tmp1) {
    tmp3 = ats2luapre_sub_int0_int0(arg0, 1);
    tmp2 = fact(tmp3);
    tmpret0 = ats2luapre_mul_int0_int0(arg0, tmp2);
  } else {
    tmpret0 = 1;
  } // end-of-if
  return tmpret0;
} // end-of-function

Please put your manually constructed code in the TEST/SAMPLE directory.

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.