The bnf Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The bnf Reference Manual

This is the bnf Reference Manual, version 0.0.2, generated automatically by Declt version 3.0 "Montgomery Scott" on Fri Jun 26 09:52:18 2020 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

bnf 0.0.0

What is this?

BNF example generator.

Current lisp world

There is no such library.

Issues

It is hard to test parser.

Proposal

BNF provide such feature.

Usage

(bnf:examples (integer (sign? digit+ dot?))
              (sign? (or "" #\+ #\-))
	      (digit+ (or . #.(coerce "1234567890" 'list))
	              :max 3)
              (dot? (or "" #\.)))
=> ("7" "546." "+26" "+794." "-32" "-1.")

From developer

Product's goal

Already?

License

MIT

Developed with

SBCL

Tested with

Installation


Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 bnf

Author

SATO Shinichi

License

MIT

Description

BNF example generator. Useful for testing parser.

Version

0.0.2

Dependency

trestrul

Source

bnf.asd (file)

Component

bnf.lisp (file)


Next: , Previous: , Up: Top   [Contents][Index]

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.1 bnf.asd

Location

bnf.asd

Systems

bnf (system)


Previous: , Up: Lisp files   [Contents][Index]

3.1.2 bnf/bnf.lisp

Parent

bnf (system)

Location

bnf.lisp

Packages

bnf

Exported Definitions

examples (macro)

Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

4 Packages

Packages are listed by definition order.


Previous: , Up: Packages   [Contents][Index]

4.1 bnf

Source

bnf.lisp (file)

Use List

common-lisp

Exported Definitions

examples (macro)

Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Exported definitions


Previous: , Up: Exported definitions   [Contents][Index]

5.1.1 Macros

Macro: examples &body CLAUSE*
Package

bnf

Source

bnf.lisp (file)


Previous: , Up: Definitions   [Contents][Index]

5.2 Internal definitions


Previous: , Up: Internal definitions   [Contents][Index]

5.2.1 Functions

Function: bnf-clause CLAUSE
Package

bnf

Source

bnf.lisp (file)

Function: bnf-parse FORM
Package

bnf

Source

bnf.lisp (file)

Function: canonicalize ORP &rest ELT*
Package

bnf

Source

bnf.lisp (file)

Function: combinate FORMS
Package

bnf

Source

bnf.lisp (file)

Function: labels-parse FORM VAR
Package

bnf

Source

bnf.lisp (file)

Function: sample LIST
Package

bnf

Source

bnf.lisp (file)

Function: strcat LIST
Package

bnf

Source

bnf.lisp (file)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   B   F   L  
Index Entry  Section

B
bnf.asd: The bnf․asd file
bnf/bnf.lisp: The bnf/bnf․lisp file

F
File, Lisp, bnf.asd: The bnf․asd file
File, Lisp, bnf/bnf.lisp: The bnf/bnf․lisp file

L
Lisp File, bnf.asd: The bnf․asd file
Lisp File, bnf/bnf.lisp: The bnf/bnf․lisp file

Jump to:   B   F   L  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   B   C   E   F   L   M   S  
Index Entry  Section

B
bnf-clause: Internal functions
bnf-parse: Internal functions

C
canonicalize: Internal functions
combinate: Internal functions

E
examples: Exported macros

F
Function, bnf-clause: Internal functions
Function, bnf-parse: Internal functions
Function, canonicalize: Internal functions
Function, combinate: Internal functions
Function, labels-parse: Internal functions
Function, sample: Internal functions
Function, strcat: Internal functions

L
labels-parse: Internal functions

M
Macro, examples: Exported macros

S
sample: Internal functions
strcat: Internal functions

Jump to:   B   C   E   F   L   M   S  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables


Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   B   P   S  
Index Entry  Section

B
bnf: The bnf system
bnf: The bnf package

P
Package, bnf: The bnf package

S
System, bnf: The bnf system

Jump to:   B   P   S