# Compile Grammars

After you write a grammar, 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`.

For more information about `edktool`, see Compile and Test Grammars.

NOTE: Eduction version 12.7 and later compiles grammars to a compressed ECR format.

_FT_HTML5_bannerTitle.htm