nimly icon indicating copy to clipboard operation
nimly copied to clipboard

Lexer Generator and Parser Generator as a Library in Nim.

Results 17 nimly issues
Sort by recently updated
recently updated
newest added

Minimal example: ```nim # A parser that only parses the string "0" import nimly import patty variant ZeroToken: zero niml ZeroLexer[ZeroToken]: r"0": zero() nimy ZeroParser[ZeroToken]: top[int]: zero: 0 var lexer...

wontfix

``` .../nimly/src/nimly/parsetypes.nim(165, 12) Warning: Deprecated since v0.20; sets are initialized by default; isValid is deprecated [Deprecated] .../nimly/src/nimly/parsetypes.nim(166, 16) Warning: Deprecated since v0.20; sets are initialized by default; isValid is deprecated...

Nim version up
good first issue

Add an option to NimlLexer to lexNext / lexIter provide a specified token when the lexer reaches EOF only once. Example: ```nim # lexer setup lexer.ignoreIf = someProc lexer.produceEOFToken(tokenForEOF) #...

enhancement
good first issue

This is used for the type for `token` in a `niml`. https://github.com/loloicci/nimly/blob/e2a6a1677baca5bf83ca3dae04b68ca918446fc2/src/nimly/lextypes.nim#L10-L15

document

continue https://github.com/loloicci/nimly/tree/use-quote

refactoring

``` Warning: inherit from a more precise exception type like ValueError, IOError or OSError. If these don't suit, inherit from CatchableError or Defect. ```

enhancement

It is not needed right now. related to #54. If someone needs this function, please comment.

enhancement
wontfix

If you define a lexer `niml lexer[MyToken]` and then two parsers `nimy parserOne[MyToken]` and `nimy parserTwo[MyToken]` you get an error due to a redefinition of the function `parse` (`parsegen.nim:1001`)

question
wontfix