Package: xegaBNF 1.0.0.0

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

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

Authors:Andreas Geyer-Schulz [aut, cre]

xegaBNF_1.0.0.0.tar.gz
xegaBNF_1.0.0.0.zip(r-4.5)xegaBNF_1.0.0.0.zip(r-4.4)xegaBNF_1.0.0.0.zip(r-4.3)
xegaBNF_1.0.0.0.tgz(r-4.4-any)xegaBNF_1.0.0.0.tgz(r-4.3-any)
xegaBNF_1.0.0.0.tar.gz(r-4.5-noble)xegaBNF_1.0.0.0.tar.gz(r-4.4-noble)
xegaBNF_1.0.0.0.tgz(r-4.4-emscripten)xegaBNF_1.0.0.0.tgz(r-4.3-emscripten)
xegaBNF.pdf |xegaBNF.html
xegaBNF/json (API)

# Install 'xegaBNF' in R:
install.packages('xegaBNF', repos = c('https://ageyerschulz.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/ageyerschulz/xegabnf/issues

On CRAN:

3.08 score 4 packages 7 scripts 522 downloads 16 exports 0 dependencies

Last updated 10 months agofrom:b67b7af5cd. Checks:OK: 1 WARNING: 4 ERROR: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 01 2024
R-4.5-winWARNINGNov 01 2024
R-4.5-linuxWARNINGNov 01 2024
R-4.4-winWARNINGNov 01 2024
R-4.4-macERRORNov 01 2024
R-4.3-winWARNINGNov 01 2024
R-4.3-macERRORNov 01 2024

Exports:booleanGrammarcompileBNFcompileShortPTderiveid2symbisNonTerminalisTerminalmakeProductionTablemakeRulemakeStartSymbolmakeSymbolTablenewBNFreadBNFrulessymb2idwriteBNF

Dependencies: