Package: xegaBNF Title: Compile a Backus-Naur Form Specification into an R Grammar Object Version: 1.0.0.5 Authors@R: person(given = "Andreas", family = "Geyer-Schulz", role = c("aut", "cre"), email = "Andreas.Geyer-Schulz@kit.edu", comment = c(ORCID = "0009-0000-5237-3579")) Description: 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 ) 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). License: MIT + file LICENSE URL: https://github.com/ageyerschulz/xegaBNF Encoding: UTF-8 RoxygenNote: 7.3.3 Suggests: testthat (>= 3.0.0) Repository: https://ageyerschulz.r-universe.dev Date/Publication: 2026-09-07 19:07:47 UTC RemoteUrl: https://github.com/ageyerschulz/xegabnf RemoteRef: HEAD RemoteSha: 6402e55fa8bc6fd1ca60849662e4effb98a3f7e8 NeedsCompilation: no Packaged: 2026-10-07 13:18:01 UTC; root Author: Andreas Geyer-Schulz [aut, cre] (ORCID: ) Maintainer: Andreas Geyer-Schulz