You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import npeg
let tmp = "(*This is a comment*)" # Nested comments are not allowed
let parser = peg "comment":
comment <- "(*" * >*(1-"*)") * "*)"
echo parser.match(tmp).captures
I am trying to parse comments with limits:
(*
and*)
.I am trying the following without success:
The sort of comments I could expect are like:
The text was updated successfully, but these errors were encountered: