Skip to content

Commit

Permalink
feat: version 063
Browse files Browse the repository at this point in the history
  • Loading branch information
emil14 committed Feb 28, 2024
1 parent 5e9f427 commit f8ad32b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 26 deletions.
17 changes: 0 additions & 17 deletions examples/3_interfaces/logger.neva.tmp

This file was deleted.

13 changes: 7 additions & 6 deletions examples/3_interfaces/main.neva
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
interface IPrinter<T>(data T) (sig T)
import {
nevalang/main/x
}

// TODO create issue/discussion about DI sugar
// if component only have one DI dep then allow
// omitting of the dep node name. So parent component
// know nothing about it's sub-component internals
interface IPrinter<T>(data T) (sig T)

component {
Main(start any) (stop any) {
nodes {
subNode SecondComponent { depNode Printer<any> }
subNode SecondComponent {
depNode x.Printer<any>
}
}
net {
:start -> subNode:msg
Expand Down
4 changes: 2 additions & 2 deletions examples/neva.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
neva: 0.6.0
deps:
github.com/nevalang/x:
nevalang/x:
path: github.com/nevalang/x
version: 0.0.4
version: 0.0.6
1 change: 1 addition & 0 deletions internal/compiler/parser/neva.g4
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ importStmt: 'import' NEWLINE* '{' NEWLINE* importDef* '}';
importDef: importAlias? importPath NEWLINE*;
importAlias: IDENTIFIER;
importPath: (importPathMod '/')? importPathPkg;
// FIXME this does not work for modules like github.com/nevalang/x
importPathMod: '@' | IDENTIFIER;
importPathPkg: IDENTIFIER ('/' IDENTIFIER)*;

Expand Down
2 changes: 1 addition & 1 deletion pkg/version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package pkg

// Version is the current version of the language and stdlib
var Version = "0.6.2" //nolint:gochecknoglobals
var Version = "0.6.3" //nolint:gochecknoglobals

0 comments on commit f8ad32b

Please sign in to comment.