|
Implemented syntax-enhancements for SELECT FIRST and let().
AST changes:
- Added ast.Let, which is like ast.Map, but for a single value.
stdlib changes:
- Added a 'first' function which returns the first value from an
IRepeated.
Syntax changes:
- let keyword in DottySQL: let(x = 10, y = 20) x + y # -> 30
- FIRST keyword in DottySQL: SELECT FIRST FROM ... WHERE ...
maps to first(SELECT * FROM ... WHERE ...).
BUG=
R=bgalehouse@google.com
Committed: f18cb1b63f1bcba166c23214c8cbaec9469bc93e
Total comments: 2
Total comments: 2
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+502 lines, -66 lines) |
Patch |
|
M |
efilter/ast.py
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
efilter/parsers/common/token_stream.py
|
View
|
|
1 chunk |
+10 lines, -1 line |
0 comments
|
Download
|
|
M |
efilter/parsers/dottysql/grammar.py
|
View
|
1
2
3
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
efilter/parsers/dottysql/parser.py
|
View
|
1
2
3
4
5
6
|
5 chunks |
+41 lines, -0 lines |
0 comments
|
Download
|
|
M |
efilter/protocols/associative.py
|
View
|
1
2
3
|
1 chunk |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
efilter/protocols/repeated.py
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
efilter/scope.py
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
efilter/stdlib/core.py
|
View
|
1
|
5 chunks |
+23 lines, -4 lines |
0 comments
|
Download
|
|
M |
efilter/transforms/asdottysql.py
|
View
|
1
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
M |
efilter/transforms/solve.py
|
View
|
1
2
3
4
|
23 chunks |
+197 lines, -52 lines |
0 comments
|
Download
|
|
M |
efilter_tests/testlib.py
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
efilter_tests/unit/api.py
|
View
|
1
2
3
|
2 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
|
M |
efilter_tests/unit/ext/lazy_repetition.py
|
View
|
1
2
3
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
|
M |
efilter_tests/unit/parsers/dottysql/parser.py
|
View
|
1
2
3
|
1 chunk |
+39 lines, -0 lines |
0 comments
|
Download
|
|
M |
efilter_tests/unit/protocols/repeated.py
|
View
|
1
2
3
4
5
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
|
M |
efilter_tests/unit/stdlib/core.py
|
View
|
1
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
|
M |
efilter_tests/unit/transforms/asdottysql.py
|
View
|
1
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
efilter_tests/unit/transforms/solve.py
|
View
|
1
2
3
4
5
6
|
2 chunks |
+92 lines, -0 lines |
0 comments
|
Download
|
Total messages: 11
|