Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PoC][EEP-3] User-facing expression for defining target traits to observe #969

Closed
wants to merge 51 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
0a82120
Add draft expression
kitchoi Mar 30, 2020
a95ccb7
Add required data structures
kitchoi Mar 30, 2020
41a3984
Make recursive more general
kitchoi Mar 30, 2020
1a3e887
Add more docstring
kitchoi Mar 30, 2020
7cde3ab
Extend docstring
kitchoi Mar 30, 2020
1aa3c6b
Rearrange methods
kitchoi Mar 30, 2020
967e9ae
More docstring
kitchoi Mar 30, 2020
0e78f5c
Add filter method
kitchoi Mar 30, 2020
def4669
Add note
kitchoi Mar 30, 2020
fcac56a
Regroup methods
kitchoi Mar 30, 2020
5cc5535
Add interface for metadata
kitchoi Mar 30, 2020
55bbf4c
Add filter_ as a top-level function
kitchoi Mar 30, 2020
15d1a60
Add tests and try a different approach to constructing paths
kitchoi Apr 6, 2020
7d04918
Satisfy flakes
kitchoi Apr 6, 2020
999b1bd
Allow recursed path to be extended
kitchoi Apr 6, 2020
a8af039
Expand comment
kitchoi Apr 6, 2020
d9bd477
Rearrange functions
kitchoi Apr 6, 2020
59f232e
Add comment [skip ci]
kitchoi Apr 6, 2020
740fb6c
Resolve recursive when provided expression has more than one level [s…
kitchoi Apr 6, 2020
f86b186
Draft implementation for parsing and recursing
kitchoi Apr 14, 2020
a815e29
Reorganization of api functions
kitchoi Apr 14, 2020
f77a7b8
Reorganize info methods
kitchoi Apr 14, 2020
2fe6971
Make _FilteredTraitListener hashable and add repr
kitchoi Apr 14, 2020
08995b1
Add missing docstring
kitchoi Apr 14, 2020
bb782da
Add more missing docstring
kitchoi Apr 14, 2020
4305026
Rename loops -> cycles
kitchoi Apr 14, 2020
20cecd2
Expand docstring for the new structure in ListenerPath
kitchoi Apr 14, 2020
f9a29fd
Unnecessary change to tests
kitchoi Apr 14, 2020
249a872
Fix mutation to last_cnodes
kitchoi Apr 14, 2020
401f942
An optimization that leads to an error in the string parsing; add tes…
kitchoi Apr 14, 2020
ea409b7
Flake8
kitchoi Apr 14, 2020
a7c92b0
Add a few more comments
kitchoi Apr 14, 2020
86c07de
Revert a change so that the text parsing gives the right thing
kitchoi Apr 14, 2020
3fffded
Implement metadata in Expression so we can use it in the parser
kitchoi Apr 16, 2020
f3a07ca
Remove redundant hack on ListenerPath
kitchoi Apr 16, 2020
f2ed01e
Use lark for parsing
kitchoi Apr 16, 2020
f04377a
Add documentation
kitchoi Apr 16, 2020
484a8f5
Use named variable in token
kitchoi Apr 16, 2020
c45f7fa
Introduce a standalone parser
kitchoi Apr 16, 2020
0a30c14
Demonstrate the impact of cycles on deepcopy and pickle
kitchoi Apr 16, 2020
57f7da6
Get rid of some ugly if branches...
kitchoi Apr 16, 2020
8a60fb6
Move join_ down to go with other top-level functions
kitchoi Apr 16, 2020
ee6a376
Remove support for recursion
kitchoi Apr 16, 2020
ddbf389
Revert "Remove support for recursion"
kitchoi Apr 16, 2020
fb0aad4
Small simplification
kitchoi Apr 16, 2020
be7a048
Remove items on Expression for it is otherwise replaceable
kitchoi Apr 17, 2020
a76914d
Fix grammar in mini-language
kitchoi Apr 17, 2020
bb1d87b
Expand description for _SeriesExpression and _ParallelExpression
kitchoi Apr 17, 2020
f7d802d
Fix docstring copy-pasta
kitchoi Apr 17, 2020
58bb209
Rename t -> trait
kitchoi Apr 17, 2020
b8991fb
Update docstring after renaming shorthand to trait
kitchoi Apr 17, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added poc/__init__.py
Empty file.
13 changes: 13 additions & 0 deletions poc/api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


from poc.expressions import ( # noqa: F401
join_,
metadata,
trait,
list_items,
dict_items,
set_items,
recursive,
)

from poc.parsing import parse # noqa: F401
Loading