diff options
author | 2018-02-28 09:59:44 +0100 | |
---|---|---|
committer | 2018-02-28 09:59:44 +0100 | |
commit | 374e105be93beb2e9353bedf5cdd700a26308ebd (patch) | |
tree | 5ffbb6fb23e3d418ed7d3eaec5360c7a69de9c1e /parsing/pcoq.ml | |
parent | aec08b873425f6cdae4e1434651b4e9a97d0ced0 (diff) | |
parent | d2293c3e1d51bdd2c25b203c655cc499e9bd5a91 (diff) |
Merge PR #6812: Rename release_lexer_state to the more descriptive get_lexer_state.
Diffstat (limited to 'parsing/pcoq.ml')
-rw-r--r-- | parsing/pcoq.ml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/parsing/pcoq.ml b/parsing/pcoq.ml index ddb26d771..7a51908d9 100644 --- a/parsing/pcoq.ml +++ b/parsing/pcoq.ml @@ -111,7 +111,7 @@ end with type 'a Entry.e = 'a Grammar.GMake(CLexer).Entry.e = struct let state = ref (CLexer.init_lexer_state file) in CLexer.set_lexer_state !state; let a = parsable c in - state := CLexer.release_lexer_state (); + state := CLexer.get_lexer_state (); (a,state) let action = Gramext.action @@ -121,7 +121,7 @@ end with type 'a Entry.e = 'a Grammar.GMake(CLexer).Entry.e = struct CLexer.set_lexer_state !state; try let c = Entry.parse e p in - state := CLexer.release_lexer_state (); + state := CLexer.get_lexer_state (); c with Ploc.Exc (loc,e) -> CLexer.drop_lexer_state (); @@ -133,7 +133,7 @@ end with type 'a Entry.e = 'a Grammar.GMake(CLexer).Entry.e = struct CLexer.set_lexer_state !state; try let a = f x in - state := CLexer.release_lexer_state (); + state := CLexer.get_lexer_state (); a with e -> CLexer.drop_lexer_state (); |