Giter Club home page Giter Club logo

sl2's Introduction

sl2

A simple functional web client language

sl2's People

Contributors

benkeks avatar choeger avatar fpsiorz avatar linges avatar monochromata avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sl2's Issues

Extend name analysis to SL-values referenced in quoted JavaScript code.

SL allows the user to reference SL values in quoted JavaScript code by prefixing the value's name with a '$' character. At the moment, the user can refer to any SL name and the compiler does not take scoping or even existence of the value into account.

It is desirable, that the compiler checks if all SL names referenced in a JavaScript quote exist and are visible in the current scope.

Add syntax and well-formedness checks for the quoted JavaScript code.

At the moment, quoted JavaScript code is used in a raw fashion by the back-end, i.e., the compiler performs no checks on the code supplied by the user and all syntactic errors occur at run time.

It is desirable to hint on such errors at compile time of the SL program. To do so, the compiler should perform syntax and well-formedness checks on the quoted JavaScript code.

Type annotations for JavaScript quotes can use invalid types.

JavaScript quotes can be annotated with an invalid type, e.g., a not fully applied constructor type or even a type which does not exist in the current scope.

For example, the following program is considered correct as part of the compilers context analysis phase, even though there is no type Foo:

DEF foo = {| console.log("FooBar") |} : DOM Foo

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.