Ajout de skip_sharp_bang

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3870 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Xavier Leroy 2001-10-09 14:55:58 +00:00
parent 5554351047
commit c771caa3df
2 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,7 @@
(* The lexical analyzer *)
val token: Lexing.lexbuf -> Parser.token
val skip_sharp_bang: Lexing.lexbuf -> unit
type error =
| Illegal_character of char

View File

@ -368,3 +368,8 @@ and string = parse
| _
{ store_string_char(Lexing.lexeme_char lexbuf 0);
string lexbuf }
and skip_sharp_bang = parse
| "#!" [^ '\n']* '\n' [^ '\n']* "\n!#\n"
| "#!" [^ '\n']* '\n'
| "" {}