File: file2.citrus

package info (click to toggle)
ruby-citrus 3.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 420 kB
  • sloc: ruby: 3,417; makefile: 5
file content (13 lines) | stat: -rw-r--r-- 138 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
grammar SuperTwo
  rule root
    (one | two) { super() * 1000 }
  end

  rule one
    "1" { 1 }
  end

  rule two
    "2" { 2 }
  end
end