diff options
author | François Pottier <francois.pottier@inria.fr> | 2015-11-10 15:37:00 +0100 |
---|---|---|
committer | François Pottier <francois.pottier@inria.fr> | 2015-11-10 15:37:00 +0100 |
commit | 05a27df3423dfddd9e48abfba019cf26da5ce4a5 (patch) | |
tree | 805995be68cdb3df8feafa19fd4f955f1067e4d5 | |
parent | d7a9f71817086b438deced5bf3708dd7a4e8009e (diff) | |
download | compcert-kvx-05a27df3423dfddd9e48abfba019cf26da5ce4a5.tar.gz compcert-kvx-05a27df3423dfddd9e48abfba019cf26da5ce4a5.zip |
Change one line in [Lexer.mll] to obey API change in Menhir 20151110.
Update configure to require Menhir 20151110.
-rwxr-xr-x | configure | 2 | ||||
-rw-r--r-- | cparser/Lexer.mll | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -281,7 +281,7 @@ else ocaml_opt_comp=false fi -MENHIR_REQUIRED=20151023 +MENHIR_REQUIRED=20151110 echo "Testing Menhir... " | tr -d '\n' menhir_ver=`menhir --version 2>/dev/null | sed -n -e 's/^.*version \([0-9]*\).*$/\1/p'` case "$menhir_ver" in diff --git a/cparser/Lexer.mll b/cparser/Lexer.mll index 23d8ab8d..17c4528c 100644 --- a/cparser/Lexer.mll +++ b/cparser/Lexer.mll @@ -470,7 +470,7 @@ and singleline_comment = parse let lexbuf = Lexing.from_string text in lexbuf.lex_curr_p <- {lexbuf.lex_curr_p with pos_fname = filename; pos_lnum = 1}; let module I = Pre_parser.MenhirInterpreter in - let checkpoint = Pre_parser.Incremental.translation_unit_file() + let checkpoint = Pre_parser.Incremental.translation_unit_file lexbuf.lex_curr_p and supplier = I.lexer_lexbuf_to_supplier lexer lexbuf and succeed () = () and fail checkpoint = |