Add dereference parsing #17
| @ -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, | ||||
| 	 | ||||
|  | ||||
| @ -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) | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user