Giter Site home page Giter Site logo

hhy5277 / langsandbox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ftomassetti/langsandbox

0.0 1.0 0.0 18.64 MB

Project to illustrate how to build a programming language

License: Apache License 2.0

ANTLR 4.97% Kotlin 88.71% Shell 6.32%

langsandbox's Introduction

Apache 2.0 Licenseย  build status

LangSandbox

This project is used to illustrate how to build a programming language. The code present here is discussed in a series of articles.

From these series of tutorials I derived a book on creating languages.

You may be interested in the companion project (Kanvas) where we show how to build an editor for your language.

  1. Define the lexer
  2. Define the parser
  3. Build an editor with syntax highlighting (the code for this part is in this project)
  4. Build an editor with autocompletion (the code for this part is in this project)
  5. Map the parse tree to the abstract syntax tree
  6. Transform the abstract syntax tree
  7. Validate the abstract syntax tree
  8. Generate bytecode

I hope you enjoy and please let me know if you have issues, ideas, comments or any sort of feedback!

langsandbox's People

Contributors

alexp11223 avatar cad97 avatar ftomassetti avatar geoand avatar tajmone avatar

Watchers

 avatar

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.