X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fwww%2Flambdadelta%2Fbin%2Fxhtbl%2FtextLexer.mll;h=4b06e4c402f61044f1f17a99c2713e41fa1e45c2;hb=57ae1762497a5f3ea75740e2908e04adb8642cc2;hp=0f61349c370398241db06b174427f847d347a51a;hpb=56bae915998d8058aaa00da663faf75499561ba4;p=helm.git diff --git a/helm/www/lambdadelta/bin/xhtbl/textLexer.mll b/helm/www/lambdadelta/bin/xhtbl/textLexer.mll index 0f61349c3..4b06e4c40 100644 --- a/helm/www/lambdadelta/bin/xhtbl/textLexer.mll +++ b/helm/www/lambdadelta/bin/xhtbl/textLexer.mll @@ -16,19 +16,27 @@ rule token = parse | QT { let s = str lexbuf in out s; TP.TEXT s } | NUM as s { out s; TP.NUM (int_of_string s) } + | "(*" { block lexbuf; token lexbuf } | "{" { out "{"; TP.OC } | "}" { out "}"; TP.CC } | "[" { out "["; TP.OB } | "]" { out "]"; TP.CB } | "*" { out "*"; TP.SR } + | "^" { out "^"; TP.CF } | "+" { out "+"; TP.PS } + | "(" { out "("; TP.OP } + | ")" { out ")"; TP.CP } + | "@" { out ")"; TP.AT } + | "space" { out "space"; TP.SPACE } | "name" { out "name"; TP.NAME } | "table" { out "table"; TP.TABLE } | "class" { out "class"; TP.CSS } - | "(*" { block lexbuf; token lexbuf } + | "uri" { out "uri"; TP.URI } + | "ext" { out "ext"; TP.EXT } | eof { TP.EOF } and str = parse | QT { "" } + | "\\\\" { "\\" ^ str lexbuf } | "\\\"" { "\"" ^ str lexbuf } | _ as c { S.make 1 c ^ str lexbuf } and block = parse