# Compile Grammars

You can use edktool to compile an XML file into an ECR file.

The edktool `c` (compile) command compiles a specified XML grammar into an ECR grammar file. For example:

    edktool c mygrammar.xml

This command produces the output file `mygrammar.ecr`.

For more information about the compile command, see Compile.

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

_FT_HTML5_bannerTitle.htm