A Grammar without Class Notation
Applied by Dennis J. Darland
June 15, 2007
See
http://smlweb.cpsc.ucalgary.ca/start.html
I’ve made my grammar acceptable to it.
But you will have to copy & paste it.
This is a context free grammar that I think would be of Principia Mathematica.
There are no abbreviations (class notation) used.
S -> A .
S -> A eq A.
S -> A equ A.
S -> A and A.
S -> not A.
A -> F ( V ).
A -> P excl x.
A -> F ( P excl z ).
S -> ( ex V ) F V.
S -> ( ex F ) F V.
S -> ( ex P ) P excl V.
A -> ( all F ) F V.
A -> ( all V ) P excl V.
A -> ( all V ) F V.
F -> f.
F -> g.
P -> p.
P -> q.
V -> x.
V -> y.
Back to Top http://dennisdarland.com/philosophy/index.html
|
Some sentences generated by this
grammar: { |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
nonterminal |
first set |
follow set |
nullable |
endable |
S |
|
|
no |
yes |
F(3 |
|
|
no |
yes |
FA |
|
|
yes |
yes |
F( |
|
|
no |
yes |
Fex |
|
|
no |
yes |
A |
|
|
no |
yes |
FF |
|
|
no |
yes |
F(2 |
|
|
no |
yes |
F(1 |
|
|
no |
yes |
Fall |
|
|
no |
yes |
FV |
|
|
no |
yes |
F) |
|
|
no |
yes |
F |
|
|
no |
no |
P |
|
|
no |
no |
V |
|
|
no |
yes |
The grammar is LL(1).