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

renatahodovan / grammarinator / 19859972872
84%

Build:
DEFAULT BRANCH: master
Ran 02 Dec 2025 01:20PM UTC
Jobs 1
Files 26
Run time 1min
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

02 Dec 2025 01:18PM UTC coverage: 84.175% (-0.5%) from 84.674%
19859972872

push

github

web-flow
Support per-rule options, and add virtual option to C++ code generation (#364)

The format of g4 files has been supporting per-rule options as
`RuleName options { optionName=value; } : ...;` for a long time,
and ANTLRv4 has been supporting at least one such option
(`caseInsensitive`) since 4.10.

This commit adds support for per-rule options in general (i.e.,
such options are parsed and stored in internal data structures),
and defines the `virtual` option (both at grammar and rule levels)
to control the C++ code generation, i.e., whether methods
corresponding to grammar rules should be virtual or not.

As a result, this change enables the Custom.g4 test case among the
C++ grammar tests. (The Python counterpart is adapted accordingly.)

10 of 18 new or added lines in 1 file covered. (55.56%)

8 existing lines in 2 files now uncovered.

2218 of 2635 relevant lines covered (84.17%)

0.84 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
8
90.57
-0.79% grammarinator/tool/processor.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
90.57
-0.79% grammarinator/tool/processor.py
7
72.26
-2.13% grammarinator/tool/generator.py
Jobs
ID Job ID Ran Files Coverage
1 19859972872.1 02 Dec 2025 01:20PM UTC 26
84.17
GitHub Action Run
Source Files on build 19859972872
  • Tree
  • List 26
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f55daaaa on github
  • Prev Build on master (#19855727969)
  • Next Build on master (#19928001764)
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

© 2025 Coveralls, Inc