diff options
Diffstat (limited to '.config/rakumod/templates')
-rw-r--r-- | .config/rakumod/templates/kinds/class.raku | 1 | ||||
-rw-r--r-- | .config/rakumod/templates/kinds/exception.raku | 6 | ||||
-rw-r--r-- | .config/rakumod/templates/kinds/grammar.raku | 4 | ||||
-rw-r--r-- | .config/rakumod/templates/kinds/main.raku | 7 | ||||
-rw-r--r-- | .config/rakumod/templates/kinds/module.raku | 1 |
5 files changed, 19 insertions, 0 deletions
diff --git a/.config/rakumod/templates/kinds/class.raku b/.config/rakumod/templates/kinds/class.raku new file mode 100644 index 0000000..d993fe0 --- /dev/null +++ b/.config/rakumod/templates/kinds/class.raku @@ -0,0 +1 @@ +unit class {{ this.provide }}; diff --git a/.config/rakumod/templates/kinds/exception.raku b/.config/rakumod/templates/kinds/exception.raku new file mode 100644 index 0000000..32a607f --- /dev/null +++ b/.config/rakumod/templates/kinds/exception.raku @@ -0,0 +1,6 @@ +unit class {{ this.provide }} is Exception; + +method message ( + {{{ '-->' }}} Str +) { +} diff --git a/.config/rakumod/templates/kinds/grammar.raku b/.config/rakumod/templates/kinds/grammar.raku new file mode 100644 index 0000000..83a89d5 --- /dev/null +++ b/.config/rakumod/templates/kinds/grammar.raku @@ -0,0 +1,4 @@ +unit grammar {{ this.provide }}; + +token TOP { +} diff --git a/.config/rakumod/templates/kinds/main.raku b/.config/rakumod/templates/kinds/main.raku new file mode 100644 index 0000000..be0dced --- /dev/null +++ b/.config/rakumod/templates/kinds/main.raku @@ -0,0 +1,7 @@ +unit module {{ this.provide }}; + +#| Nondescript. +sub MAIN ( +) is export { + … +} diff --git a/.config/rakumod/templates/kinds/module.raku b/.config/rakumod/templates/kinds/module.raku new file mode 100644 index 0000000..2b6042c --- /dev/null +++ b/.config/rakumod/templates/kinds/module.raku @@ -0,0 +1 @@ +unit module {{ this.provide }}; |