Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | update labels of value blocks after running 'push', 'pop', or 'clear heap'Marion2013-09-121-3/+17
| | |
* | | add Primitive for 'clear/ empty heap' blockMarion2013-09-124-6/+21
| | | | | | | | | | | | - Use LogoCode's heap in the exported code.
* | | show logoerror("#emptyheap") when trying to pop from an empty heapMarion2013-09-101-0/+2
| | |
* | | add Primitives for the 'push', 'pop', and 'is empty heap?' blocksMarion2013-09-106-34/+63
| | |
* | | add Primitive for the 'time' blockMarion2013-09-093-3/+20
| | |
* | | divide the primitive of the 'clean' block up into more functions than beforeMarion2013-09-092-8/+19
| | | | | | | | | | | | - The block still does the same, but the exported code is a bit less obscure.
* | | add 'Save as Python' button in SugarMarion2013-09-093-0/+267
| | |
* | | Merge branch 'mainline/master' into type-systemMarion2013-09-093-560/+548
|\ \ \ | |/ /
| * | resync with pootleWalter Bender2013-09-051-543/+519
| | |
| * | news for v190Walter Bender2013-09-031-0/+4
| | |
| * | fix problem with NoneType index for action blockWalter Bender2013-09-031-12/+17
| | |
| * | fix problem with NoneType index for storein blockWalter Bender2013-09-031-5/+8
| | |
* | | fix sample game-set.taMarion2013-09-081-289/+293
| | | | | | | | | | | | | | | | | | | | | | | | - In the action stack 'action', we call the three 'shapeX' action stacks by concatenating the string 'shape' with the value of the box 'shape'. We need to make sure that we get the value as an integer. Otherwise, TA generates action names like 'shape1.0' and doesn't find the corresponding stack.
* | | add Primitives for 'hide blocks' and 'show blocks' (they are not exported)Marion2013-09-081-4/+2
| | |
* | | clean up taprimitive: remove unused stuff, add documentationMarion2013-09-081-21/+11
| | |
* | | remove a ton of unused methods from tabasicsMarion2013-09-081-235/+3
| | |
* | | make generation of color blocks a bit more generic and uniformMarion2013-09-081-19/+14
| | |
* | | Primitives for all constant blocks (add screen dimensions, update colors)Marion2013-09-086-32/+74
| | | | | | | | | | | | | | | | | | - Use the get() method of the CONSTANTS dict to retrieve the values of constants, but export it as CONSTANTS['key']. - Introduce the new class TypedSubscript for Subscript ASTs with a type.
* | | make the get_prim_callable utility a bit more fail-safeMarion2013-09-081-1/+5
| | |
* | | add Primitive for the 'show' blockMarion2013-09-082-77/+77
| | |
* | | allow the name of a box to be of any type rather than just stringMarion2013-09-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - This commit fixes the issue that the integer 10 and the float 10.0 were regarded as different box names (in the exported py code) before. It introduces the issue that 'a' and ord('a') == 97 will be considered different box names. - These issues only affect the exported code because the internal execution engine converts all box names to keys using talogo.LogoCode._get_box_key(), and thereby eliminates differences between characters, number strings, integers, and floats.
* | | use the tatype.convert() function to type-convert boxes in exported py codeMarion2013-09-082-18/+34
| | |
* | | add Primitive for 'random' block; fix getting the key of a boxMarion2013-09-063-31/+48
| | |
* | | add Primitives for the 'chr' and 'int' blocksMarion2013-09-061-21/+8
| | |
* | | add Primitive and special export handling for the 'wait' blockMarion2013-09-064-13/+20
| | |
* | | new special return type for the 'box' blockMarion2013-09-062-9/+13
| | |
* | | add Primitive for the 'stop stack' blockMarion2013-09-063-6/+8
| | |
* | | fix util.codegen: allow 'return' statements without a return valueMarion2013-09-061-1/+2
| | |
* | | add Primitive and special export handling for the 'sandwichclamp' blockMarion2013-09-053-12/+13
| | |
* | | fix execution of 'while' and 'until' loops (again)Marion2013-09-051-15/+22
| | | | | | | | | | | | - Make it possible to apply type converters to un-called Primitives.
* | | get_type(...) can now guess the return type of binary operatorsMarion2013-09-051-0/+13
| | | | | | | | | | | | - including boolean operators and comparison operators
* | | add ord() and chr() to Call ASTs recognized by get_type(...)Marion2013-09-051-1/+3
| | |
* | | simplify and fix export of 'while' and 'until' loopsMarion2013-09-052-35/+7
| | |
* | | update special handling of 'while' and 'until' loops during exportMarion2013-09-051-2/+2
| | |
* | | don't call block arguments that fill ArgSlots whose call_arg is FalseMarion2013-09-041-26/+63
| | |
* | | fix extracting loop conditions for 'while' and 'until' loopsMarion2013-09-041-2/+3
| | |
* | | introduce TypedLambda, a Lambda AST with a return typeMarion2013-09-043-4/+24
| | |
* | | Merge branch 'type-system' into type-system-while-untilMarion2013-09-045-254/+174
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: TurtleArt/taprimitive.py -- preserve the semantics of both changes
| * | | introduce TypedCall, a Call AST that knows its return typeMarion2013-09-043-28/+65
| | | | | | | | | | | | | | | | - Add a visitor for TypedCall to util.codegen.
| * | | store the type of the value of a ConstantArg explicitlyMarion2013-09-041-8/+22
| | | |
| * | | avoid double 'yield True' also inside loopsMarion2013-09-041-1/+2
| | | |
| * | | remove obsolete (pre-type system) type conversion methodsMarion2013-09-042-158/+0
| | | |
| * | | avoid double 'yield True' in the exported codeMarion2013-09-041-1/+2
| | | |
| * | | update Primitives for 'hat' (top of an action stack) and 'stack' blocksMarion2013-09-044-24/+23
| | | | | | | | | | | | | | | | | | | | - Insert 'yield True' after every call to logo.icall(...) in the exported code.
| * | | fix exporting the 'store in' and 'box' blocksMarion2013-09-042-12/+24
| | | | | | | | | | | | | | | | | | | | - Use proper ast.Subscript objects to represent `BOX['my box']` - Enable type guessing for these ASTs
| * | | update Primitives for the 'store in' and 'box' blocksMarion2013-09-043-28/+44
| | | | | | | | | | | | | | | | | | | | - They are not yet exportable. - Fix TypeDisjunctions as return types of Primitives.
* | | | update Primitives for the 'while' and 'until' blocksMarion2013-09-023-19/+32
|/ / / | | | | | | | | | | | | | | | - They are not yet exportable. - They only work with loop conditions that consist of only one block like e.g., 'pen state'.
* | | update Primitive for the 'forever' block; disable expansion of 'forever'Marion2013-09-022-8/+9
| | |
* | | fix bug when getting the loop controllerMarion2013-09-021-1/+1
| | |
* | | update Primitives for the 'and', 'or', and 'not' blocksMarion2013-09-021-5/+9
| | |