We have the assertion: copab $a class { < x , y > | ph } $.My question is how does one know that < x , y > refers to: cop $a class < A , B > $.
Hi Jim,
The grammar parser of metamath-knife might be used to that effect.
You can generate an image of the parsing tree with the following commands:
git clone https://github.com/metamath/metamath-knife.git
cd metamath-knife
cargo run --features dot -- -E <PATH TO SET.MM>
dot -Tsvg -o grammar.svg grammar.dot
I've uploaded a recent image built with these instructions here:
There, you can see the node parsing a "dju" syntax at node 531.
metamath-knife's -g and -p options will respectively build the grammar parse tree, and check the statement's grammar. If the first fails, the grammar might be ambiguous.
Currently the following "garden path" commands help
metamath-knife's parser with syntaxes such as copab and coprab :
BR,
_
Thierry
> Has anyone done any work on a tool to automatically check the metamath
> grammar for ambiguities?
--
You received this message because you are subscribed to the Google Groups "Metamath" group.
To unsubscribe from this group and stop receiving emails from it, send an email to metamath+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/metamath/3b59996d-72f6-4e7f-aad3-14c31b2daab5%40panix.com.