code review for latest version of Parser Combinators in C

luser droog <>
Wed, 22 Jun 2022 10:20:32 -0700 (PDT)

          From comp.compilers

Related articles
code review for latest version of Parser Combinators in C (luser droog) (2022-06-22)
| List of all articles for this month |

From: luser droog <>
Newsgroups: comp.compilers
Date: Wed, 22 Jun 2022 10:20:32 -0700 (PDT)
Organization: Compilers Central
Injection-Info:; posting-host=""; logging-data="29020"; mail-complaints-to=""
Keywords: tools, available
Posted-Date: 22 Jun 2022 14:04:24 EDT

I've got a new rewrite of my parser combinators working
upto and including a regex compiler and an ebnf compiler
that produce parsers. Similar to the compiler-compilers
discussed recently, this is a compiler-interpreter. It doesn't
produce a standalone compiler, but a function object.

2 .c files. 2 .h files. And one example/testing file. It tries
to make C look like Lisp (which I hope will pique Kaz's interest
(and comments)).

$ make count
wc pc11*[ch]
    437 1879 11141 pc11object.c
    101 517 3607 pc11object.h
    639 2496 16281 pc11parser.c
      81 322 1918 pc11parser.h
    169 685 4904 pc11test.c
  1427 5899 37851 total

Code also available here for those that don't like the terms of StackExchange:

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.