parser generator

2023-05-23 Thread choltreppe
yea thats actually a bug in my serialization library `unibs`, thanks for reporting, will fix it when I have time

parser generator

2023-05-22 Thread dPixie
I tried to try it out, but ... 😊 Hopefully it's just something I'm doing wrong and an easy fix. Looks like a good DSL for lexer/parser generation otherwise.

parser generator

2022-12-08 Thread choltreppe
Thanks, thats nice to hear :)

parser generator

2022-12-08 Thread catswhiskers
Brilliant. Love this. Just what I've been looking for. Even in its unfinished state it's helping me complete a long running project of mine.

parser generator

2022-12-06 Thread Araq
I've heard about this error before but unfortunately I don't know where it comes from. Maybe the path handling inside lexim doesn't work properly, it's really old code.

parser generator

2022-12-06 Thread choltreppe
Thanks. I updated the lexer. I completly used your lexim for it now. I just have a problem with the lexe.exe (Im not using it currently). When I try to use it I get the following error: parsejson.nim(515) raiseParseErr Error: unhandled exception: unknown file(1, 1) Error:

parser generator

2022-12-03 Thread Araq
The good: * Produces an LALR(1) parser. The bad: * Generates a 'proc lex(code: string): seq[Token]' Traditional lexers are iterator-like, they produce a single token and the storage is reused. For the lexer generator please steal from my [lexim](https://github.com/Araq/lexim) project

parser generator

2022-12-03 Thread Stefan_Salewski
Thanks for the example, I will study it in more detail later. Note, in your readme you used the word "realy" with only one l twice, as well as in your post above. I think common English term is really with two l, you may consider fixing it in the readme.

parser generator

2022-12-03 Thread choltreppe
You could write it like that: import std/[strutils, strformat] import /home/joel/daten/programming/nim/parlexgen/src/parlexgen type TokenKind = enum tkRect, tkSep, tkNum Token = object case kind: TokenKind of tkNum: val: float else: dis

parser generator

2022-12-03 Thread Stefan_Salewski
Interesting. Unfortunately I have never tried parser generators myself. For my simple use cases Nim's parseutils or strscan was not that bad. Or npegs. In the book I have an example like import std/strscans proc sep(input: string; start: int; seps: set[char] = {' ',',',';'}

parser generator

2022-12-03 Thread choltreppe
Hallo all, I would like to show you a parser generator I wrote: <https://github.com/choltreppe/parlexgen> Short summary why I wrote it: I have some projects where I need to parse things, and I was using the std/pegs module for that, but I was not realy happy with that solution. So I se

Nimly parser generator does not work in JavaScript backend

2021-06-07 Thread xigoi
ave an idea on what causes this issue and how to fix it? When I inspected the JS code, it seems to involve Nim's hash tables, but I'm not sure about that.. Alternatively, is there a parser generator with similar functionality that works correctly with JavaScript?