Skip to content

Commit

Permalink
Added 'NPeg and generic functions' section to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zevv committed Oct 3, 2023
1 parent 049b4ca commit 47600fc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1446,6 +1446,19 @@ from EBNF to PEG. Notable differences are left recursion and ordered choice.
Also, see "From EBNF to PEG" from Roman R. Redziejowski.


### NPeg and generic functions

Nim's macro system is sometimes finicky and not well defined, and NPeg seems to
push it to the limit. This means that you might run into strange and
unexpected issues, especially when mixing NPeg with generic code.

If you run into weird error messages that do not seem to make sense when using
NPeg from generic procs, check the links below for more information and
possible workarounds:

- https://github.com/nim-lang/Nim/issues/22740
- https://github.com/zevv/npeg/issues/68


## Examples

Expand Down

0 comments on commit 47600fc

Please sign in to comment.