• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dtolnay / jq / 93
85%
master: 85%

Build:
Build:
LAST BUILD BRANCH: withoutonig
DEFAULT BRANCH: master
Ran 19 Jul 2015 05:15AM UTC
Jobs 1
Files 38
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
93

push

travis-ci

dtolnay
Resolve shift/reduce conflict of 'def' vs '|'

This was an important conflict. In the following expression:

    def a: 0; . | a

Bison needs to decide between these two equally valid
parses:

    (def a: 0; .) | a
    def a: 0; (. | a)

For jq we want the second one, because the first results in
"a/0 is not defined". In the current parser the first parse
is a reduce and the second parse is a shift. Since Bison
prefers to shift in shift/reduce conflicts, we accidentally
got the correct behavior.

This commit adds a precedence level FUNCDEF which is lower
precedence than '|', meaning we explicitly choose the
correct parse.

Of course many unit tests already cover this case, but I
added one specifically for it.

4746 of 5588 relevant lines covered (84.93%)

363502.54 hits per line

Jobs
ID Job ID Ran Files Coverage
3 93.3 (COVERAGE="--disable-valgrind --enable-gcov") 19 Jul 2015 05:15AM UTC 0
84.93
Travis Job 93.3
Source Files on build 93
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #93
  • 5410c9ee on github
  • Next Build on srconflict (#94)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc