MCPcopy Create free account
hub / github.com/MauriceGit/compiler / parseSimpleExpression

Function parseSimpleExpression

parser.go:1281–1357  ·  view source on GitHub ↗

func parseStructExpr(tokens *TokenChannel) (st StructExpr, err error) { name, startRow, startCol, ok := tokens.expectType(TOKEN_IDENTIFIER) if !ok { err = fmt.Errorf("%wExpected identifier for struct expression", ErrNormal) return } if _, _, ok := tokens.expect(TOKEN_CURLY_OPEN, "{"); !ok {

(tokens *TokenChannel)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

parseExpressionFunction · 0.85

Calls 6

parseFunCallFunction · 0.85
parseVariableFunction · 0.85
parseArrayExpressionFunction · 0.85
parseConstantFunction · 0.85
parseExpressionFunction · 0.85
expectMethod · 0.80

Tested by

no test coverage detected