package pyre-ast

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

pyre-ast-0.1.10.tbz
sha256=999bfd6a49e65b318ba091bdb7240312bb9c5f1322da291fa1684b66deb5d26b
sha512=646f1bd678127b4f0b5a3b74302d16404b46b3bb2e5562ab5fbcc03e420fa48e1a767e7e020833edc9c75624aa47baf4fa746f3769e8b481a6473c60a020882b

doc/pyre-ast/PyreAst/TaglessFinal/Comprehension/index.html

Module TaglessFinal.Comprehension

This module provides a type that represents Python comprehension structures.

Example: ... async for x, y in z if x > 0 if y < 0

In this case, target will be (x, y), iter will be z, ifs will be a list [x>0, y<0], and is_async will be true.

type ('expr, 'comprehension) t = target:'expr -> iter:'expr -> ifs:'expr list -> is_async:bool -> 'comprehension
OCaml

Innovation. Community. Security.