start adding Types for STL utilities

This commit is contained in:
Marcell Vazquez-Chanlatte 2017-01-03 10:12:00 -08:00
parent a5be0b17bb
commit 788e6ee58e
2 changed files with 32 additions and 16 deletions

12
stl/types.py Normal file
View file

@ -0,0 +1,12 @@
import typing
import stl.ast as ast
ML = typing.Union[ast.AtomicPred, ast.NaryOpSTL, ast.Neg]
SL = typing.Union[ast.LinEq, ML]
STL = typing.Union[SL, ast.ModalOp]
MTL = typing.Union[ML, ast.ModalOp]
PSTL = typing.NewType("PSTL", STL)
STL_Generator = typing.Generator[STL, None, STL]