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

mtomwing / purplex / 60
93%
master: 93%

Build:
Build:
LAST BUILD BRANCH: lalr-parser
DEFAULT BRANCH: master
Ran 03 Jul 2014 08:55AM UTC
Jobs 1
Files 12
Run time 8s
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
60

push

travis-ci

mtomwing
Added support for terminal and production precedence

class MyParser(Parser):

    PRECEDENCE = (
        (RIGHT, 'UMINUS'),
        (LEFT, 'TIMES', 'DIVIDE'),
        (LEFT, 'PLUS', 'MINUS'),
    )

    @attach('e : MINUS e', prec_symbol='UMINUS')
    def negate(self, op, expr):
        return -expr

"Symbols" in the PRECEDENCE tuple can be anything. Terminals will have
precedence according to their own name, while productions can use
"made-up" symbols (like UMINUS).

520 of 559 relevant lines covered (93.02%)

0.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 60.1 03 Jul 2014 08:55AM UTC 0
93.02
Travis Job 60.1
Source Files on build 60
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #60
  • f6916f14 on github
  • Prev Build on new-parser (#56)
  • Next Build on new-parser (#62)
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