Skip to content

xegaBNF

1.0.0.5Package record

Compile a Backus-Naur Form Specification into an R Grammar Object

4packages depend
6.2Kdownloads / year
55.6%test coverage
13/13flavors OK

Overview

About

Translates a BNF (Backus-Naur Form) specification of a context-free language into an R grammar object which consists of the start symbol, the symbol table, the production table, and a short production table. The short production table is non-recursive. The grammar object contains the file name from which it was generated (without a path). In addition, it provides functions to determine the type of a symbol (isTerminal() and isNonterminal()) and functions to access the production table (rules() and derives()). For the BNF specification, see Backus, John et al. (1962) "Revised Report on the Algorithmic Language ALGOL 60". (ALGOL60 standards page http://www.algol60.org/2standards.htm, html-edition https://www.masswerk.at/algol60/report.htm) A preprocessor for macros which expand to standard BNF is included. The grammar compiler is an extension of the APL2 implementation in Geyer-Schulz, Andreas (1997, ISBN:978-3-7908-0830-X).

Changes in 1.0.0.5
  • dataframePT(): Return a production table as a (readable) dataframe.

From NEWS in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.0 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-08
  • ERROR12 OK, 1 ERROR2026-06-07
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.0.0.5
READMEYes · 250 wordsVignettesNoNEWSYes · 67% structured · mentions 1.0.0.5Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
37includes a package overview page
Examples that run
100%36 run in a plain check
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
8%

Downloads

6.2K
CRAN downloads in the past year
Rank #11,105 · ~17/day · ~516/mo
Daily download trend is not available in this view yet.
35030 days
96090 days
6.2K1 year
Compare downloads with other packages →
Also on80 r2u1 autocran

Repository

0Stars
0Forks
0Open issues
0Open PRs
0Releases
Last activity 2026-09-07
Responsiveness
not measured
PracticesBeta

Checks run against github.com/ageyerschulz/xegabnf on 2026-10-21.

No development-tooling practices detected in the upstream repository.

How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
1 external dependency (excludes base and recommended)

Installing xegaBNF adds no packages beyond those that come with R.

Depends (0)
none
Imports (0)
none
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
4direct
0indirect
Imports 4
Depends, Imports or LinkingTo, most downloaded first

People & History

People (1)
Author, Maintainer since 1.0.0.0 (2024)
Releases (2)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.0.5Latest
    record
    2025-04-17 · current release · diff ↗ ·
    added 20 exports
    allTerminal, bindKvariables, booleanGrammarK, cL, dataframePT, directRecursion, evenMacro, existsMacro, expandGrid, expandRules, findNextRuleForExpansion, finiteRulesOfG, newPT, nonTerminalsOfG, pastePart, preBNF, printPT, smallestRules, variableNamesBNF, variableNamesLHS
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.0.0.0
    record
    2024-02-05
  • R
    R 4.3.0 released · 2023-04-21

Package metadata

First published
2024-02-05
Total releases
2 / 2 yrs
License
MIT + file LICENSE OSI
Download size
24 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("xegaBNF")
Geyer-Schulz, A. (2025). xegaBNF: Compile a Backus-Naur Form Specification into an R Grammar Object (Version 1.0.0.5) [Computer software]. https://doi.org/10.32614/CRAN.package.xegaBNF

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for xegaBNF version 1.0.0.5 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy