X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fwww%2Flambdadelta%2Fbin%2Fxhtbl%2FtextParser.mly;h=9072c2b23ddf96932583b797c8125945bf4f9c9a;hb=57ae1762497a5f3ea75740e2908e04adb8642cc2;hp=3dba122d04a9581cec3008d3c396245aced8a8f9;hpb=c0d87c3cdf879f61aa53e91f43580e9815ae7190;p=helm.git diff --git a/helm/www/lambdadelta/bin/xhtbl/textParser.mly b/helm/www/lambdadelta/bin/xhtbl/textParser.mly index 3dba122d0..9072c2b23 100644 --- a/helm/www/lambdadelta/bin/xhtbl/textParser.mly +++ b/helm/www/lambdadelta/bin/xhtbl/textParser.mly @@ -20,7 +20,7 @@ let mk_string_atom s rs = %token NUM %token TEXT -%token SPACE NAME TABLE CSS URI EXT SR OC CC OB CB PS OP CP AT EOF +%token SPACE NAME TABLE CSS URI EXT SR OC CC OB CB PS CF OP CP AT EOF %start script %type <(string * string) list * (string * Table.table * Table.css Attr.atoms * Table.uri Attr.atoms * Table.ext Attr.atoms) list> script @@ -45,8 +45,9 @@ text: ; texts: - | text { [$1] } - | text PS texts { $1 :: $3 } + | text { [$1] } + | text PS texts { $1 :: T.Plain " " :: $3 } + | text CF texts { $1 :: $3 } ; key: @@ -71,9 +72,9 @@ ext: ; table: - | css uri ext key { T.mk_key $4 $1 $2 $3 } - | css uri ext OC tables CC { T.mk_line false $5 $1 $2 $3 } - | css uri ext OB tables CB { T.mk_line true $5 $1 $2 $3 } + | css uri ext name key { T.mk_key $5 $1 $2 $3 $4 } + | css uri ext OC tables CC { T.mk_line false $5 $1 $2 $3 "" } + | css uri ext OB tables CB { T.mk_line true $5 $1 $2 $3 "" } ; tables: