An open API service indexing awesome lists of open source software.

https://github.com/begriffs/multiparse

Drafts for my parsing article
https://github.com/begriffs/multiparse

Last synced: 15 days ago
JSON representation

Drafts for my parsing article

Awesome Lists containing this project

README

          

## Multiparse

This is an experiment to see how to include multiple reentrant (pure) parsers
and lexers into the same static library. That way a program could parse both,
say, a network protocol and a configuration file.

Lex and Yacc are traditionally designed to output standalone programs, so this
project uses Flex and Bison extensions.

### Notes

To create the rules in morse.y from a dictionary of words, use this:

```sh
awk '{ word=$1; gsub(/./, "& ", word); printf("%s { $$ = \"%s\"; } %%merge \n", word, $1) }'
```