Introduction to Programming Languages
code-examples
Xeq1yeq2 Json

{
    "type": "Program",
    "body": [
      {
        "type": "ExpressionStatement",
        "expression": {
          "type": "AssignmentExpression",
          "operator": "=",
          "left": {
            "type": "Identifier",
            "name": "x"
          },
          "right": {
            "type": "Literal",
            "value": 1
          }
        }
      },
      {
        "type": "ExpressionStatement",
        "expression": {
          "type": "AssignmentExpression",
          "operator": "=",
          "left": {
            "type": "Identifier",
            "name": "y"
          },
          "right": {
            "type": "Literal",
            "value": 2
          }
        }
      }
    ],
    "sourceType": "script"
  }