package pyre-ast

  1. Overview
  2. Docs
Full-fidelity Python parser in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

pyre-ast-0.1.2.tbz
sha256=f4d334053d6909a9ecc8c8df4817c49058ab1e40ac62ce104c7c8e63d29d99a2
sha512=77ec951bb9f7dd280f95afd5e2773910e09c092366eeb55af33a39fd68060c7d79650d555285f6adf686e1dc984a88a230c83c6d4d89293f9e761060d7fa5409

doc/src/pyre-ast/parser.ml.html

Source file parser.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module Context = TaglessFinal.Parsing.Context
module Error = TaglessFinal.Parsing.ParseError

let with_context = TaglessFinal.Parsing.with_context

module TaglessFinal = struct
  let parse_module = TaglessFinal.Parsing.parse_module

  let parse_expression = TaglessFinal.Parsing.parse_expression

  let parse_function_type = TaglessFinal.Parsing.parse_function_type
end

module Concrete = struct
  let spec = Concrete.make_tagless_final ()

  let parse_module ~context = TaglessFinal.parse_module ~context ~spec

  let parse_expression ~context = TaglessFinal.parse_expression ~context ~spec

  let parse_function_type ~context = TaglessFinal.parse_function_type ~context ~spec
end
OCaml

Innovation. Community. Security.