In a .mlg
, what's the difference between having multiple VERNAC COMMAND EXTEND
vs a single one? And what's the purpose of the name after EXTEND
?
VERNAC COMMAND EXTEND ...
| [ "FOO" ] -> { ... }
| [ "BAR" ] -> { ... }
END
(* vs *)
VERNAC COMMAND EXTEND ...
| [ "FOO" ] -> { ... }
END
VERNAC COMMAND EXTEND ...
| [ "BAR" ] -> { ... }
END
This changes the factorization rules of the parsing engine
If your command are discriminated by their first entry it will be equivalent
(there is more factorization going on with the first variant)
what about the name?
Last updated: Oct 13 2024 at 01:02 UTC