Commit eb896cf
Fpy loops (#246)
* start working on loops
* get expr attr
* Much more work on getting members of exprs
* All tests passing on new grammar!
* small bugfixes
* Variable array index and oob checks seem to work
* Fix bug in model
* Some attempt to get scope working...
* lil more fixes
* Some work on for loops
* Much more work on for and while loops, added assert stmt
* Stuck on a lil problem with variable scope
* Much more work on for loops, seems to be almost working
* little more work on loops
* some more work on loops
* Significant rework of files, get for and while loops mostly workinggits!
* Start working on check
* A little work on break/continue
* Break and continue working
* lil test
* Remove check
* Start working on casting
* start working on const folding
* Switch over to new codegen system, almost done
* Almost all tests passing
* Fix more break and continue issues, also add a sort of IR
* Add some more tests
* Update readme
* Get working with real fpyseq
* Okay actually get working
* Fix bug in lexer
* Fix use before declare in loop bounds
* Fix some warnings, spelling errors, other bugs
* sp
* fix annotations
* sp
* sp
* sp
* fix ut
* 3.9 fix:
* Work on bytecode spec
* cleanup and update for peek
* Switch to using peek
* format
* Speed up the compmiler a bunch
* A little work on range type
* Start working on discarding unused values
* Fix almost all tests for new for loop stuff
* All tests passing
* Update spec and docs, all tests passing
* Remove assert dir
* Remove float floor div
* work on polymorphic funcs
* fmt
* More work on polymorphism
* readme change:
* More work on polymorphism
* overloading nearly there, some more test
* Add more tests for casting
* Fix a small bug in const folding
* Fix more bugs
* More fixes to math domains
* remove ellipsis from syntax
* Add even more test cases
* Rework some tests
* python 3.9 fix
* py3.9 fix
* sp
* Add some visitor tests, add tests for floor divide
* remove flags system for now
* sp
* catch recursion error
* sp
* Work on better intermediate types alg
* Fix really large float literals
* Little more work on good algos for intermediate type
* More work on better intermediate type alg, rename Type->Value for fpp stuff
* New coercion/intermediate logic mostly done...
* Warn on empty ranges
* Fix all tests
* Update directives from latest devel
* Works on real fprime
* sp
* Import errs fix
* Update directives spec
* Commonize some array index calc code
* sp
---------
Co-authored-by: Zimri Leisher <zimri.leisher@fireflyspace.com>1 parent 873b754 commit eb896cf
File tree
26 files changed
+8452
-3650
lines changed- .github/actions/spelling
- src/fprime_gds/common/fpy
- bytecode
- test/fprime_gds/common/fpy
26 files changed
+8452
-3650
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| 103 | + | |
| 104 | + | |
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
| |||
146 | 150 | | |
147 | 151 | | |
148 | 152 | | |
| 153 | + | |
149 | 154 | | |
150 | 155 | | |
151 | 156 | | |
| |||
163 | 168 | | |
164 | 169 | | |
165 | 170 | | |
| 171 | + | |
166 | 172 | | |
167 | 173 | | |
168 | 174 | | |
| |||
185 | 191 | | |
186 | 192 | | |
187 | 193 | | |
| 194 | + | |
188 | 195 | | |
189 | 196 | | |
190 | 197 | | |
| |||
268 | 275 | | |
269 | 276 | | |
270 | 277 | | |
| 278 | + | |
271 | 279 | | |
272 | 280 | | |
273 | 281 | | |
| |||
288 | 296 | | |
289 | 297 | | |
290 | 298 | | |
| 299 | + | |
291 | 300 | | |
292 | 301 | | |
293 | 302 | | |
| 303 | + | |
294 | 304 | | |
295 | 305 | | |
296 | 306 | | |
| |||
368 | 378 | | |
369 | 379 | | |
370 | 380 | | |
| 381 | + | |
371 | 382 | | |
372 | 383 | | |
373 | 384 | | |
| |||
435 | 446 | | |
436 | 447 | | |
437 | 448 | | |
| 449 | + | |
438 | 450 | | |
439 | 451 | | |
440 | 452 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
46 | 74 | | |
47 | | - | |
| 75 | + | |
| 76 | + | |
48 | 77 | | |
49 | 78 | | |
50 | 79 | | |
| |||
60 | 89 | | |
61 | 90 | | |
62 | 91 | | |
63 | | - | |
| 92 | + | |
64 | 93 | | |
65 | 94 | | |
66 | 95 | | |
| |||
71 | 100 | | |
72 | 101 | | |
73 | 102 | | |
74 | | - | |
| 103 | + | |
| 104 | + | |
75 | 105 | | |
76 | | - | |
| 106 | + | |
| 107 | + | |
77 | 108 | | |
78 | | - | |
| 109 | + | |
79 | 110 | | |
80 | 111 | | |
81 | 112 | | |
82 | 113 | | |
83 | | - | |
| 114 | + | |
84 | 115 | | |
85 | 116 | | |
86 | | - | |
| 117 | + | |
87 | 118 | | |
88 | 119 | | |
89 | | - | |
| 120 | + | |
90 | 121 | | |
91 | | - | |
| 122 | + | |
92 | 123 | | |
93 | | - | |
| 124 | + | |
94 | 125 | | |
95 | 126 | | |
96 | 127 | | |
| |||
108 | 139 | | |
109 | 140 | | |
110 | 141 | | |
111 | | - | |
112 | | - | |
| 142 | + | |
| 143 | + | |
113 | 144 | | |
114 | 145 | | |
115 | 146 | | |
| |||
125 | 156 | | |
126 | 157 | | |
127 | 158 | | |
128 | | - | |
| 159 | + | |
129 | 160 | | |
130 | 161 | | |
131 | 162 | | |
| |||
148 | 179 | | |
149 | 180 | | |
150 | 181 | | |
151 | | - | |
| 182 | + | |
152 | 183 | | |
153 | 184 | | |
154 | 185 | | |
| |||
159 | 190 | | |
160 | 191 | | |
161 | 192 | | |
162 | | - | |
| 193 | + | |
163 | 194 | | |
164 | 195 | | |
165 | 196 | | |
166 | | - | |
167 | 197 | | |
168 | 198 | | |
169 | 199 | | |
170 | 200 | | |
171 | | - | |
172 | 201 | | |
173 | 202 | | |
174 | 203 | | |
175 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
176 | 255 | | |
177 | 256 | | |
178 | 257 | | |
| |||
190 | 269 | | |
191 | 270 | | |
192 | 271 | | |
193 | | - | |
| 272 | + | |
194 | 273 | | |
195 | 274 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
201 | 295 | | |
202 | 296 | | |
203 | | - | |
| 297 | + | |
204 | 298 | | |
0 commit comments