]> matita.cs.unibo.it Git - helm.git/blob - helm/DEVEL/pxp/pxp/lexers/pxp_lex_name_string.src
Initial revision
[helm.git] / helm / DEVEL / pxp / pxp / lexers / pxp_lex_name_string.src
1 (* $Id$
2  * ----------------------------------------------------------------------
3  *
4  *)
5
6
7 {
8   open Pxp_types
9   open Pxp_lexer_types
10
11 #insert open_pxp_lex_aux_*.src
12 #insert pxp_lex_aux.src
13
14 }
15
16 #insert pxp_lex_defs_*.def
17
18 rule scan_name_string = parse
19     name
20       { Name (Lexing.lexeme lexbuf) }
21   | ws+
22       { Ignore }
23   | nmtoken
24       { Nametoken (Lexing.lexeme lexbuf) }
25   | eof
26       { Eof }
27   | character
28       { CharData (Lexing.lexeme lexbuf) }
29   | _
30       { raise Netconversion.Malformed_code }
31
32
33 and scan_ignored_section = parse
34   | "<!["
35       { tok_Conditional_begin__Ignored }
36   | "]]>"
37       { tok_Conditional_end__Ignored }
38   | "<!--" comment_string "-->"
39       { tok_Ignore__Ignored }
40   | '"' character_except_quot* '"'
41       { tok_Ignore__Ignored }
42   | "'" character_except_apos* "'"
43       { tok_Ignore__Ignored }
44   | eof
45       { tok_Eof__Ignored }
46   | character_except_special+
47       { tok_Ignore__Ignored }
48   | "<"
49       { tok_Ignore__Ignored }
50   | "]"
51       { tok_Ignore__Ignored }
52   | "'"
53       { tok_Ignore__Ignored }
54   | "\""
55       { tok_Ignore__Ignored }
56   | _
57       { raise Netconversion.Malformed_code }
58
59
60 (* ======================================================================
61  * History:
62  * 
63  * $Log$
64  * Revision 1.1  2000/11/17 09:57:32  lpadovan
65  * Initial revision
66  *
67  * Revision 1.3  2000/08/14 22:18:34  gerd
68  *      Bad_character_stream -> Netconversion.Malformed_code
69  *
70  * Revision 1.2  2000/05/29 23:53:12  gerd
71  *      Updated because Markup_* modules have been renamed to Pxp_*.
72  *
73  * Revision 1.1  2000/05/20 20:33:25  gerd
74  *      Initial revision.
75  *
76  * 
77  *)