src/Pure/General/markup.ML
changeset 24870 9d057ff8e74c
parent 24777 c1250851d701
child 25552 e4d465bc5b35
equal deleted inserted replaced
24869:bad2b2be1f24 24870:9d057ff8e74c
    41   val sortN: string val sort: T
    41   val sortN: string val sort: T
    42   val typN: string val typ: T
    42   val typN: string val typ: T
    43   val termN: string val term: T
    43   val termN: string val term: T
    44   val keywordN: string val keyword: string -> T
    44   val keywordN: string val keyword: string -> T
    45   val commandN: string val command: string -> T
    45   val commandN: string val command: string -> T
       
    46   val keyword_declN: string val keyword_decl: string -> T
       
    47   val command_declN: string val command_decl: string -> string -> T
    46   val stringN: string val string: T
    48   val stringN: string val string: T
    47   val altstringN: string val altstring: T
    49   val altstringN: string val altstring: T
    48   val verbatimN: string val verbatim: T
    50   val verbatimN: string val verbatim: T
    49   val commentN: string val comment: T
    51   val commentN: string val comment: T
    50   val controlN: string val control: T
    52   val controlN: string val control: T
   143 (* outer syntax *)
   145 (* outer syntax *)
   144 
   146 
   145 val (keywordN, keyword) = markup_string "keyword" nameN;
   147 val (keywordN, keyword) = markup_string "keyword" nameN;
   146 val (commandN, command) = markup_string "command" nameN;
   148 val (commandN, command) = markup_string "command" nameN;
   147 
   149 
       
   150 val (keyword_declN, keyword_decl) = markup_string "keyword_decl" nameN;
       
   151 
       
   152 val command_declN = "command_decl";
       
   153 fun command_decl name kind : T = (command_declN, [(nameN, name), (kindN, kind)]);
       
   154 
   148 val (stringN, string) = markup "string";
   155 val (stringN, string) = markup "string";
   149 val (altstringN, altstring) = markup "altstring";
   156 val (altstringN, altstring) = markup "altstring";
   150 val (verbatimN, verbatim) = markup "verbatim";
   157 val (verbatimN, verbatim) = markup "verbatim";
   151 val (commentN, comment) = markup "comment";
   158 val (commentN, comment) = markup "comment";
   152 val (controlN, control) = markup "control";
   159 val (controlN, control) = markup "control";