GithubHelp home page GithubHelp logo

kaby76 / antlrexamples Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 7.0 12.44 MB

Some examples of parsing with Antlr

C# 25.92% ANTLR 37.15% Shell 0.38% C 0.13% Yacc 14.12% Lex 1.41% CMake 0.37% C++ 0.17% MATLAB 1.41% Smalltalk 0.05% Java 1.58% GAP 6.80% Dart 0.09% JavaScript 9.27% Makefile 0.07% PowerShell 0.28% Go 0.19% Python 0.08% TypeScript 0.02% PLSQL 0.51%

antlrexamples's Introduction

Ken Domino - kaby76

Codinggorilla -- down for rebuilding

Current Work

Connect with me:

KenDomino | Twitter kenneth-e-domino | LinkedIn




Machine Instruction Sets

CIL PTX JVM 390 68k x86 Vax z80 6502 PDP8




Languages

Kotlin C# Java C++ Perl Pascal C Lisp BCPL Algol W Fortran APL




Tools

Antlr Bash Bison Blender dotCover dotMemory dotPeek Git GitHub Google Play Inkscape NET Core Resharper VirtualBox Xamarin




Editors

Android Studio Eclipse Emacs Intellij-Idea NetBeans PhpStorm PyCharm Rider Vim Visual Studio Code Visual Studio IDE Webstorm




Operating Systems

Android Ubuntu Windows 10




Online Presence

Gitter Reddit Stack Overflow





⚡ Github Stats kaby76's Github Stats

antlrexamples's People

Contributors

kaby76 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

antlrexamples's Issues

New Parser for Shell

Hi, Do you have an Antlr4 parser/lexer for Linux Shell ?
KShell is the best.

BTW, thanks for providing PL1 Parser 2 years ago,
It's very very helpful.

Question about 'EDIT' statement

Many thank you for providing this Antlr4 Grammar.
I just followed from this Issue [https://github.com/antlr/grammars-v4/issues/1752]
It's so hard to find a good PL1 parser in 2020......

This G4 file Pared 80% of my example PL1 source code Successfully, Thanks again.
Here's the question about this G4 file,
For example, I saw the EBNF for "EDIT" is like:
["EDIT" { "(" data_list ")" "(" format_list ")" }+],
Here's a [+] in it, I think it means "dataList" and "formatList" is a set that appears 1 or more times
But from your G4 file ,
[editdataspec : '(' datalist ')' '(' editformatlist ')'], no [+].

Is there any reason to define the "EDIT" grammar like that ?

Multiple include in JavaScript Antlr example

<ItemGroup>
<Antlr4 Include="JavaScriptLexer.g4" />
<Antlr4 Include="JavaScriptParser.g4" />
<Antlr4 Include="JavaScriptLexer.g4" />
<Antlr4 Include="JavaScriptParser.g4" />
</ItemGroup>

Its probably a typo

Source

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.