package pyre-ast

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

pyre-ast-0.1.4.tbz
sha256=9b4470ff07a2468ead5541649a86c93ccca7e6b714d6137b129ba0c88bb3e070
sha512=d57531098f0770856e20b1e3fe98af169287fb5242614e3072c02c209071c4be61ab4e5d2473ad47eeb6759dd7a46928254fec7d26b64b5de12e7680213dd462

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.