{This is a BNF specifying the syntax of the RUNOFF commands that I used in writing my logic book. It was used to write a program to convert RUNOFF files to (pre)TEX files } {Grammar specifying the format of a RUNOFF text} {Listing of the terminals in the order used by the lexical analyser} texchar '. \& ^B eoln blank ^& ` @ singlechar '! ? ; string , greek logical settheoretic page b br fill nofill spacing sp tp nj ap nm nnm lo ps literal figure lm s cc c chapter end # -> . -> | | . -> | | | | | | | | . -> eoln . -> <^&> \& . -> <^B> ^B . -> '. | blank | blank | e | . -> e . -> e . <^&> -> ^& . <^B> -> ^B . -> e . -> e . <`> -> ` . <@> -> @ . -> | . -> <`> | '! ? | '! '! ? ? | '! ? | '! '! ? . -> ? . -> <@> | ? '! | ? ? '! '! | ? '! | ? ? '! . -> '! . -> | | | | | | . -> | | . -> | | . -> | | . -> | . -> | | . -> | . -> c . -> | string | string , string | .
-> . -> ; . -> singlechar | texchar | . -> greek | logical | settheoretic | , | ; . -> blank | . -> blank | '. . -> page | b | br | fill | nofill | spacing | sp | tp | nj | ap | nm | nnm | lo | ps | literal | figure | lm | s | cc | end . -> chapter . -> e . -> . -> | ; | blank . -> |
| . ->