Skip to content

Commit

Permalink
Improve compatibility with Type_conv >= 113.00
Browse files Browse the repository at this point in the history
Do this by renaming some of the syntax parser modules to be less generically named.
Bump to 1.4.0
  • Loading branch information
avsm committed Sep 24, 2015
1 parent e9544e7 commit ad02a1e
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.4.0 (trunk):
* Improve compatability with Type_conv >= 113.00 by renaming some of the
syntax parser modules to be less generically named.

1.3.0 (02-Aug-2015)
* Add `Css.of_string`, `Css.set_prop`, `Css.get_prop`, `Css.polygradient`.
`Css.gradient` (#74, by @chrismamo1)
Expand Down
2 changes: 1 addition & 1 deletion _vars
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
NAME=cow
VERSION=1.3.0
VERSION=1.4.0
LIB=cow
SYNTAX="pa_cow"
DEPS="dyntype.syntax dyntype ulex uri xmlm omd ezjsonm"
6 changes: 2 additions & 4 deletions cmd
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@ configure() {
${OCAMLFIND} query -r -a-format -predicates native ${DEPS} > _config/archives.native
${OCAMLFIND} query -r -a-format -predicates byte ${DEPS} > _config/archives.byte
# _config/pp has camlp4 flags for the library and binaries
${OCAMLFIND} query -r -predicates syntax,preprocessor -format '-I %d %A' ${DEPS} ${SYNTAX_DEPS} > _config/syntax.deps
# specially needed for syntax TODO merge with _vars
${OCAMLFIND} query -r -predicates byte -format '-I %d %A' str >> _config/syntax.deps
${OCAMLFIND} query -r -predicates byte -format '-I %d %A' xmlm >> _config/syntax.deps
${OCAMLFIND} query -r -predicates byte -format '-I %d %A' ezjsonm >> _config/syntax.deps
${OCAMLFIND} query -r -predicates byte -format '-I %d %A' compiler-libs.common str xmlm ezjsonm >> _config/syntax.deps
${OCAMLFIND} query -r -predicates syntax,preprocessor -format '-I %d %A' ${DEPS} ${SYNTAX_DEPS} >> _config/syntax.deps
# _config/syntax has flags to build p4 extensions in syntax/
${OCAMLFIND} query -r -predicates syntax,preprocessor -format '-I %d' camlp4.quotations.o camlp4.lib camlp4.extend > _config/syntax.build
${OCAMLFIND} query -r -predicates syntax,preprocessor -format '-I %d' camlp4.quotations.r camlp4.lib camlp4.extend ${SYNTAX_DEPS} > _config/syntax.build.r
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion syntax/css/qLexer.mll
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*)

{
open Parser
open Css_parser

let debug = ref false

Expand Down
4 changes: 2 additions & 2 deletions syntax/css/quotations.ml
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,5 @@ let expand_str_item fn _loc _ s =

;;

Q.add "css" Q.DynAst.expr_tag (expand_expr Parser.main);
Q.add "css" Q.DynAst.str_item_tag (expand_str_item Parser.main)
Q.add "css" Q.DynAst.expr_tag (expand_expr Css_parser.main);
Q.add "css" Q.DynAst.str_item_tag (expand_str_item Css_parser.main)
2 changes: 1 addition & 1 deletion syntax/pa_css.mlpack
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
css/Options
css/Qast
css/Css_location
css/Parser
css/Css_parser
css/QLexer
css/Printer
css/Quotations
2 changes: 1 addition & 1 deletion syntax/pa_xml.mlpack
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
xml/Options
xml/Qast
xml/Xml_location
xml/Parser
xml/Xml_parser
xml/Printer
xml/Xml
xml/Quotation
Expand Down
2 changes: 1 addition & 1 deletion syntax/xml/quotation.ml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ let destruct_aq s =
"", s

let parse_quot_string entity _loc s =
let ast = Parser.parse ?enc:(Parser.get_encoding ()) ?entity _loc s in
let ast = Xml_parser.parse ?enc:(Xml_parser.get_encoding ()) ?entity _loc s in
let meta_ast = Qast.meta_t _loc ast in
meta_ast

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit ad02a1e

Please sign in to comment.