Giter Site home page Giter Site logo

vurv78 / expressionscript Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 96 KB

Expression2 rewritten in Haxe

Home Page: https://vurv78.github.io/ExpressionScript

License: Apache License 2.0

Batchfile 0.05% Haxe 96.39% HTML 1.83% CSS 1.74%
expression2 wiremod programming-language garrysmod garrys haxe compiler transpiler hacktoberfest

expressionscript's Introduction

expressionscript's People

Contributors

derpius avatar keganpowers34 avatar vurv78 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

keganpowers34

expressionscript's Issues

Null Safe

We should be able to enable --macro nullSafety("base", Strict)
Without any errors

Fix indexing operator

For some reason even though we accept a comma token it won't move past there. It will instead stay at the comma and not be able to accept a type token.

Repro

E[1,number]

No Dynamic

We don't want dynamic typing anywhere (It slows down statically typed targets (C++, Hashlink) by a LOT)

Here's where it's used

  • [Compiler] Temporary value for E2Context is of type Dynamic
  • [Lua Transpiler] call instruction
  • [Lua Transpiler] callInstruction
  • [Parser] Arguments passed to callInstruction are Dynamic, as we use reflection

Add #include statement

Add another statement in the parser that accepts #include "path". (Might also need to add a new keyword to tokenizer)
See https://github.com/wiremod/wire/wiki/Expression-2#include-directive for more info on what include is.

( It is basically just #include from languages like C++, except it is not through the preprocessor but it is turned into a function that runs in another scope.. yeah it's weird.. )

If you really want to go above and beyond you can also implement it in the lua transpiler side as just require(string).

Use hashlink

Hashlink is miles ahead of c++ for Haxe. Looks like it takes 1/10th of the time to compile, all into one neat file.

Fix unit tests

Giving cryptic errors that I don't want to bother looking into right now.

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.