aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-11 01:52:47 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-11 01:52:47 +0300
commita27b9d37c6d238432fedad019b0577d941a699da (patch)
tree6894c2f29682a8208d9e2b6128f4fa73a5623dc3
parentf819828f6debae4f68ec0d6060e08def1675ba5e (diff)
Поправил имя пакетаHEADv0.0.6master
-rw-r--r--example/json/main.go4
-rw-r--r--example/math_expression/main.go3
-rw-r--r--example/math_expression/rpn.go2
-rw-r--r--example/math_expression/stack.go2
-rw-r--r--go.mod3
5 files changed, 6 insertions, 8 deletions
diff --git a/example/json/main.go b/example/json/main.go
index c600cda..44230e6 100644
--- a/example/json/main.go
+++ b/example/json/main.go
@@ -6,7 +6,7 @@ package main
import (
"fmt"
- "go.neonxp.ru/unilex"
+ "neonxp.ru/go/unilex"
)
func main() {
@@ -133,6 +133,6 @@ func stateInArray(l *unilex.Lexer) unilex.StateFunc {
}
func ignoreWhiteSpace(l *unilex.Lexer) {
- l.AcceptWhile(" \n\t") //ignore whitespaces
+ l.AcceptWhile(" \n\t") // ignore whitespaces
l.Ignore()
}
diff --git a/example/math_expression/main.go b/example/math_expression/main.go
index 5cabaa6..b89a28b 100644
--- a/example/math_expression/main.go
+++ b/example/math_expression/main.go
@@ -3,7 +3,7 @@ package main
import (
"fmt"
- "go.neonxp.ru/unilex"
+ "neonxp.ru/go/unilex"
)
const (
@@ -14,7 +14,6 @@ const (
)
func main() {
-
l := unilex.New("10 * (20.0 + 30.0)")
go l.Run(lexExpression) // Start lexer
diff --git a/example/math_expression/rpn.go b/example/math_expression/rpn.go
index 65d9bf8..7027009 100644
--- a/example/math_expression/rpn.go
+++ b/example/math_expression/rpn.go
@@ -7,7 +7,7 @@ import (
"log"
"strconv"
- "go.neonxp.ru/unilex"
+ "neonxp.ru/go/unilex"
)
var opPriority = map[string]int{
diff --git a/example/math_expression/stack.go b/example/math_expression/stack.go
index d690f4e..3f610ad 100644
--- a/example/math_expression/stack.go
+++ b/example/math_expression/stack.go
@@ -2,7 +2,7 @@ package main
// Simple lexem stack implementation.
-import "go.neonxp.ru/unilex"
+import "neonxp.ru/go/unilex"
type lexemStack []unilex.Lexem
diff --git a/go.mod b/go.mod
index bb548ed..7966e85 100644
--- a/go.mod
+++ b/go.mod
@@ -1,5 +1,4 @@
-module go.neonxp.ru/unilex
+module neonxp.ru/go/unilex
go 1.20
-replace go.neonxp.ru/unilex latest => neonxp.ru/go/unilex latest