ruby / ruby/racc

Online yacc/lex grammar editor/tester

Open
#233 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Yacc
Stars
569
Forks
93
Avg merge
4d 19h
Merged PRs (30d)
4

Description

I'm trying to build an online yacc/lex (LALR(1)) grammar editor/tester to help develop/debug/document grammars the main repository is here https://github.com/mingodad/parsertl-playground and the online playground with several non trivial examples is here https://mingodad.github.io/parsertl-playground/playground/ .

Select a grammar/example from "Examples" select box and then click "Parse" to see a parser tree for the source in "Input source" editor.

It's based on https://github.com/BenHanson/gram_grep and https://github.com/BenHanson/lexertl14 .

Any feedback is welcome !

The grammars available so far (with varying state of correctness):

  • Ada parser
  • Akwa parser (not working)
  • Aliceml parser (partially working)
  • Ansi C11 parser (partially working)
  • Ansi C18 parser (partially working)
  • Ansi C parser
  • Antlr4.5 parser
  • Bison parser (partially working)
  • Blawn parser
  • Braille parser (not working)
  • C3c parser
  • Calculator parser
  • Carbon parser (need review of '*')
  • Chapel parser
  • CocoR parser (partially working)
  • Cpp5-v2 parser (not working)
  • Cql parser
  • Cxx parser (not working)
  • Doxygen code scanner torture
  • Ecere parser (not working)
  • GramGrep parser
  • HTML parser
  • idl2cpp parser
  • Ispc parser
  • Java11 parser
  • JavascriptCore parser
  • Jq parser (partially working)
  • Json5 parser
  • Json lexer
  • Json parser
  • LALR parser
  • Lark parser
  • Lezer parser (partially working)
  • LFortran parser (partially working)
  • Linden Script parser
  • Lox parser
  • LPegrex parser (partially working)
  • LPython parser (not working)
  • Lua2ljs parser
  • Lua-5.3 parser
  • Lua parser
  • LuaPP parser (partially working)
  • Minic parser
  • Minizinc parser (not working)
  • MSTA parser
  • Mulang parser (not working)
  • Openscad parser (partially working)
  • Peg parser (partially working)
  • Pikchr parser
  • Playground3 parser
  • Playground parser
  • PnetC parser
  • PnetCSHarp parser
  • PnetDPas parser
  • PnetJava parser
  • PnetVBasic parser
  • Postgresql parser (be patient)
  • Preprocessor parser (not working)
  • Rust parser
  • Scheme parser
  • Souffle parser
  • Tameparse parser (not working)
  • Textdiagram parser
  • Textmapper parser
  • Webassembly interpreter parser
  • XML parser
  • Z80 assembler parser

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue describes an online grammar editor hosted in the linked parsertl-playground repositories rather than a requested change in racc. Start by reviewing those linked repositories and the listed playground behavior; a suitable contribution would need an explicit integration target and completion criteria for racc, which the issue does not provide.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.