xegaBNF

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

CRAN Package

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, html-edition) The grammar compiler is based on the APL2 implementation in Geyer-Schulz, Andreas (1997, ISBN:978-3-7908-0830-X).


Documentation


Team


Insights

Last 30 days

This package has been downloaded 581 times in the last 30 days. Not bad! The download count is somewhere between 'small-town buzz' and 'moderate academic conference'. The following heatmap shows the distribution of downloads per day. Yesterday, it was downloaded 10 times.

Sun
Mon
Tue
Wed
Thu
Fri
Sat
0 downloadsMar 23, 2025
0 downloadsMar 24, 2025
3 downloadsMar 25, 2025
9 downloadsMar 26, 2025
6 downloadsMar 27, 2025
49 downloadsMar 28, 2025
9 downloadsMar 29, 2025
2 downloadsMar 30, 2025
2 downloadsMar 31, 2025
51 downloadsApr 1, 2025
4 downloadsApr 2, 2025
1 downloadsApr 3, 2025
2 downloadsApr 4, 2025
51 downloadsApr 5, 2025
4 downloadsApr 6, 2025
4 downloadsApr 7, 2025
3 downloadsApr 8, 2025
52 downloadsApr 9, 2025
4 downloadsApr 10, 2025
11 downloadsApr 11, 2025
59 downloadsApr 12, 2025
5 downloadsApr 13, 2025
7 downloadsApr 14, 2025
58 downloadsApr 15, 2025
10 downloadsApr 16, 2025
11 downloadsApr 17, 2025
62 downloadsApr 18, 2025
21 downloadsApr 19, 2025
6 downloadsApr 20, 2025
58 downloadsApr 21, 2025
7 downloadsApr 22, 2025
10 downloadsApr 23, 2025
0 downloadsApr 24, 2025
0 downloadsApr 25, 2025
0 downloadsApr 26, 2025
1
62

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Last 365 days

This package has been downloaded 6,915 times in the last 365 days. That's a lot of interest! Someone might even write a blog post about it. The day with the most downloads was Jul 23, 2024 with 115 downloads.

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Data provided by CRAN


Binaries


Dependencies

  • Suggests1 package
  • Reverse Imports4 packages