Sha256: 64ecc536b09e9e3cdc98ff98adc8a7007481819e0e40c28c6b6f1af7145b3e9d

Contents?: true

Size: 618 Bytes

Versions: 1

Compression:

Stored size: 618 Bytes

Contents

{
  "name": "associativity_left",

  "rules": {
    "expression": {
      "type": "CHOICE",
      "members": [
        {"type": "SYMBOL", "name": "math_operation"},
        {"type": "SYMBOL", "name": "identifier"}
      ]
    },

    "math_operation": {
      "type": "PREC_LEFT",
      "value": 0,
      "content": {
        "type": "SEQ",
        "members": [
          {"type": "SYMBOL", "name": "expression"},
          {"type": "STRING", "value": "+"},
          {"type": "SYMBOL", "name": "expression"}
        ]
      }
    },

    "identifier": {
      "type": "PATTERN",
      "value": "[a-zA-Z]+"
    }
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tree-sitter-0.1.0 ext/tree-sitter/tree-sitter/test/fixtures/test_grammars/associativity_left/grammar.json