Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 19:34
    CAD97 review_requested #422
  • 16:50
    anibalanto commented #328
  • 16:49
    shnewto opened #422
  • 16:24
    anibalanto commented #328
  • Oct 22 21:07
    anibalanto commented #328
  • Oct 22 21:02
    anibalanto commented #328
  • Oct 22 18:38
    anibalanto commented #328
  • Oct 21 22:47
    anibalanto commented #328
  • Oct 21 22:46
    anibalanto commented #328
  • Oct 18 19:05
    Yam76 commented #419
  • 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
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
Dragoș Tiselice
@dragostis
I believe it's safe to do a point-release on master? Sorry for the late reply; I've had quite a few things to deal with in my personal life.
Tesla Ice Zhang‮
@ice1000
Yes, it is.
Tesla Ice Zhang‮
@ice1000
I mean, it really is. My bundled pest-vm in the intellij plugin constantly panics (when a Rust app is compiled to wasm and then to Java, panicking is translated to exception throwing. IntelliJ catches exceptions thrown by plugins and provide API for error report, and for the pest plugin the error reports are opened as GitHub issues), I hope the master branch contains some fixes to it
:smile:
The error reporter does not bring the code causing the exception together with the stacktrace, cus we shouldn't upload users' codes
Tesla Ice Zhang‮
@ice1000
Pest
George Tsomlektsis
@UltraWelfare
Hello!
I have a lib project and a lib.rs file... I copy-pasted the CSV Example code and created the pest file
cargo doc, doesn't seem to generate any code
Hm seems like it did using cargo doc --all... Now the problem is that the IDE can't see the functions to autocomplete them :P
Tesla Ice Zhang‮
@ice1000
cargo doc, doesn't seem to generate any code
Hm seems like it did using cargo doc --all... Now the problem is that the IDE can't see the functions to autocomplete them :P
Install pest plugins and you at least have editing assistance for pest grammar files
Completion for Rule::<caret> is not yet available -- as intellij-rust devs claims that the completion API will not be very stable
Tesla Ice Zhang‮
@ice1000
Pest
Can we have a newer version of pest
Laurent Wandrebeck
@lwandrebeck
@ice1000 : please be patient, @dragostis will do that as soon as he can.
@ice1000 : meanwhile you can easily use git master branch in your Cargo.toml
Tesla Ice Zhang‮
@ice1000
Ok
Goldstein
@GoldsteinE

Hi. I can't realize how to skip character.
E.g. I have this:

regex_char = _{
    !("\\" | "/") ~ ANY
}
pattern = @{ regex_char* }
regex = { "/" ~ pattern ~ "/" }

I want to parse string /a\/b/ to regex -> pattern("a/b"), so backslash character is skipped and /a\\b/ to regex -> pattern("a\\b"), so first backslash character is skipped. How can I achieve this?

JSON example in the book leaves backslash inside of string on it's place
Goldstein
@GoldsteinE

Another example: I want to allow non-quoted strings for simple cases (like in TOML paths).

quoted_string_char = _{
    !("\"" | "\\") ~ ANY
    | "\\" ~ ANY
}

quoted_string = _{
    "\"" ~ quoted_string_char* ~ "\""
}

string = ${
    ASCII_ALPHANUMERIC+
       | quoted_string
}

This code leaves quotes in string for quoted strings

Goldstein
@GoldsteinE
I understand why I can't skip chars in any place, but it should be possible without copying on start or end of token
Tesla Ice Zhang‮
@ice1000
You can define COMMENT