Grammar Reference > Create and Edit Grammar Files > Compile Grammars

Compile Grammars
After a grammar is written, compile the XML file into an ECR file using the Eduction command-line tool edktool. XML files are easy for people to read, but inefficient for computers to process. edktool transforms the XML file into an ECR file that is efficient for Eduction to use directly. An example of the edktool compile command is:
edktool c mygrammar.xml
This command produces the output file mygrammar.ecr.