Syntax and Structure

Every document must strictly follow the syntax and structure of the scanner or otherwise the import process will fail.

Arbitrary content in the document which does not comply to the syntax and order will result in errors.

Syntax#

The syntax of mt-scanner is the set of rules that defines items such as "question", "answer", denote the correct answer of a question and so on.

Structure#

The structure defines the rules of order in the document which particular items should follow. For example:

  • Documents must start with a question or chapter definition
  • Question paragraph(s) must be immediately followed by a list of answer paragraphs
  • Answer paragraph(s) cannot be dropped randomly in a document, except after another answer paragraph or after a question