Package: xegaBNF 1.0.0.5

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>) 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).

Authors:Andreas Geyer-Schulz [aut, cre]

xegaBNF_1.0.0.5.tar.gz
xegaBNF_1.0.0.5.zip(r-4.7)xegaBNF_1.0.0.5.zip(r-4.6)xegaBNF_1.0.0.5.zip(r-4.5)
xegaBNF_1.0.0.5.tgz(r-4.6-any)xegaBNF_1.0.0.5.tgz(r-4.5-any)
xegaBNF_1.0.0.5.tar.gz(r-4.7-any)xegaBNF_1.0.0.5.tar.gz(r-4.6-any)
xegaBNF_1.0.0.5.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
xegaBNF/json (API)
NEWS

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

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

On CRAN:

Conda:

3.38 score 4 packages 20 scripts 608 downloads 36 exports 0 dependencies

Last updated from:4ce78ef0a3. Checks:4 ERROR, 2 OK, 3 WARNING. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64ERROR124
source / vignettesOK146
linux-release-x86_64ERROR119
macos-release-arm64ERROR88
macos-oldrel-arm64ERROR85
windows-develWARNING90
windows-releaseWARNING53
windows-oldrelWARNING86
wasm-releaseOK74

Exports:allTerminalbindKvariablesbooleanGrammarbooleanGrammarKcLcompileBNFcompileShortPTdataframePTderivedirectRecursionevenMacroexistsMacroexpandGridexpandRulesfindNextRuleForExpansionfiniteRulesOfGid2symbisNonTerminalisTerminalmakeProductionTablemakeRulemakeStartSymbolmakeSymbolTablenewBNFnewPTnonTerminalsOfGpastePartpreBNFprintPTreadBNFrulessmallestRulessymb2idvariableNamesBNFvariableNamesLHSwriteBNF

Dependencies: