Coder Social home page Coder Social logo

timescript's People

Contributors

apccurtiss avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

timescript's Issues

Can't time-travel into the future

Steps to reproduce

test.js

var x = 1;
console.log(x@-1);
x = 2;

Running TIMESCRIPT:

$ node timescript.js test.ts
UnaryExpression {
  type: 'UnaryExpression',
  operator: '-',
  argument: Literal { type: 'Literal', value: 1, raw: '1' },
  prefix: true }
/home/will/Desktop/test/TIMESCRIPT/timescript.js:66
    throw Error(
    ^

Error: UnaryExpression is an unimplemented langugage feature. Don't be surprised, most of the language is unimplemented.
    at compile (/home/will/Desktop/test/TIMESCRIPT/timescript.js:66:11)
    at compile (/home/will/Desktop/test/TIMESCRIPT/timescript.js:37:65)
    at Array.map (<anonymous>)
    at compile (/home/will/Desktop/test/TIMESCRIPT/timescript.js:45:58)
    at compile (/home/will/Desktop/test/TIMESCRIPT/timescript.js:42:16)
    at Array.map (<anonymous>)
    at compile (/home/will/Desktop/test/TIMESCRIPT/timescript.js:10:26)
    at main (/home/will/Desktop/test/TIMESCRIPT/timescript.js:78:27)
    at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)

tardis

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.