Heyo!
I've started working on implementing a CEL (Common Expression Language) lib in Gleam, using nibble for parsing and would like some help. It's gone quite well so far but I'm now struggling to add the "member index" syntax, variable[index]. I did somehow manage to get a (seemingly) working ternary operator working condition ? true_branch : false_branch but I've spent too much time now on getting anything at all working to parse the index operator. The expression parsing function can be found here. My parsing knowledge is very fresh so please do let me know what things I should do differently! ๐
I've tried to add some kind of intermediate state like I did with the ternary operator but I never seem to successfully "close" it with the attempted postfix right square bracket. Any ideas or pointers would be greatly appreciated!
(Moved from #general)
