You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
doesn't parse. While I thought this looked simple to account for in the beginning, my esteemed colleague, and the back to back to back MVP of the LMU CS program, @rachelriv, brought up examples of why this is something we all need to think/talk about
The text was updated successfully, but these errors were encountered:
A quick thought on what the function might look like (courtesy of the aforementioned @rachelriv):
parseVarRef = ->
console.log "Parseing Variable Reference"
exp = parseExp8()
while ((at ['.', '[']) and
(next StartTokens.expression))
if at '.'
match '.'
exp = new MemberAccess exp, parseExpression()
else if at '['
match '['
exp = new ListSubscript exp, parseExpression()
match ']'
if at([ '++', '--' ])
op = match()
exp = new PostUnaryExpression op, exp
exp
For example:
doesn't parse. While I thought this looked simple to account for in the beginning, my esteemed colleague, and the back to back to back MVP of the LMU CS program, @rachelriv, brought up examples of why this is something we all need to think/talk about
The text was updated successfully, but these errors were encountered: