Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 13 16:49
    lwandrebeck commented #421
  • Oct 13 15:08
    iago-lito opened #421
  • Oct 10 14:15
    Robert42 edited #420
  • Oct 10 14:14
    Robert42 commented #420
  • Oct 10 06:09
    Robert42 commented #420
  • Oct 10 06:09
    Robert42 commented #420
  • Oct 10 06:06
    Robert42 opened #420
  • Oct 10 03:44
    brson commented #325
  • Sep 30 02:11
    CAD97 commented #419
  • Sep 29 22:37
    Yam76 opened #419
  • Sep 28 00:42
    Keats commented #402
  • Sep 24 12:27
    Nadrieril commented #416
  • Sep 24 06:49
    lwandrebeck commented #416
  • Sep 23 15:38
    ssokolow opened #418
  • Sep 22 23:47
    stephenmac7 opened #417
  • Sep 21 08:01
    lwandrebeck commented #416
  • Sep 20 18:35
    Nadrieril edited #416
  • Sep 20 18:34
    Nadrieril edited #416
  • Sep 20 18:34
    Nadrieril edited #416
  • Sep 20 18:33
    Nadrieril opened #416
mental
@mental32
@lwandrebeck Thanks!
mental
@mental32
Is it possible to conditionally silence rules?
for example rule's a and b require that rule c matches too but I want to silence c when matching a but I not in b
Tesla Ice Zhang‮
@ice1000
You can ignore the .next()'s return value conditionally
mental
@mental32
yeah I ended up doing just that, thanks :)
mental
@mental32
@ice1000 does pest support stream parsing?
rbenua
@rbenua
Hi there, I'm seeing this strange message when trying to use the & behavior: https://pest.rs/?bin=1bsukd#editor
Is this a pest bug or just a confusing error message?
(and, if i'm doing it wrong, what would be the standard way to exclude a list of specified keywords from the space of identifiers? I feel like that must be a pretty common thing to have to do)
mental
@mental32
@rbenua I use this trick https://pest.rs/?bin=slfd1#editor
have a rule that matches all identifiers without discrimination, then just pair it as !keyword ~ raw_ident
If you want to allow identifiers to resemble keywords see True being a keyword and True_ being a valid identifier then filter a valid keyword by excluding any matches that are followed by another rule such as ASCII_ALPHA | "_"
you may want to silence the raw_ident rule in that example
Vincent Prouillet
@Keats
Has anyone got an idea on where the issue in pest-parser/pest#402 could be? Is there a way to output a generated parser as a valid Rust file?
Dragoș Tiselice
@dragostis
It probably has something to r
Dragoș Tiselice
@dragostis
... with a rule that recurses a lot. I'll try to a better look when I get the chance. You can try to debug this with the debugger branch on pest.
Vincent Prouillet
@Keats
I'm going on holiday very soon, I'll have a look when I get back
I might have time to create a testcase at least though, where should it be?
Y0hy0h
@Y0hy0h
Hi! I have written a grammar for the R language and while testing it with a real world code file, I noticed that nested if statements make the parser run noticably slow. I'm not surprised that this happens, it feels like exponential complexity growth, but I was wondering whether I could do some improvements to my grammar. I've no previous experience with parsers nor PEGs.
If you'd like to have a look, I've created a bin at https://pest.rs/?bin=10fbo7#editor. You can copy and paste more while (TRUE) to the end of the file to get a feel for when it starts to become slow. (It takes a lot of nestings! :) )
By the way, pest is pretty awesome, no performance issues whatsoever except for this excessive nesting! Really cool!
Christopher Durham
@CAD97
>.> I got all excited because the pest-parser org has Actions but I still don't have access for my normal account >.>
Christopher Durham
@CAD97
image.png
Finally
Vincent Prouillet
@Keats
@dragostis where should I add a testcase for the timeout issue?
Tesla Ice Zhang‮
@ice1000
I noticed pest has got few updates lately
Andrey Cherkashin
@andoriyu
can someone help me with this: https://pest.rs/?bin=1d8kor#editor
it's matching 2 lines, but not 3
nvm missing '%' in my rules
amazing
Laurent Wandrebeck
@lwandrebeck
@andoriyu : would you be working on stratis or something ?
Martins Talbergs
@talbergs
I see no docs for PEEK_ALL and other.. hard to scape information out from issues
Nam Jeonghyun
@cr0sh
Hi. I'm trying to fix #407 on my own, but some tests(75 out of 450) fails with initial clone setup. But travis seems good with latest commit. Did I do something wrong?
I did git clone github.com/pest-parser/pest --recursive, cargo bootstrap, cargo test with stable-x86_64-pc-windows-gnu toolchain.
Laurent Wandrebeck
@lwandrebeck
@talbergs : indeed. could you list items with missing doc and open an issue please ?
@cr0sh : trying here, will tell you asap if it fails the same way (linux)
@cr0sh : worked like a charm here, just a couple tests ignored, no fail.
Laurent Wandrebeck
@lwandrebeck
@CAD97 : I’ve just done the into_span -> as_span cleanup (I saw your branch too late…). Everything looks fine from a cargo test POV, are you to commit that one soon ?
Nam Jeonghyun
@cr0sh
@lwandrebeck Oh, I was running cargo test on workspace. Inside pest crate it worked without any errors(is it a bug or usual behavior of cargo? I'm such a rust newbie xD). Thanks!
Laurent Wandrebeck
@lwandrebeck
@cr0sh : to be clear, I’ve done git clone…; cd pest; cargo bootstrap; cargo test
Nam Jeonghyun
@cr0sh
Then it is still a problem I think... I'll try your commands on both WSL and Windows.
Laurent Wandrebeck
@lwandrebeck
I have no MS machine so I can’t help there.
Nam Jeonghyun
@cr0sh
Oh, it worked on wsl but fails on windows. So maybe it is a platform-specific bug, or my machine setup caused it. I'll try to investigate more. Thanks for your help!
Laurent Wandrebeck
@lwandrebeck
@cr0sh : you’re welcome !
Tesla Ice Zhang‮
@ice1000
I noticed pest has got few updates lately
Is there a plan for releasing a new version?
Laurent Wandrebeck
@lwandrebeck
@ice1000 : I can’t speak for @dragostis , afaik he’s very busy IRL, but I guess he’ll release a minor revision in the coming days/weeks
Laurent Wandrebeck
@lwandrebeck
did anyone have time to take a look at pest3 ?
Tesla Ice Zhang‮
@ice1000
I'll handle the IDE update once you guys have decided on the new syntaxes
Laurent Wandrebeck
@lwandrebeck
@ice1000 : I guess you are on no hurry, there’s still load of things to do for pest3 and effort is stalled these days/weeks.
Andrey Cherkashin
@andoriyu