mirror of
https://github.com/Noratrieb/brainfuck.git
synced 2026-01-16 06:15:02 +01:00
parser works
This commit is contained in:
parent
2b1daa55fb
commit
2484fe1f44
7 changed files with 402 additions and 0 deletions
29
rust2/src/snapshots/rust2__parse__tests__nested_loop.snap
Normal file
29
rust2/src/snapshots/rust2__parse__tests__nested_loop.snap
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
source: src/parse.rs
|
||||
assertion_line: 102
|
||||
expression: instrs
|
||||
---
|
||||
Ok(
|
||||
[
|
||||
Add,
|
||||
Loop(
|
||||
[
|
||||
Sub,
|
||||
Loop(
|
||||
[
|
||||
Sub,
|
||||
Loop(
|
||||
[
|
||||
Sub,
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
Add,
|
||||
Right,
|
||||
Right,
|
||||
Right,
|
||||
],
|
||||
),
|
||||
],
|
||||
)
|
||||
20
rust2/src/snapshots/rust2__parse__tests__simple.snap
Normal file
20
rust2/src/snapshots/rust2__parse__tests__simple.snap
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
source: src/parse.rs
|
||||
assertion_line: 93
|
||||
expression: instrs
|
||||
---
|
||||
Ok(
|
||||
[
|
||||
Right,
|
||||
Add,
|
||||
Left,
|
||||
Add,
|
||||
Add,
|
||||
Loop(
|
||||
[
|
||||
Sub,
|
||||
],
|
||||
),
|
||||
Out,
|
||||
],
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue