Skip to content
New issue

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

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

Already on GitHub? # to your account

Python list initializers & equal initializer syntax #544

Closed
wants to merge 81 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
5d1be6e
Support list literals in LF syntax
oowekyala Sep 26, 2021
328285a
turn [] token into two separate tokens
oowekyala Sep 26, 2021
419cc0d
Update python generator
oowekyala Sep 26, 2021
32e3385
Fix python test
oowekyala Sep 26, 2021
c92da0f
Merge branch 'master' into list-init-syntax
oowekyala Oct 4, 2021
0fa8c20
Update some test code
oowekyala Oct 4, 2021
7784b3a
Rename TuplePrint -> ArrayAsType
oowekyala Oct 4, 2021
f08bd72
Forbid writing [,] as list literal
oowekyala Oct 4, 2021
abfb605
Merge branch 'master' into list-init-syntax
oowekyala Oct 14, 2021
adc20a5
Refactor to use a new Initializer production
oowekyala Oct 14, 2021
599627c
Add tests
oowekyala Oct 14, 2021
03fcc57
Fix grammar
oowekyala Oct 14, 2021
ec1d7d8
Add tests
oowekyala Oct 14, 2021
9a8b6e7
Remove peelParens
oowekyala Oct 14, 2021
a8cf467
Fix checking of types
oowekyala Oct 14, 2021
48040d3
Fix C++ param initializer
oowekyala Oct 14, 2021
451e928
Fix C tests
oowekyala Oct 14, 2021
43fe613
Fix TS tests
oowekyala Oct 14, 2021
4bb0a66
Enrich c++ initializer test
oowekyala Oct 14, 2021
f500a34
Fix python empty lists
oowekyala Oct 14, 2021
57585df
Fix typo
oowekyala Oct 15, 2021
9c0697a
Merge branch 'master' into list-init-syntax
oowekyala Oct 15, 2021
30bd55a
1 class support for arithmetic exprs in more contexts
oowekyala Oct 15, 2021
1f78382
Test type inference with eq assignment
oowekyala Oct 15, 2021
6cb60fe
Remove offset checks
oowekyala Oct 15, 2021
0434933
Add common test for expressions
oowekyala Oct 15, 2021
6c0f65f
Move test
oowekyala Oct 15, 2021
8a3e49a
Apply suggestions from code review
lhstrh Oct 19, 2021
f4f3d4d
Merge branch 'master' into list-init-syntax
oowekyala Oct 20, 2021
f1924ad
Fix TargetTypes
oowekyala Oct 20, 2021
1605bec
Fix TargetTypes w/ arithmetic
oowekyala Oct 20, 2021
84d92a9
Simplify C++ generator
oowekyala Oct 20, 2021
0b5f021
Fix cpp state initializers
oowekyala Oct 21, 2021
c2f7490
Really fix C++
oowekyala Oct 22, 2021
b5bcd3d
Cleanups
oowekyala Oct 22, 2021
2cff9ea
Merge branch 'master' into list-init-syntax
oowekyala Oct 25, 2021
b257d1c
Merge branch 'master' into list-init-syntax
oowekyala Oct 27, 2021
b701c42
Fix merge
oowekyala Oct 27, 2021
b2dde5c
Merge branch 'master' into list-init-syntax
oowekyala Nov 7, 2021
6252667
Add support for array initializer literals in C
oowekyala Nov 7, 2021
640a048
Refactor GeneratorBase
oowekyala Nov 7, 2021
08ed643
More cleanups for TS
oowekyala Nov 7, 2021
8ebc6e6
Cleanup TS further
oowekyala Nov 7, 2021
ff2e42e
Make all generators use TargetTypes default methods
oowekyala Nov 7, 2021
bc08e83
Fix C++ parameters
oowekyala Nov 7, 2021
b19695d
Fix validation of state vars
oowekyala Nov 7, 2021
e2b009a
Fix validation tests
oowekyala Nov 7, 2021
30a0028
Fix TS state initializers
oowekyala Nov 7, 2021
39cbe2d
Fix TS ctor generation
oowekyala Nov 7, 2021
8348a1b
Remove dead code
oowekyala Nov 7, 2021
27b94cb
Fix C++ initializers
oowekyala Nov 7, 2021
2924bf8
Fix Python tuples
oowekyala Nov 7, 2021
f2207db
Support missing initializer in C
oowekyala Nov 7, 2021
ed3fde9
Convert some stuff from AstUtils to java
oowekyala Nov 8, 2021
006ec71
Fix C++ tests
oowekyala Nov 8, 2021
7093364
Missing ctor in typescript test
oowekyala Nov 8, 2021
4213044
Fix TS tests
oowekyala Nov 8, 2021
b1cd66a
Guard against null time values
oowekyala Nov 8, 2021
e268913
Hopefully fix C++ for good
oowekyala Nov 8, 2021
0ad105b
Merge branch 'allow-after-0' into list-init-syntax
oowekyala Dec 7, 2021
ce4a7ad
Merge branch 'master' into list-init-syntax
oowekyala Jan 23, 2022
35729b8
Fix some conflicts
oowekyala Jan 23, 2022
5d32616
Merge branch 'master' into list-init-syntax
oowekyala Jan 29, 2022
f02fa39
Fix conflicts...
oowekyala Jan 29, 2022
f073ec6
Fix conflicts...
oowekyala Jan 29, 2022
bfb524b
Fix conflicts...
oowekyala Jan 29, 2022
8043724
Fix conflicts...
oowekyala Jan 29, 2022
c618d57
Fix conflicts...
oowekyala Jan 29, 2022
01d3453
Resolved conflicts with master. Special attention paid to conflict wi…
lhstrh Feb 4, 2022
5dd07de
Update kotlin version
oowekyala Feb 5, 2022
554ec24
Merge branch 'update-kotlin-version' into list-init-syntax
oowekyala Feb 5, 2022
a675fbd
Fix validator tests
oowekyala Feb 5, 2022
30b7157
Fix some other tests
oowekyala Feb 5, 2022
5b93e15
Try to fix bugs in CGenerator
oowekyala Feb 5, 2022
3c195d5
Update reactor-c to master version
oowekyala Feb 6, 2022
14fe4c0
Fix TS delay tests
oowekyala Feb 6, 2022
8aa7ab9
Fix python errors
oowekyala Feb 6, 2022
7e7f215
Revert "Update kotlin version"
oowekyala Feb 8, 2022
fc26561
Merge remote-tracking branch 'origin/master' into list-init-syntax
oowekyala Feb 21, 2022
a4b7fe8
fix merge...
oowekyala Feb 22, 2022
19de993
Fix more conflicts - compiles
oowekyala Feb 22, 2022
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
6 changes: 3 additions & 3 deletions test/Python/src/ArrayAsParameter.lf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Source has an array as a parameter, the elements of which it passes
// to Print.
target Python;
reactor Source(sequence(0, 1, 2)) {
reactor Source(sequence([0, 1, 2])) {
output out;
state count(0);
logical action next;
Expand Down Expand Up @@ -31,7 +31,7 @@ reactor Print {
=}
}
main reactor ArrayAsParameter {
s = new Source(sequence = (1, 2, 3, 4));
s = new Source(sequence = [1, 2, 3, 4]);
p = new Print();
s.out -> p._in;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Source produces a statically allocated array, which it passes
// to Print. The destination references the array directly.
// Source produces a tuple, which it passes to Print.
oowekyala marked this conversation as resolved.
Show resolved Hide resolved
// The destination references the array directly.
target Python;
reactor Source {
output out;
Expand Down