Giter Club home page Giter Club logo

antlr4-grammar's Introduction

antlr4-grammar

The goals are:

  • to have a Langium grammar for Antlr4
  • to convert existing Antlr4 grammars to Langium
  • to have a zoo of grammars ๐Ÿ˜ ๐Ÿ ๐Ÿป

Current progress (including branches)

  • migrate lexer, including modes
  • migrate parser, including ambiguity resolution
  • implement scoping correctly, instead of hacking the document builder
  • scanning all pom.xml within the antlr4-grammars repo (246/~300)
  • covering 100% of all antlr4-grammars (215/246)... so that the Langium grammar for ANTLR4 accepts ANTLR4 inputs
  • transpile 100% of grammars to recognize all examples in each grammar's examples folder
  • add validators as needed

Getting started

This repository uses Git submodules. So do your git clone with the flag --recurse-submodules to checkout the dependencies as well.

git clone https://github.com/langium/antlr4-grammar --recurse-submodules

How to transpile ANTLR4 to Langium

During the migration of the ANTLR4 grammar for ANTLR4 itself, I will write down which steps were needed.

  • migrate each ANTLR4 lexer rule of the pattern Rule: 'constant'; by ...

TokenBuilder:

  • migrate each mode MMM by ...
  • migrate each pushMode(MMM) by ...
  • migrate each popMode() by ...

antlr4-grammar's People

Contributors

lotes avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

daylyt247

antlr4-grammar's Issues

Is this meant to be an Antlr4 importer?

As in, will Langium be able to serve as a bridge between antlr4 grammars and LSP?
Or is this repo simply to re-implement all antlr4 grammars in Langium's own syntax?

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.