activeviam / online-editor Goto Github PK
View Code? Open in Web Editor NEWStudent project with CentraleSupelec 2020
Student project with CentraleSupelec 2020
Ultimately, we need to make parse accept a string representing TypeScript code and return the corresponding abstract syntax tree.
There are several parsing solutions. See https://www.npmtrends.com/nearley-vs-jison-vs-acorn-vs-esprima.
Of course, there is also the option of writing one.
Let's explore these options and use this GitHub issue as a thread to discuss their pros and cons, given the timeframe and that our main goal here is to learn.
Ultimately, we will transform App.tsx to make it become an editor where the user can write TypeScript code and benefit from (at least) syntax highlighting and autocompletion.
The first step is to understand how an editor chooses to display what it displays, given an abstract syntax tree. This can be done by reverse engineering Monaco Editor (VS Code's editor). A very first step can be to go through Help>Toggle developer tool directly in VS Code in order to inspect the editor's DOM and see how it seems to be linked to the code you wrote in it. An optional, more advanced step would be to clone it (https://github.com/microsoft/vscode), start it up in dev mode and try to debug it.
Let's use this GitHub issue as a thread to discuss our findings. Once we have a good picture, we will be able to start coding.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.