Removing ambiguity in grammar

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/Compilers

Our great sponsors
  • SonarLint - Clean code begins in your IDE with SonarLint
  • Scout APM - Less time debugging, more time building
  • talent.io - Download talent.io’s Tech Salary Report
  • grammars-v4

    Grammars written for ANTLR v4; expectation that the grammars are free of actions.

    Additionally, I presume that this is a subset of C? If not, C cannot really be expressed as an LL(1) grammar. LL(k) is possible, and here is an example in ANTLR - https://github.com/antlr/grammars-v4/blob/master/c/C.g4. In fact, this syntax is close enough to BNF that you could probably read it to understand how to tweak to your usecase (again, assuming a subset of C).

  • acwj

    A Compiler Writing Journey

    As an aside, you might also find this series useful - https://github.com/DoctorWkt/acwj/blob/master/00_Introduction/Readme.md You can skip the code and simply read through the markdown files to get an idea of the whole journey, possibly saving you many deadends along your own journey.

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts