Fields/Data =========== How to represent fields/data? 1. At top of file, without a keyword? - could use `if` keyword for unions 2. At top of file, with a keyword? - could use `if` keyword for unions 3. At top of file, within a block? - can handle unions easilly What should the keyword be? * data * fields * state See also `union_sum_types.txt` Syntax test ----------- At top of file, without a keyword. With `if` per line. int line int column Expr operand if UnaryExpr or BinaryExpr Expr operand2 if BinaryExpr String value if StringLiteral uint64 value if IntegerLiteral bool is_neg if IntegerLiteral At top of file, without a keyword. With sections. int line int column only UnaryExpr Expr operand only BinaryExpr Expr operand1 Expr operand2 only StringLiteral String value only IntegerLiteral uint64 value bool is_neg At top of file, with a keyword. With `if` per line. data int line data int column data Expr operand if UnaryExpr or BinaryExpr data Expr operand2 if BinaryExpr data String value if StringLiteral data uint64 value if IntegerLiteral data bool is_neg if IntegerLiteral At top of file, within a block? data int line int column only UnaryExpr Expr operand only BinaryExpr Expr operand1 Expr operand2 only StringLiteral String value only IntegerLiteral uint64 value bool is_neg end