issues
search
sunjay
/
brain
A high level programming language that compiles into the brainfuck esoteric programming language
MIT License
170
stars
12
forks
source link
Pattern Matching and Match Statements
#43
Open
sunjay
opened
7 years ago
sunjay
commented
7 years ago
Pretty much required to make #41 usable.
[ ] new match statement added to grammar
[ ] pattern matching on struct fields, tuples, enum variants, etc.
[ ] Ignore struct fields with
..
[ ] Wildcard
_
or identifier to match all
[ ] Multiple patterns separated by
|
[ ] Bind names with
@
[ ] irrefutable patterns can be used in assignment or as function parameters
Reference:
https://doc.rust-lang.org/book/patterns.html
Pretty much required to make #41 usable.
..
_
or identifier to match all|
@
Reference: