Tcl Library Source Code

1_functions at [5c854b4bc2]
Login

File modules/pt/tests/data/ok/peg_container-templated-bulk/1_functions artifact 8a8c9b856e part of check-in 5c854b4bc2


# -*- tcl -*-
# Parsing Expression Grammar 'TEMPLATE'.
# Generated for unknown, from file 'TEST'

package require Tcl 8.5
package require snit
package require pt::peg::container

snit::type TEMPLATE {
    constructor {} {
        install myg using pt::peg::container ${selfns}::G
        $myg start {n Expression}
        $myg add   Expression Function Sinus
        $myg modes {
            Expression value
            Function   value
            Sinus      value
        }
        $myg rules {
            Expression {n Function}
            Function   {n Sinus}
            Sinus      {x {t s} {t i} {t n} {t \50} {n Expression} {t \51}}
        }
        return
    }

    component myg
    delegate method * to myg
}

package provide TEMPLATE
return