diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 0889869..d10814c 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -33,3 +33,68 @@ changelog: exclude: - "^docs:" - "^test:" + +# .goreleaser.yaml +nfpms: + # note that this is an array of nfpm configs + - # + id: vapour + + # Name of the package. + # + # Default: ProjectName. + # Templates: allowed. + package_name: vapour + + # Your app's vendor. + vendor: Vapour + + # Your app's homepage. + # + # Default: inferred from global metadata. + homepage: https://vapour.run + + # Your app's maintainer (probably you). + # + # Default: inferred from global metadata. + maintainer: John Coene + + # Your app's description. + # + # Default: inferred from global metadata. + description: |- + Vapour is a typed superset of R. + + # Your app's license. + # + # Default: inferred from global metadata. + license: Apache 2.0 + + # Formats to be generated. + formats: + - apk + - deb + - rpm + - termux.deb + - archlinux + + # Umask to be used on files without explicit mode set. (overridable) + # + # Default: 0o002 (will remove world-writable permissions). + umask: 0o002 + + # Path that the binaries should be installed. + # + # Default: '/usr/bin'. + bindir: /usr/bin + + # Version Release. + release: 1 + + # Section. + section: default + + # Makes a meta package - an empty package that contains only supporting + # files and dependencies. + # When set to `true`, the `builds` option is ignored. + meta: true diff --git a/vapour.go b/vapour.go index f7dd433..d16b0ca 100644 --- a/vapour.go +++ b/vapour.go @@ -14,7 +14,7 @@ type vapour struct { func New() *vapour { return &vapour{ name: "vapour", - version: "0.0.1", + version: "0.0.2", } } diff --git a/walker/walk_test.go b/walker/walk_test.go index fdd11b4..a2b0fbc 100644 --- a/walker/walk_test.go +++ b/walker/walk_test.go @@ -811,7 +811,7 @@ func multiply(x: int = 2, y: int = 1): int { apply_math(1, 2, multiply) -apply_math(1, 2, (x: int, y: int) => { +apply_math(1, 2, (x: int, y: int): int => { return x + y }) @@ -829,6 +829,10 @@ apply_math(1, 2, zz) apply_math(1, 2, (x: int, y: char): int => { return x + 1 }) + +func foo(x: int): math { + return zz +} ` l := lexer.NewTest(code)