Add dereference parsing #17

Merged
sashakoshka merged 7 commits from parse-dereferences into main 2022-10-11 11:37:40 -06:00
2 changed files with 3 additions and 5 deletions
Showing only changes of commit cdebedb839 - Show all commits

View File

@ -3,8 +3,6 @@ package parser
import "git.tebibyte.media/arf/arf/lexer"
import "git.tebibyte.media/arf/arf/infoerr"
// TODO: add support for dereferences and subscripts (currently being worked on)
var validArgumentStartTokens = []lexer.TokenKind {
lexer.TokenKindName,

View File

@ -110,8 +110,8 @@ func ro iDereference
> y:{Int ..}
> z:Int:4
---
= b:Int {x}
= c:Int {y 4}
= d:Int {z 3}
[= b:Int {x}]
[= c:Int {y 4}]
[= d:Int {z 3}]
`, test)
}