npeg icon indicating copy to clipboard operation
npeg copied to clipboard

PEGs for Nim, another take

Results 12 npeg issues
Sort by recently updated
recently updated
newest added

Hi I am really not able to wrap my head around error reporting. I understand how to use it in small fragments. But I am not sure how to structure...

Hi, dear developers Some months ago I started making a concept of a markup language which would be useful for UI design description. And week ago I started development. I...

wontfix

Someone commented on an old YouTube video of mine showing Advent of Code solutions using NPeg. After https://github.com/zevv/npeg/commit/0e297ac30790c0cb76d2a17dd968db41b4e22e3b the `Captures` type is no longer just an alias for a sequence,...

When NPeg throws a depth error due to an overflow in the return stack, it would be nice to have the exception contain a printout of the stack. Something like...

NPeg doesn't appear to attach line information to its generated code. For instance, when the backtrace depth has been exceeded, a stack trace like the following will occur: ``` .\sample.nim(17)...

Here's a request to all NPeg users: I'm looking for some ideas and feedback for the proper design of the API for grammar code blocks. At this time the available...

help wanted

You write: "Note that for code block captures, the Nim code gets executed during parsing, even if the match is part of a pattern that fails and is later backtracked."...

I want to make a pattern that uses another pattern but doesn't execute that pattern's code block capture. ```nim import npeg # This parser parses words and no words #...

Hi, I am wondering how to use npeg with gcsafe code or threads. i declared my grammar constant, but I get errors like this when using the grammar `match` procedure:...

Handling left recursion is problematic in PEGs, see https://en.wikipedia.org/wiki/Parsing_expression_grammar#Indirect_left_recursion for a nice explanation of the problem.

help wanted