forked from AbleOS/holey-bytes
p
This commit is contained in:
parent
ab903fa4ea
commit
4dcaae8362
|
@ -363,7 +363,7 @@ new := fn($Elem: type): Vec(Elem) return Vec(Elem).{ data: @bitcast(0), len: 0,
|
||||||
deinit := fn($Elem: type, vec: ^Vec(Elem)): void {
|
deinit := fn($Elem: type, vec: ^Vec(Elem)): void {
|
||||||
free(@bitcast(vec.data), vec.cap * @sizeof(Elem), @alignof(Elem));
|
free(@bitcast(vec.data), vec.cap * @sizeof(Elem), @alignof(Elem));
|
||||||
*vec = new(Elem);
|
*vec = new(Elem);
|
||||||
return;
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
push := fn($Elem: type, vec: ^Vec(Elem), value: Elem): ^Elem {
|
push := fn($Elem: type, vec: ^Vec(Elem), value: Elem): ^Elem {
|
||||||
|
|
|
@ -431,10 +431,6 @@ impl<'a, 'b> Parser<'a, 'b> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if matches!(token.kind, T::Return) {
|
|
||||||
self.expect_advance(T::Semi);
|
|
||||||
}
|
|
||||||
|
|
||||||
if matches!(token.kind, T::Loop | T::LBrace | T::Fn) {
|
if matches!(token.kind, T::Loop | T::LBrace | T::Fn) {
|
||||||
self.pop_scope(frame);
|
self.pop_scope(frame);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue