roc/test/snapshots/expr/suffixed_question.md
2025-10-30 18:47:48 -04:00

963 B

META

description=suffixed_question
type=expr

SOURCE

Stdout.line???

EXPECTED

UNEXPECTED TOKEN IN EXPRESSION - suffixed_question.md:1:14:1:15 DOES NOT EXIST - suffixed_question.md:1:1:1:12

PROBLEMS

UNEXPECTED TOKEN IN EXPRESSION The token ? is not expected in an expression. Expressions can be identifiers, literals, function calls, or operators.

suffixed_question.md:1:14:1:15:

Stdout.line???
         ^

DOES NOT EXIST Stdout.line does not exist.

suffixed_question.md:1:1:1:12:

Stdout.line???

^^^^^^^^^^^

TOKENS

UpperIdent,NoSpaceDotLowerIdent,OpDoubleQuestion,NoSpaceOpQuestion,
EndOfFile,

PARSE

(e-binop (op "??")
	(e-ident (raw "Stdout.line"))
	(e-malformed (reason "expr_unexpected_token")))

FORMATTED

Stdout.line ?? 

CANONICALIZE

(can-ir (empty true))

TYPES

(inferred-types
	(defs)
	(expressions))