This website requires JavaScript.
Explore
Help
Sign In
idris-lang
/
Idris2
Watch
1
Star
1
Fork
0
You've already forked Idris2
mirror of
https://github.com/idris-lang/Idris2.git
synced
2024-12-11 06:14:41 +03:00
Code
Issues
Projects
Releases
Wiki
Activity
5905a00fd2
Idris2
/
tests
/
idris2
/
interactive017
/
run
4 lines
73 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Prettyprinting hole context
2020-08-18 15:36:34 +03:00
$1 --no-color --consolewidth 0 --no-banner RLE.idr < input
Look at intermediate results in program search This has involved quite a bit of reorganisation and some improvements in resugaring so that the results look nice. In summary: * Expression search now gives back a RawImp rather than a checked term, which allows it to include case expressions * Case with one pattern is resugared to a destructuring let * Some name generation issues address in function generation We look at intermediate results for local variables which are functions that return a concrete type, or recursive calls that return a single constructor type. In these cases, we: * let bind the local variable/recursive call * generate a new definition for the scope, as a 'case' function When we recursively generate the definition, it's a bit more restricted so as not to explode the search space. We only take the first result, we only look one constructor deep, and we go right to left on variable splitting so only deconstruct the name we've just added.
2020-08-04 14:51:57 +03:00
rm -rf build
Reference in New Issue
Copy Permalink