<Corbin>
Trying to write an EBNF parser but having problems with the special IGNORE rule. I have this grammar https://bpa.st/IXKQ but it's not accepting the test inputs "id\n" or "(comp id id)"; I get a LexerError on the whitespace. What am I doing wrong?
Julian has quit [Ping timeout: 258 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 258 seconds]
fotis has joined #pypy
Gustavo6046 has quit [Ping timeout: 245 seconds]
Gustavo6046_ has joined #pypy
Gustavo6046_ is now known as Gustavo6046
Julian has joined #pypy
Julian has quit [Ping timeout: 265 seconds]
Gustavo6046 has quit [Ping timeout: 252 seconds]
Gustavo6046 has joined #pypy
Julian has joined #pypy
Julian has quit [Ping timeout: 260 seconds]
Julian has joined #pypy
fotis has quit [Ping timeout: 260 seconds]
Julian has quit [Ping timeout: 260 seconds]
fotis has joined #pypy
Julian has joined #pypy
Julian has quit [Ping timeout: 265 seconds]
agronholm has quit [Ping timeout: 264 seconds]
agronholm has joined #pypy
Julian has joined #pypy
Julian has quit [Ping timeout: 260 seconds]
fotis has quit [Ping timeout: 258 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 260 seconds]
Gustavo6046 has quit [Ping timeout: 245 seconds]
Gustavo6046 has joined #pypy
Julian has joined #pypy
Julian has quit [Ping timeout: 260 seconds]
fotis has joined #pypy
Julian has joined #pypy
Julian has quit [Ping timeout: 260 seconds]
Julian has joined #pypy
Gustavo6046_ has joined #pypy
Gustavo6046 has quit [Ping timeout: 252 seconds]
Julian has quit [Ping timeout: 260 seconds]
Gustavo6046_ is now known as Gustavo6046
fotis has quit [Ping timeout: 260 seconds]
fotis has joined #pypy
Julian has joined #pypy
fotis has quit [Ping timeout: 260 seconds]
fotis has joined #pypy
Julian has quit [Ping timeout: 260 seconds]
fotis has quit [Ping timeout: 260 seconds]
fotis has joined #pypy
Julian has joined #pypy
fotis has quit [Ping timeout: 260 seconds]
fotis has joined #pypy
Julian has quit [Ping timeout: 258 seconds]
fotis has quit [Ping timeout: 260 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 258 seconds]
<cfbolz>
mattip: I don't think so
<cfbolz>
Corbin: gah, not sure it can be recommended
<cfbolz>
Corbin: it's really rickety old code
<cfbolz>
Corbin: anyway, isn't IGNORE wrong as a regular expression? It matches everything *but* whitespace, due to the ^
Julian has joined #pypy
Julian has quit [Ping timeout: 264 seconds]
fotis has joined #pypy
Julian has joined #pypy
Julian has quit [Ping timeout: 260 seconds]
Gustavo6046 has quit [Ping timeout: 245 seconds]
Gustavo6046 has joined #pypy
Julian has joined #pypy
Julian has quit [Ping timeout: 260 seconds]
fotis has quit [Ping timeout: 260 seconds]
Gustavo6046_ has joined #pypy
Gustavo6046 has quit [Read error: Connection reset by peer]
fotis has joined #pypy
Julian has joined #pypy
Gustavo6046_ is now known as Gustavo6046
<Corbin>
cfbolz: Oh! Okay, I misunderstood. That does get me a little further, thanks.
fotis has quit [Ping timeout: 264 seconds]
fotis has joined #pypy
Julian has quit [Ping timeout: 260 seconds]
fotis has quit [Ping timeout: 260 seconds]
fotis has joined #pypy
Julian has joined #pypy
fotis has quit [Ping timeout: 258 seconds]
Julian has quit [Ping timeout: 264 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 260 seconds]
fotis has joined #pypy
Julian has joined #pypy
Julian has quit [Ping timeout: 264 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 252 seconds]
otisolsen70 has joined #pypy
fotis has quit [Ping timeout: 265 seconds]
Julian has joined #pypy
fotis has joined #pypy
Julian has quit [Ping timeout: 260 seconds]
dmalcolm has joined #pypy
dmalcolm_ has quit [Ping timeout: 245 seconds]
fotis has quit [Ping timeout: 260 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 265 seconds]
Julian has joined #pypy
fotis has joined #pypy
Julian has quit [Ping timeout: 260 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 260 seconds]
fotis has quit [Ping timeout: 260 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 252 seconds]
fotis has joined #pypy
fotis has quit [Ping timeout: 260 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 260 seconds]
cactus has joined #pypy
Julian has joined #pypy
Julian has quit [Ping timeout: 260 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 265 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 260 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 265 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 260 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 264 seconds]
fotis has joined #pypy
fotis has quit [Ping timeout: 260 seconds]
Julian has joined #pypy
fotis has joined #pypy
Julian has quit [Ping timeout: 260 seconds]
fotis has quit [Ping timeout: 260 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 265 seconds]
Gustavo6046 has quit [Read error: Connection reset by peer]
Julian has joined #pypy
Gustavo6046 has joined #pypy
Julian has quit [Ping timeout: 264 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 260 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 260 seconds]
nlhnt has joined #pypy
Julian has joined #pypy
Julian has quit [Ping timeout: 264 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 252 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 265 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 264 seconds]
Julian has joined #pypy
Julian has quit [Quit: leaving]
otisolsen70 has quit [Quit: Leaving]
Guest15 has joined #pypy
Guest15 has left #pypy [#pypy]
fotis has joined #pypy
fotis has quit [Ping timeout: 258 seconds]
Julian has joined #pypy
fotis has joined #pypy
<cfbolz>
mattip: I suspect you're already offline, will try to see whether I'll manage to import the 3.9 stlib
fotis has quit [Ping timeout: 260 seconds]
<Corbin>
cfbolz: Thanks for the heads-up on the general state of this parser code. Since I'm just parsing S-expressions, I think I'm going to hand-write a basic stack-driven parser and compose it with a table of constructors and arities. It might be messier, but it will be easier to debug.
Gustavo6046_ has joined #pypy
Gustavo6046 has quit [Ping timeout: 252 seconds]
Gustavo6046_ is now known as Gustavo6046
<Corbin>
Well, I guess that I speedran that; I have a hand-rolled S-expression parser now. The code to look up each S-expression constructor is a big if-else table, but otherwise it's good enough.