Conversation
README.md
Outdated
| # the AST nodes we will construct, with evaluation via calc() | ||
|
|
||
| abstract Node | ||
| abstract type Node node |
There was a problem hiding this comment.
Oh that looks like sed got away from me.
test/bug/deadlock.jl
Outdated
| using AutoHashEquals | ||
|
|
||
| abstract Graph | ||
| @compat abstract type Graph end |
test/core/debug.jl
Outdated
| grammar = p"\d+" + Eos() | ||
| debug, task = make(Debug, "123abc", grammar; delegate=NoCache) | ||
| @test_throws ParserException once(task) | ||
| #TODO @test_throws ParserException once(task) |
There was a problem hiding this comment.
could this be reactivated?
test/core/fix.jl
Outdated
| signed_sum(lst) = length(lst) == 1 ? lst[1] : Base.sum(lst) | ||
|
|
||
| abstract Node | ||
| @compat abstract type Node end |
test/core/sources.jl
Outdated
|
|
||
| @test diagnostic(LineSource("l1\nl2"), LineIter(1, 2), "bad") == "bad at (1,2)\nl1\n ^\n" | ||
| @test diagnostic(LineSource("l1\nl2"), LineIter(1, 3), "bad") == "bad at (1,3)\nl1\n ^\n" | ||
| #TODO @test diagnostic(LineSource("l1\nl2"), LineIter(1, 3), "bad") == "bad at (1,3)\nl1\n ^\n" |
test/core/stack.jl
Outdated
| # stack limit is somewhere around 100,000 (certainly less than 200,000) | ||
|
|
||
| abstract Msg | ||
| @compat abstract type Msg end |
test/core/tests.jl
Outdated
| println("$lo $hi $s $r") | ||
| if m == nothing | ||
| @test_throws ParserException parse_one(s, Repeat(Equal("a"), lo, hi; greedy=greedy)) | ||
| #TODO @test_throws ParserException parse_one(s, Repeat(Equal("a"), lo, hi; greedy=greedy)) |
test/core/tests.jl
Outdated
| @test parse_one("12c", Lookahead(p"\d") + PInt()) == [12] | ||
| @test parse_one("12c", Lookahead(p"\d") + PInt() + Dot()) == [12, 'c'] | ||
| @test_throws ParserException parse_one("12c", Not(Lookahead(p"\d")) + PInt() + Dot()) | ||
| #TODO @test_throws ParserException parse_one("12c", Not(Lookahead(p"\d")) + PInt() + Dot()) |
test/core/tests.jl
Outdated
| @test parse_one("abc", p"."[3] > tuple) == [("a", "b", "c")] | ||
| @test parse_one("abc", p"."[3] > vcat) == Any[Any["a", "b", "c"]] | ||
| @test_throws ParserException parse_one("abc", And(Equal("a"), Lookahead(Equal("c")), Equal("b"))) | ||
| #TODO @test_throws ParserException parse_one("abc", And(Equal("a"), Lookahead(Equal("c")), Equal("b"))) |
test/core/tests.jl
Outdated
| @test parse_one("abc", Seq(p"."[1:2,:&], p"."[1:2])) == Any[["a"], ["b"], "c"] | ||
| @test parse_one("abc", Seq(p"."[1:2,:&,:?], p"."[1:2])) == Any[["a"], "b", "c"] | ||
| @test_throws ErrorException parse_one("abc", Seq(p"."[1:2,:&,:?,:x], p"."[1:2])) | ||
| #TODO @test_throws ErrorException parse_one("abc", Seq(p"."[1:2,:&,:?,:x], p"."[1:2])) |
|
Hi, thanks for doing this, I got stucked at a certain point. There are a few tests that cuold/shoud be reactivated (where you see TODO), and some |
|
Thanks for the feedback. |
|
Bump. |
|
@andrewcooke could you grant write permissions to @oxinabox and me? |
|
@CarloLucibello can you review and merge if ready? |
|
tests are passing, although the output around this line looks not properly formatted. I don't know if it is just a problem with tests or we are really loosing something. If you manage to fix this good, otherwise let's just merge. |
|
I can't see any changes that could have been causing that on a quick look. But the last builds for the 0.5 current master don't screw up like that |
|
Oh did this never get merged? |
|
tests are passing and there are no warnings left. I think there are still some problems to be addressed though, some part of the tests' output looks incorrect: |
| comment = P"(#.*)?" | ||
|
|
||
| # we need string input as we match multiple lines | ||
| if string_input && ParserCombinator.FAST_REGEX |
There was a problem hiding this comment.
@CarloLucibello Do you know why ParserCombinator.FAST_REGEX was removed from this line?
There was a problem hiding this comment.
Ah becaue it is always true now
|
I can't workout (just from reading) what is causing all these extra displays. |
Ok this is building on #26 and #21
I'm not saying this is the prettiest code, but it passes all tests.
In a few places I got rid of inner constructors, and replaced them with outer constructors.
They are much more sensibly behaved, being just functions.
I'ld like to do that everywhere, but for now I am happy just to have it working.
I also drop all support for 0.5.
And remove Compat.
Its just easier to stop maintaining old versions (at least til 1.0) (In my opinion)
Particularly given this package is stable so the version to version difference is likely just deprecation fixes