aboutsummaryrefslogtreecommitdiff
path: root/vernac/pvernac.ml
diff options
context:
space:
mode:
authorHugo Herbelin2021-04-05 16:40:10 +0200
committerHugo Herbelin2021-04-23 15:34:29 +0200
commite07efb3798c7c6ec54aac9093ab50fddfc6c6a5b (patch)
tree3459872faa79c263577f55ddbd1a8d30d497f8a7 /vernac/pvernac.ml
parent52a71bf2b1260ce8f8622878c82caec54d298808 (diff)
Relying on the abstract notion of streams with location for parsing.
We also get rid of ploc.ml, now useless, relying a priori on more robust code in lStream.ml for location reporting (see e.g. parse_parsable in grammar.ml).
Diffstat (limited to 'vernac/pvernac.ml')
-rw-r--r--vernac/pvernac.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/vernac/pvernac.ml b/vernac/pvernac.ml
index a7de34dd09..bf0874c8e5 100644
--- a/vernac/pvernac.ml
+++ b/vernac/pvernac.ml
@@ -66,8 +66,8 @@ module Vernac_ =
| Some ename -> find_proof_mode ename
let command_entry =
- Pcoq.Entry.of_parser "command_entry"
- (fun _ strm -> Pcoq.Entry.parse_token_stream (select_tactic_entry !command_entry_ref) strm)
+ Pcoq.Entry.(of_parser "command_entry"
+ { parser_fun = (fun strm -> Pcoq.Entry.parse_token_stream (select_tactic_entry !command_entry_ref) strm) })
end