array of pointers support

This commit is contained in:
BigBlack 2019-12-18 08:26:04 +08:00 committed by Alexander Medvednikov
parent f00f9fbf5a
commit 67cf7f18e6
5 changed files with 27 additions and 15 deletions

View file

@ -416,7 +416,7 @@ fn (p mut Parser) expression() string {
// a << 7 => int tmp = 7; array_push(&a, &tmp);
// _PUSH(&a, expression(), tmp, string)
tmp := p.get_tmp()
tmp_typ := typ[6..]// skip "array_"
tmp_typ := typ[6..].replace('_ptr','*')// skip "array_"
p.check_space(.left_shift)
// Get the value we are pushing
p.gen(', (')