From 5a2f064a4c6656ac34b434f5aeea9e31028b344d Mon Sep 17 00:00:00 2001 From: Austin Cory Bart Date: Thu, 25 Jul 2019 10:10:05 -0400 Subject: [PATCH] Basics of packaging, bug fixes, better updating --- .idea/dictionaries/acbart.xml | 3 + .idea/jsLibraryMappings.xml | 1 + .idea/workspace.xml | 762 +---- color_categories.md | 82 + dist/block_mirror.css | 12 + dist/block_mirror.js | 307 ++ docs/images/awful.png | Bin 0 -> 209165 bytes package-lock.json | 5377 ++++++++++++++++++++++++++++++++- package.json | 14 +- src/ast/ast_AnnAssign.js | 18 +- src/ast/ast_Assert.js | 16 +- src/ast/ast_Assign.js | 23 +- src/ast/ast_Attribute.js | 12 +- src/ast/ast_AugAssign.js | 10 +- src/ast/ast_BinOp.js | 16 +- src/ast/ast_BoolOp.js | 12 +- src/ast/ast_Break.js | 6 +- src/ast/ast_Call.js | 258 +- src/ast/ast_ClassDef.js | 14 +- src/ast/ast_Comment.js | 24 + src/ast/ast_Comp.js | 51 +- src/ast/ast_Compare.js | 8 +- src/ast/ast_Continue.js | 6 +- src/ast/ast_Delete.js | 8 +- src/ast/ast_Dict.js | 22 +- src/ast/ast_Expr.js | 21 +- src/ast/ast_For.js | 18 +- src/ast/ast_FunctionDef.js | 42 +- src/ast/ast_Global.js | 6 +- src/ast/ast_If.js | 22 +- src/ast/ast_IfExp.js | 20 +- src/ast/ast_Import.js | 10 +- src/ast/ast_Lambda.js | 8 +- src/ast/ast_List.js | 13 +- src/ast/ast_Name.js | 6 +- src/ast/ast_NameConstant.js | 10 +- src/ast/ast_Nonlocal.js | 6 +- src/ast/ast_Num.js | 7 +- src/ast/ast_Raise.js | 10 +- src/ast/ast_Raw.js | 16 + src/ast/ast_Return.js | 12 +- src/ast/ast_Set.js | 10 +- src/ast/ast_Starred.js | 6 +- src/ast/ast_Str.js | 106 +- src/ast/ast_Subscript.js | 22 +- src/ast/ast_Try.js | 16 +- src/ast/ast_Tuple.js | 10 +- src/ast/ast_UnaryOp.js | 10 +- src/ast/ast_While.js | 12 +- src/ast/ast_With.js | 24 +- src/ast/ast_Yield.js | 12 +- src/ast/ast_YieldFrom.js | 8 +- src/ast/ast_functions.js | 234 ++ src/ast/todo.md | 10 +- src/block_editor.js | 112 +- src/block_mirror.js | 152 +- src/blockly_shims.js | 15 +- src/main.js | 95 + src/text_editor.js | 51 +- src/text_to_blocks.js | 143 +- test/simple.html | 182 +- test/simple_dev.html | 96 +- webpack.config.js | 60 +- 63 files changed, 7381 insertions(+), 1294 deletions(-) create mode 100644 color_categories.md create mode 100644 dist/block_mirror.css create mode 100644 dist/block_mirror.js create mode 100644 docs/images/awful.png create mode 100644 src/ast/ast_Comment.js create mode 100644 src/ast/ast_Raw.js create mode 100644 src/ast/ast_functions.js create mode 100644 src/main.js diff --git a/.idea/dictionaries/acbart.xml b/.idea/dictionaries/acbart.xml index 90ff7bc..fc28677 100644 --- a/.idea/dictionaries/acbart.xml +++ b/.idea/dictionaries/acbart.xml @@ -3,8 +3,11 @@ binops blockly + blockmirror finalbody + multilinetext orelse + premessage \ No newline at end of file diff --git a/.idea/jsLibraryMappings.xml b/.idea/jsLibraryMappings.xml index aad6bf1..90bb547 100644 --- a/.idea/jsLibraryMappings.xml +++ b/.idea/jsLibraryMappings.xml @@ -2,5 +2,6 @@ + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 2732632..01572cb 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,133 +2,76 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - updateShape - setMov - movable_ - consle - itemCount - hasReturn_ - hasReturnV - hasReturns - setReturn - setReturnAnnotation - setVisible - hasReturnValue - hasReturnValue_ - ast_Assert - ast_Return - ast_Yield - ast_Delete - Sk.ffi - hasReturns_ - ast_Global - GLOBAL - ast_Break - consol - console - appendStatementInput - console.log - ast_If - asname - getInput - ast_WithDef - - - UN - UNARY - BOOLOPS - boolop - Tuple - Set - Dict - ast_IfExpr - ast_Raise - ast_Yield - ast_YieldFrom - ast_Global - ast_IfExp - ast_Nonlocal - NONLOCAL - ast_Continue - ast_While - ast_With - - - - - true true true - -