Liking cljdoc? Tell your friends :D

active.lawrence.grammar


after-lastclj

(after-last thing coll)
source

compute-firstclj

(compute-first grammar k)
source

compute-first-1clj

(compute-first-1 grammar)
source

compute-followclj

(compute-follow grammar k)
source

compute-follow-1clj

(compute-follow-1 grammar)
source

compute-nonterminal-nullable?clj

(compute-nonterminal-nullable? grammar)
source

define-grammarcljmacro

(define-grammar ?grammar-name
                ?terminals
                ?start-symbol
                ?rules
                &
                [?terminal-attribution])
source

Grammarclj

source

grammar-errorclj

(grammar-error Grammar)

Access error field from a Grammar record. See active.lawrence.grammar/really-make-grammar.

Access `error` field from a [[Grammar]] record. See [[active.lawrence.grammar/really-make-grammar]].
sourceraw docstring

grammar-fetch-propertyclj

(grammar-fetch-property grammar name proc)
source

grammar-for-each-productionclj

(grammar-for-each-production proc grammar)
source

grammar-nameclj

(grammar-name Grammar)

Access name field from a Grammar record. See active.lawrence.grammar/really-make-grammar.

Access `name` field from a [[Grammar]] record. See [[active.lawrence.grammar/really-make-grammar]].
sourceraw docstring

grammar-name->symbolclj

(grammar-name->symbol symbol grammar)
source

grammar-name->symbol-procedureclj

(grammar-name->symbol-procedure Grammar)

Access name->symbol-procedure field from a Grammar record. See active.lawrence.grammar/really-make-grammar.

Access `name->symbol-procedure` field from a [[Grammar]] record. See [[active.lawrence.grammar/really-make-grammar]].
sourceraw docstring

grammar-nonterminal-offsetclj

(grammar-nonterminal-offset grammar)
source

grammar-nonterminalsclj

(grammar-nonterminals Grammar)

Access nonterminals field from a Grammar record. See active.lawrence.grammar/really-make-grammar.

Access `nonterminals` field from a [[Grammar]] record. See [[active.lawrence.grammar/really-make-grammar]].
sourceraw docstring

grammar-number-of-nonterminalsclj

(grammar-number-of-nonterminals grammar)
source

grammar-number-of-symbolsclj

(grammar-number-of-symbols Grammar)

Access number-of-symbols field from a Grammar record. See active.lawrence.grammar/really-make-grammar.

Access `number-of-symbols` field from a [[Grammar]] record. See [[active.lawrence.grammar/really-make-grammar]].
sourceraw docstring

grammar-number-of-terminalsclj

(grammar-number-of-terminals Grammar)

Access number-of-terminals field from a Grammar record. See active.lawrence.grammar/really-make-grammar.

Access `number-of-terminals` field from a [[Grammar]] record. See [[active.lawrence.grammar/really-make-grammar]].
sourceraw docstring

grammar-productions-by-lhsclj

(grammar-productions-by-lhs Grammar)

Access productions-by-lhs field from a Grammar record. See active.lawrence.grammar/really-make-grammar.

Access `productions-by-lhs` field from a [[Grammar]] record. See [[active.lawrence.grammar/really-make-grammar]].
sourceraw docstring

grammar-productions-with-lhsclj

(grammar-productions-with-lhs lhs grammar)
source

grammar-propertiesclj

(grammar-properties Grammar)

Access properties field from a Grammar record. See active.lawrence.grammar/really-make-grammar.

Access `properties` field from a [[Grammar]] record. See [[active.lawrence.grammar/really-make-grammar]].
sourceraw docstring

grammar-startclj

(grammar-start Grammar)

Access start field from a Grammar record. See active.lawrence.grammar/really-make-grammar.

Access `start` field from a [[Grammar]] record. See [[active.lawrence.grammar/really-make-grammar]].
sourceraw docstring

grammar-start-productionclj

(grammar-start-production grammar)
source

grammar-symbol->nameclj

(grammar-symbol->name symbol grammar)
source

grammar-symbol->name-procedureclj

(grammar-symbol->name-procedure Grammar)

Access symbol->name-procedure field from a Grammar record. See active.lawrence.grammar/really-make-grammar.

Access `symbol->name-procedure` field from a [[Grammar]] record. See [[active.lawrence.grammar/really-make-grammar]].
sourceraw docstring

grammar-terminal-attributionclj

(grammar-terminal-attribution Grammar)

Access terminal-attribution field from a Grammar record. See active.lawrence.grammar/really-make-grammar.

Access `terminal-attribution` field from a [[Grammar]] record. See [[active.lawrence.grammar/really-make-grammar]].
sourceraw docstring

grammar-terminalsclj

(grammar-terminals Grammar)

Access terminals field from a Grammar record. See active.lawrence.grammar/really-make-grammar.

