Something went wrong. Try again.
馃尡 A minimal programming language and compiler. git.urbach.dev/cli/q
high-performance programming-language compiler
Something went wrong. Try again.
351 B 路 12 lines
Go
at main
123456789101112package expression
import ( "git.urbach.dev/cli/q/src/token")
// coverGroup sets the token of `node` to cover the whole group.func coverGroup(node *Expression, tokens token.List, groupPosition uint, t token.Token) { open := tokens[groupPosition-1] node.Token.Position = open.Position node.Token.Length = token.Length(t.End() - open.Position)}