package diffast-langs-python-parsing

  1. Overview
  2. Docs
inherit PB.sb_c
val mutable keep_going_flag : bool
val mutable ignore_comment_flag : bool
val mutable parser_main : unit -> Python_parsing.Ast.fileinput
val mutable scanner : < __get_token : Sedlexing.lexbuf -> Python_parsing.Tokens_.token Python_parsing.Token.PB.token ; _get_token : unit -> Python_parsing.Tokens_.token Python_parsing.Token.PB.token ; copy_shadow_queue : Python_parsing.Tokens_.token Python_parsing.Token.PB.token Diffast_misc.Xqueue.c ; current_indent : int ; discard_tokens : int -> unit ; enter_source : Langs_common.Source_base.c -> Sedlexing.lexbuf ; get_token : unit -> Python_parsing.Tokens_.token Python_parsing.Common.Parserlib_base.token ; has_error : unit -> bool ; init : unit ; peek_nth : int -> Python_parsing.Tokens_.token Python_parsing.Token.PB.token * Python_parsing.Tokens_.token ; peek_nth_rawtoken : int -> Python_parsing.Tokens_.token ; peek_up_to : (Python_parsing.Tokens_.token -> bool) -> (Python_parsing.Tokens_.token Python_parsing.Token.PB.token * Python_parsing.Tokens_.token) list * int ; prepend_rawtoken : Python_parsing.Tokens_.token -> Lexing.position -> Lexing.position -> unit ; prepend_shadow_queue : Python_parsing.Tokens_.token Python_parsing.Token.PB.token Diffast_misc.Xqueue.c -> unit ; prepend_token : Python_parsing.Tokens_.token Python_parsing.Token.PB.token -> unit ; reset_paren_level : unit -> unit ; reset_shadow_queue : unit ; scanner_env : < add_token : (Python_parsing.Tokens_.token * Lexing.position * Lexing.position) -> unit ; clear_newline_flag : unit -> unit ; in_paren : bool ; indent_length : string -> int ; indent_stack_iter : (int -> unit) -> unit ; indent_stack_len : int ; init : unit ; init_indent_stack : unit -> unit ; init_paren : unit -> unit ; init_token_queue : unit -> unit ; is_token_queue_empty : bool ; is_valid_indent : int -> bool ; last_indent : string ; last_indent_len : int ; longstringmode : Python_parsing__Ulexer.longstringmode ; newline_flag : bool ; paren_count : int ; paren_in : unit -> unit ; paren_out : unit -> unit ; pop_indent : unit -> int ; push_indent : int -> unit ; set_last_indent : string -> unit ; set_last_indent_len : int -> unit ; set_longstringmode : Python_parsing__Ulexer.longstringmode -> unit ; set_newline_flag : unit -> unit ; set_tab_size : int -> unit ; take_token : unit -> Python_parsing.Tokens_.token * Lexing.position * Lexing.position ; top_of_indent_stack : int > ; shadow_contents : string ; shadow_outline : string ; shadow_queue : Python_parsing.Tokens_.token Python_parsing.Token.PB.token Diffast_misc.Xqueue.c >
val mutable _parse : unit -> Python_parsing.Ast.c
method enable_with_stmt : unit
method disable_with_stmt : unit
val mutable rollback_record : (int * T.token) list
method _set_keep_going_flag : bool -> unit
method _set_ignore_comment_flag : bool -> unit
method parser_init : unit
method _parse : Python_parsing.Ast.c
method __parse : Python_parsing.Ast.c
OCaml

Innovation. Community. Security.