Access `terminals` field from a [[Grammar]] record. See [[active.lawrence.grammar/really-make-grammar]].
sourceraw docstring

grammar?clj

(grammar? thing)

Is object a Grammar record? See active.lawrence.grammar/really-make-grammar.

Is object a `Grammar` record? See [[active.lawrence.grammar/really-make-grammar]].
sourceraw docstring

initial-first-mapclj

(initial-first-map grammar)
source

initial-follow-mapclj

(initial-follow-map grammar)
source

make-grammarclj

(make-grammar name
              nonterminals
              terminals
              error
              start
              productions-by-lhs
              symbol->name-procedure
              name->symbol-procedure
              terminal-attribution)
source

make-productionclj

(make-production readable lhs rhs attribution)

Construct a Production record.

readable: access via active.lawrence.grammar/production-readable lhs: access via active.lawrence.grammar/production-lhs rhs: access via active.lawrence.grammar/production-rhs attribution: access via active.lawrence.grammar/production-attribution

Construct a `Production` record.

`readable`: access via [[active.lawrence.grammar/production-readable]]
`lhs`: access via [[active.lawrence.grammar/production-lhs]]
`rhs`: access via [[active.lawrence.grammar/production-rhs]]
`attribution`: access via [[active.lawrence.grammar/production-attribution]]
sourceraw docstring

map-equal?clj

(map-equal? fm-1 fm-2)
source

memvclj

(memv thing coll)
source

next-first-mapclj

(next-first-map grammar k last-first-map)
source

next-follow-mapclj

(next-follow-map grammar k last-follow-map)
source

nonterminal-firstclj

(nonterminal-first nonterminal k grammar)
source

nonterminal-followclj

(nonterminal-follow nonterminal k grammar)
source

nonterminal-nullable?clj

(nonterminal-nullable? nonterminal grammar)
source

nonterminal?clj

(nonterminal? symbol grammar)
source

Productionclj

source

production-attributionclj

(production-attribution Production)

Access attribution field from a Production record. See active.lawrence.grammar/make-production.

Access `attribution` field from a [[Production]] record. See [[active.lawrence.grammar/make-production]].
sourceraw docstring

production-lhsclj

(production-lhs Production)

Access lhs field from a Production record. See active.lawrence.grammar/make-production.

Access `lhs` field from a [[Production]] record. See [[active.lawrence.grammar/make-production]].
sourceraw docstring

production-readableclj

(production-readable Production)

Access readable field from a Production record. See active.lawrence.grammar/make-production.

Access `readable` field from a [[Production]] record. See [[active.lawrence.grammar/make-production]].
sourceraw docstring

production-rhsclj

(production-rhs Production)

Access rhs field from a Production record. See active.lawrence.grammar/make-production.

Access `rhs` field from a [[Production]] record. See [[active.lawrence.grammar/make-production]].
sourceraw docstring

production?clj

(production? thing)

Is object a Production record? See active.lawrence.grammar/make-production.

Is object a `Production` record? See [[active.lawrence.grammar/make-production]].
sourceraw docstring

really-make-grammarclj

(really-make-grammar name
                     nonterminals
                     terminals
                     number-of-terminals
                     number-of-symbols
                     error
                     start
                     productions-by-lhs
                     symbol->name-procedure
                     name->symbol-procedure
                     terminal-attribution
                     properties)
Construct a `Grammar` record.

`name`: access via [[active.lawrence.grammar/grammar-name]]
`nonterminals`: access via [[active.lawrence.grammar/grammar-nonterminals]]
`terminals`: access via [[active.lawrence.grammar/grammar-terminals]]
`number-of-terminals`: access via [[active.lawrence.grammar/grammar-number-of-terminals]]
`number-of-symbols`: access via [[active.lawrence.grammar/grammar-number-of-symbols]]
`error`: access via [[active.lawrence.grammar/grammar-error]]
`start`: access via [[active.lawrence.grammar/grammar-start]]
`productions-by-lhs`: access via [[active.lawrence.grammar/grammar-productions-by-lhs]]
`symbol->name-procedure`: access via [[active.lawrence.grammar/grammar-symbol->name-procedure]]
`name->symbol-procedure`: access via [[active.lawrence.grammar/grammar-name->symbol-procedure]]
`terminal-attribution`: access via [[active.lawrence.grammar/grammar-terminal-attribution]]
`properties`: access via [[active.lawrence.grammar/grammar-properties]]
sourceraw docstring

restricted-appendclj

(restricted-append k l1 l2)
source

sequence-firstclj

(sequence-first sequence k grammar)
source

sequence-nullable?clj

(sequence-nullable? sequence grammar)
source

terminalcljmacro

(terminal ?grammar ?terminal)
source

terminal?clj

(terminal? symbol grammar)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close