C Parser

Open-source C projects categorized as Parser

Top 23 C Parser Projects

  • inih

    Simple .INI file parser in C, good for embedded systems

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • parson

    Lightweight JSON library written in C.

  • md4c

    C Markdown parser. Fast. SAX-like interface. Compliant to CommonMark specification.

  • mini-c

    Dr Strangehack, or: how to write a self-hosting C compiler in 10 hours

  • lwesp

    Lightweight and versatile AT parser library for ESP8266 and ESP32 devices.

  • tree-sitter-markdown

    Markdown grammar for tree-sitter

    Project mention: Tbsp – treesitter-based source processing language | news.ycombinator.com | 2024-09-01

    The md-to-html demo is a good one, but worth mentioning that the Markdown parser[1] being used may not be suitable for more complex documents. From the README:

    > "...it is not recommended to use this parser where correctness is important. The main goal for this parser is to provide syntactical information for syntax highlighting..."

    There's also a separate block-level and inline parser, not sure how `tbsp` handles nested or multi-stage parsing.

    [1]: https://github.com/tree-sitter-grammars/tree-sitter-markdown

  • jsonlite

    A Robust, High Performance JSON Parser and Generator for R (by jeroen)

  • tiny-json

    The tiny-json is a versatile and easy to use json parser in C suitable for embedded systems. It is fast, robust and portable.

  • packcc

    A parser generator for C

    Project mention: A glimpse into the universe where Windows died with the 1980s | news.ycombinator.com | 2024-03-12

    There are languages with perfectly clean grammars which can't be parsed by yacc because they aren't LALR(1).

    I agree that a command processor should have a grammar that can be expressed in a well-known formalism, and its parser generated by a parser generator.

    I agree that both POSIX shell and CMD.EXE are flawed because that isn't true.

    What I'm disagreeing with, is that it is important that the grammar formalism be LALR(1) in particular, and that the parser generator be yacc in particular.

    Suppose I have a Packrat parser generator. [0] And my command processor has a nice clean PEG grammar. And I use the Packrat parser generator to generate the parser of my command processor. That grammar quite possibly isn't LALR(1), and hence yacc in particular won't be able to generate a parser for it. But what's the problem with that? If it is a problem at all, it is a very different problem than the problem that CMD.EXE and POSIX shell have

    [0] e.g. https://github.com/arithy/packcc

  • tree-sitter-bash

    Bash grammar for tree-sitter

  • zsv

    zsv+lib: tabular data swiss-army knife CLI + world's fastest (simd) CSV parser

    Project mention: How fast can you parse a CSV file in C#? | news.ycombinator.com | 2024-10-27

    Haven't yet seen any of these beat https://github.com/liquidaty/zsv when real-world constraints are applied (e.g. we no longer assume that line ends are always \n, or that there are no dbl-quote chars, embedded commas/newlines/dbl-quotes). And maybe under the artificial conditions as well.

  • gherkin

    A parser and compiler for the Gherkin language. (by cucumber)

  • tree-sitter-ruby

    Ruby grammar for tree-sitter

  • libconfini

    Yet another INI parser

    Project mention: Why the fuck are we templating YAML? (2019) | news.ycombinator.com | 2024-01-23

    Personally I prefer INI over nearly all configuration formats.

    https://github.com/madmurphy/libconfini/wiki/An-INI-critique...

  • tree-sitter-haskell

    Haskell grammar for tree-sitter.

  • tree-sitter-html

    HTML grammar for Tree-sitter

  • pl0c

    Self-hosting PL/0 to C compiler to teach basic compiler construction from a practical, hands-on perspective.

  • sqlite-createtable-parser

    A parser for SQLite create table sql statements.

  • tree-sitter-go-template

    Golang template grammar for tree-sitter

  • serd

    A lightweight C library for RDF syntax

  • stutter

    Implement a Lisp, in C, from scratch, no libs (by mkirchner)

  • libwifi

    An 802.11 (WiFi) Frame Generation and Parsing Library in C

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C Parser discussion

Log in or Post with

C Parser related posts

  • Removing global state from LLD, the LLVM linker

    2 projects | news.ycombinator.com | 21 Nov 2024
  • Mastering JSX Editing in Emacs with Tree-sitter

    1 project | dev.to | 15 May 2024
  • A C parser for CREATE and ALTER TABLE SQLite statements

    1 project | /r/hypeurls | 16 Aug 2023
  • A C parser for CREATE and ALTER table SQLite statements

    2 projects | news.ycombinator.com | 14 Aug 2023
  • A parser for SQLite create table statements now with support for comments

    1 project | news.ycombinator.com | 10 Aug 2023
  • How to pass environment variables to treesitter grammar

    1 project | /r/NixOS | 27 Jul 2023
  • Simply Parse in C

    1 project | news.ycombinator.com | 19 Jul 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 13 Jan 2025
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Parser projects in C? This list will help you:

Project Stars
1 inih 2,534
2 parson 1,368
3 md4c 833
4 mini-c 521
5 lwesp 453
6 tree-sitter-markdown 438
7 link-grammar 390
8 jsonlite 381
9 tiny-json 368
10 packcc 355
11 tree-sitter-bash 217
12 zsv 217
13 gherkin 198
14 tree-sitter-ruby 191
15 libconfini 163
16 tree-sitter-haskell 161
17 tree-sitter-html 143
18 pl0c 138
19 sqlite-createtable-parser 135
20 tree-sitter-go-template 92
21 serd 88
22 stutter 79
23 libwifi 74

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you konow that C is
the 6th most popular programming language
based on number of metions?