|
|
@ -29,6 +29,9 @@ let id_special_char = ['-' '$' '.' '_']
|
|
|
|
let id_char = lower | upper | id_special_char
|
|
|
|
let id_char = lower | upper | id_special_char
|
|
|
|
let id = id_char (id_char | digit)*
|
|
|
|
let id = id_char (id_char | digit)*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(* definition of attribute group - not used for now *)
|
|
|
|
|
|
|
|
let attribute_junk = "attributes" [^ '\n']*
|
|
|
|
|
|
|
|
|
|
|
|
rule token = parse
|
|
|
|
rule token = parse
|
|
|
|
| space | comment { token lexbuf }
|
|
|
|
| space | comment { token lexbuf }
|
|
|
|
| newline { token lexbuf }
|
|
|
|
| newline { token lexbuf }
|
|
|
@ -158,4 +161,8 @@ rule token = parse
|
|
|
|
| '%' (nonneg_int as i) { NUMBERED_LOCAL (int_of_string i) }
|
|
|
|
| '%' (nonneg_int as i) { NUMBERED_LOCAL (int_of_string i) }
|
|
|
|
| id as str { IDENT str }
|
|
|
|
| id as str { IDENT str }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(* attribute groups *)
|
|
|
|
|
|
|
|
| '#' (nonneg_int as i) { ATTRIBUTE_GROUP (int_of_string i) }
|
|
|
|
|
|
|
|
| attribute_junk { token lexbuf }
|
|
|
|
|
|
|
|
|
|
|
|
| eof { EOF }
|
|
|
|
| eof { EOF }
|
|
|
|