File: dylan.actual

package info (click to toggle)
golang-github-alecthomas-chroma 0.10.0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 6,652 kB
  • sloc: python: 426; javascript: 79; makefile: 34; sh: 32
file content (20 lines) | stat: -rw-r--r-- 401 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Module: mod

define constant $pi = 3.1415927d0;

define macro moo
  { moo(?:name, ?e:expression) } => { let ?name = ?e; }
end;

// abc
define method foo-bar (n :: <integer>, #rest a, #key k, #all-keys) => (m :: <float>, b :: <boolean>)
  let x = n + 2.0 + #b10 + #o2 + #x02;
  format-out("dog // cat\n");
  local method pi () $pi end;
  pi()
end method foo-bar;

/*
 cow
 */
foo-bar(2, k: k, a-b: c);