Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Update Production (02/10/2022) #1455

Merged
merged 39 commits into from
Oct 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
bb5add7
start on adding a lambda to newline
lyxal Sep 4, 2022
81d0141
Update parse.py
lyxal Sep 4, 2022
4d073ce
Update test_parser.py
lyxal Sep 4, 2022
17f5b23
Update test_parser.py
lyxal Sep 4, 2022
9dd9cc4
Update test_parser.py
lyxal Sep 4, 2022
8aedb5e
Fix a now invalid test case
lyxal Sep 4, 2022
778e6cd
Update parse.py
lyxal Sep 6, 2022
7a06db9
Merge branch 'main' into lambda-to-newline
Steffan153 Sep 6, 2022
ff19813
Add functionality of `}];` back
lyxal Sep 8, 2022
a730ae4
Merge branch 'main' into lambda-to-newline
lyxal Sep 11, 2022
a1c40d2
Put sympy back on the menu
lyxal Sep 13, 2022
df10514
Merge branch 'main' into lambda-to-newline
lyxal Sep 14, 2022
fbcdaec
Straight up remove bad `.`s
lyxal Sep 18, 2022
10f95d7
Merge branch 'main' into make-sympy-great-again
lyxal Sep 20, 2022
1a9cd6a
Add some clarification info to superscript plus
lyxal Sep 29, 2022
51e5d0d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 29, 2022
1e78030
Merge pull request #1449 from Vyxal/Add-extra-info-to-superscript-plus
Steffan153 Sep 29, 2022
e3a17a4
Port Jelly's untruth algorithm
lyxal Sep 30, 2022
4539cea
Unport jelly and make a few bug fixes
lyxal Sep 30, 2022
af30c07
Update the yaml with a new test
lyxal Sep 30, 2022
f050f04
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 30, 2022
625ce2c
Make grouping modifiers work properly
lyxal Sep 30, 2022
e189b2f
Make sure tokens after a modifier have the appropriate parent
lyxal Sep 30, 2022
aca2c12
Add multi-dimension enumerate and multi-dimension indices
lyxal Sep 30, 2022
a7c5557
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 30, 2022
531ede3
Add extra test
lyxal Oct 1, 2022
1f7ccf0
Merge branch 'main' into lambda-to-newline
lyxal Oct 2, 2022
db6cd59
Merge pull request #1424 from Vyxal/lambda-to-newline
lyxal Oct 2, 2022
111d350
Merge branch 'main' into make-sympy-great-again
lyxal Oct 2, 2022
333834a
Merge pull request #1440 from Vyxal/make-sympy-great-again
lyxal Oct 2, 2022
e512a7b
Merge branch 'main' into fix-untruth
lyxal Oct 2, 2022
02127e3
Merge pull request #1451 from Vyxal/fix-untruth
lyxal Oct 2, 2022
5160d86
Merge branch 'main' into fix-parallel-application-modifiers
lyxal Oct 2, 2022
02a4156
Merge pull request #1452 from Vyxal/fix-parallel-application-modifiers
lyxal Oct 2, 2022
cc95bab
Merge pull request #1454 from Vyxal/multidimensional-goodness-from-Jelly
lyxal Oct 2, 2022
87a9986
Merge branch 'main' into make-x-recurse-after-a-modifier
lyxal Oct 2, 2022
f8a39ce
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 2, 2022
1c601f8
Account for the fact that a parent structure can be none sometimes
lyxal Oct 2, 2022
cb73d98
Merge pull request #1453 from Vyxal/make-x-recurse-after-a-modifier
lyxal Oct 2, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 17 additions & 1 deletion documents/knowledge/elements.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion documents/knowledge/elements.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 28 additions & 1 deletion documents/knowledge/elements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3051,7 +3051,7 @@
- element: "⁺"
name: Index of next character in codepage
arity: 0
description: Compressed number in 1-128 (prefix)
description: Return the index of the next character in the vyxal code page + 101
vectorise: false

- element: "↵"
Expand Down Expand Up @@ -5437,6 +5437,7 @@
- "[[0,3,4,6]] : [1,0,0,1,1,0,1]"
- "[[[0,1,0],[2,0,3],[1,0,1]]] : [[[0, 0, 0, 0], [1, 0, 0, 0]], [[0, 1, 0, 0], [0, 0, 0, 0]], [[0, 0, 0, 1], [0, 0, 0, 0]]]"
- "[[]] : []"
- "[0] : [1]"

- element: "ÞǓ"
name: Connected Uniquify
Expand Down Expand Up @@ -6223,6 +6224,32 @@
- "[[1,2,3,4,5,6], [0,1,0,0]] : [[1], [2, 3, 4, 5, 6]]"
- "[[2,3,4,5,6], [1,1,0,1]] : [[], [2], [3, 4], [5, 6]]"

- element: "Þẏ"
name: Multidimensonal Indices
description: A list of indices for a multidimensional list
arity: 1
overloads:
lst: A list of indices for a multidimensional list
vectorise: false
tests:
- "[[69, 69, 69, 69, 69]] : [0, 1, 2, 3, 4]"
- "[[69, [69, 69, 69], 69, [69, 69]]] : [0, [1, 0], [1, 1], [1, 2], 2, [3, 0], [3, 1]]"
- "[[]] : []"
- "[[[], [], []]] : [0, 1, 2]"

- element: "Þė"
name: Multidimensonal Enumeration
description: Enumerate a list and all its sublists
arity: 1
overloads:
lst: Enumerate a list and all its sublists
vectorise: false
tests:
- "[[69, 69, 69, 69, 69]] : [[0, 69], [1, 69], [2, 69], [3, 69], [4, 69]]"
- "[[69, [69, 69, 69], 69, [69, 69]]] : [[0, 69], [[1, 0], 69], [[1, 1], 69], [[1, 2], 69], [2, 69], [[3, 0], 69], [[3, 1], 69]]"
- "[[]] : []"
- "[[[], [], []]] : [[0, []], [1, []], [2, []]]"

- element: "¨□"
name: Parse direction arrow to integer
description: Map characters in `>^<v` to integers (0, 1, 2, 3 respectively)
Expand Down
14 changes: 13 additions & 1 deletion static/parsed_yaml.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions tests/test_complex.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,17 @@ def test_string_interop():
assert stack[-1] == "hello 2 world 1"


def test_parallel_modifiers():
stack = run_vyxal("₍₃₅", inputs=[1001])
assert stack[-1] == [0, 0]
stack = run_vyxal("₍₃₅W", inputs=[1001])
assert stack[-1] == [[0, 0]]
stack = run_vyxal("₌+-", inputs=[3, 4])
assert stack[-1] == -1
stack = run_vyxal("2 3 4₍+-")
assert stack == [2, [7, -1]]


def test_conditional_execute_modifier():
stack = run_vyxal("12 19 1 ß%")
assert stack[-1] == 12
Expand Down
193 changes: 193 additions & 0 deletions tests/test_elements.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.