Fixed import paths

This commit is contained in:
Sasha Koshka 2022-08-30 01:11:10 -04:00
parent 06a99ce232
commit 65c213f1f3
21 changed files with 44 additions and 44 deletions

View File

@ -2,7 +2,7 @@ package arfc
import "os" import "os"
import "fmt" import "fmt"
import "git.tebibyte.media/sashakoshka/arf" import "git.tebibyte.media/arf/arf"
func main () { func main () {
if len(os.Args) != 2 { if len(os.Args) != 2 {

2
go.mod
View File

@ -1,3 +1,3 @@
module git.tebibyte.media/sashakoshka/arf module git.tebibyte.media/arf/arf
go 1.18 go 1.18

View File

@ -2,7 +2,7 @@ package infoerr
import "os" import "os"
import "fmt" import "fmt"
import "git.tebibyte.media/sashakoshka/arf/file" import "git.tebibyte.media/arf/arf/file"
type ErrorKind int type ErrorKind int

View File

@ -1,9 +1,9 @@
package lexer package lexer
import "io" import "io"
import "git.tebibyte.media/sashakoshka/arf/file" import "git.tebibyte.media/arf/arf/file"
import "git.tebibyte.media/sashakoshka/arf/types" import "git.tebibyte.media/arf/arf/types"
import "git.tebibyte.media/sashakoshka/arf/infoerr" import "git.tebibyte.media/arf/arf/infoerr"
// LexingOperation holds information about an ongoing lexing operataion. // LexingOperation holds information about an ongoing lexing operataion.
type LexingOperation struct { type LexingOperation struct {

View File

@ -1,9 +1,9 @@
package lexer package lexer
import "testing" import "testing"
import "git.tebibyte.media/sashakoshka/arf/file" import "git.tebibyte.media/arf/arf/file"
import "git.tebibyte.media/sashakoshka/arf/types" import "git.tebibyte.media/arf/arf/types"
import "git.tebibyte.media/sashakoshka/arf/infoerr" import "git.tebibyte.media/arf/arf/infoerr"
func quickToken (width int, kind TokenKind, value any) (token Token) { func quickToken (width int, kind TokenKind, value any) (token Token) {
token.location.SetWidth(width) token.location.SetWidth(width)

View File

@ -1,7 +1,7 @@
package lexer package lexer
import "strconv" import "strconv"
import "git.tebibyte.media/sashakoshka/arf/infoerr" import "git.tebibyte.media/arf/arf/infoerr"
// tokenizeSymbolBeginning lexes a token that starts with a number. // tokenizeSymbolBeginning lexes a token that starts with a number.
func (lexer *LexingOperation) tokenizeNumberBeginning (negative bool) (err error) { func (lexer *LexingOperation) tokenizeNumberBeginning (negative bool) (err error) {

View File

@ -1,7 +1,7 @@
package lexer package lexer
import "strconv" import "strconv"
import "git.tebibyte.media/sashakoshka/arf/infoerr" import "git.tebibyte.media/arf/arf/infoerr"
// tokenizeString tokenizes a string or rune literal. // tokenizeString tokenizes a string or rune literal.
func (lexer *LexingOperation) tokenizeString (isRuneLiteral bool) (err error) { func (lexer *LexingOperation) tokenizeString (isRuneLiteral bool) (err error) {

View File

@ -1,8 +1,8 @@
package lexer package lexer
import "fmt" import "fmt"
import "git.tebibyte.media/sashakoshka/arf/file" import "git.tebibyte.media/arf/arf/file"
import "git.tebibyte.media/sashakoshka/arf/infoerr" import "git.tebibyte.media/arf/arf/infoerr"
// TokenKind is an enum represzenting what role a token has. // TokenKind is an enum represzenting what role a token has.
type TokenKind int type TokenKind int

View File

@ -1,7 +1,7 @@
package arf package arf
import "io" import "io"
import "git.tebibyte.media/sashakoshka/arf/parser" import "git.tebibyte.media/arf/arf/parser"
func CompileModule (modulePath string, output io.Writer) (err error) { func CompileModule (modulePath string, output io.Writer) (err error) {
_, err = parser.Parse(modulePath) _, err = parser.Parse(modulePath)

View File

@ -1,7 +1,7 @@
package parser package parser
import "git.tebibyte.media/sashakoshka/arf/lexer" import "git.tebibyte.media/arf/arf/lexer"
import "git.tebibyte.media/sashakoshka/arf/infoerr" import "git.tebibyte.media/arf/arf/infoerr"
var validArgumentStartTokens = []lexer.TokenKind { var validArgumentStartTokens = []lexer.TokenKind {
lexer.TokenKindName, lexer.TokenKindName,

View File

@ -1,7 +1,7 @@
package parser package parser
import "git.tebibyte.media/sashakoshka/arf/lexer" import "git.tebibyte.media/arf/arf/lexer"
import "git.tebibyte.media/sashakoshka/arf/infoerr" import "git.tebibyte.media/arf/arf/infoerr"
// parse body parses the body of an arf file, after the metadata header. // parse body parses the body of an arf file, after the metadata header.
func (parser *ParsingOperation) parseBody () (err error) { func (parser *ParsingOperation) parseBody () (err error) {

View File

@ -1,8 +1,8 @@
package parser package parser
import "git.tebibyte.media/sashakoshka/arf/types" import "git.tebibyte.media/arf/arf/types"
import "git.tebibyte.media/sashakoshka/arf/lexer" import "git.tebibyte.media/arf/arf/lexer"
import "git.tebibyte.media/sashakoshka/arf/infoerr" import "git.tebibyte.media/arf/arf/infoerr"
// parseData parses a data section. // parseData parses a data section.
func (parser *ParsingOperation) parseDataSection () ( func (parser *ParsingOperation) parseDataSection () (

View File

@ -1,8 +1,8 @@
package parser package parser
import "git.tebibyte.media/sashakoshka/arf/types" import "git.tebibyte.media/arf/arf/types"
import "git.tebibyte.media/sashakoshka/arf/lexer" import "git.tebibyte.media/arf/arf/lexer"
import "git.tebibyte.media/sashakoshka/arf/infoerr" import "git.tebibyte.media/arf/arf/infoerr"
func (parser *ParsingOperation) parseEnumSection () ( func (parser *ParsingOperation) parseEnumSection () (
section *EnumSection, section *EnumSection,

View File

@ -1,8 +1,8 @@
package parser package parser
import "git.tebibyte.media/sashakoshka/arf/types" import "git.tebibyte.media/arf/arf/types"
import "git.tebibyte.media/sashakoshka/arf/lexer" import "git.tebibyte.media/arf/arf/lexer"
import "git.tebibyte.media/sashakoshka/arf/infoerr" import "git.tebibyte.media/arf/arf/infoerr"
// parseFaceSection parses an interface section. // parseFaceSection parses an interface section.
func (parser *ParsingOperation) parseFaceSection () ( func (parser *ParsingOperation) parseFaceSection () (

View File

@ -1,8 +1,8 @@
package parser package parser
import "git.tebibyte.media/sashakoshka/arf/types" import "git.tebibyte.media/arf/arf/types"
import "git.tebibyte.media/sashakoshka/arf/lexer" import "git.tebibyte.media/arf/arf/lexer"
// import "git.tebibyte.media/sashakoshka/arf/infoerr" // import "git.tebibyte.media/arf/arf/infoerr"
// parseFunc parses a function section. // parseFunc parses a function section.
func (parser *ParsingOperation) parseFuncSection () ( func (parser *ParsingOperation) parseFuncSection () (

View File

@ -1,7 +1,7 @@
package parser package parser
import "git.tebibyte.media/sashakoshka/arf/lexer" import "git.tebibyte.media/arf/arf/lexer"
import "git.tebibyte.media/sashakoshka/arf/infoerr" import "git.tebibyte.media/arf/arf/infoerr"
// parseMeta parsese the metadata header at the top of an arf file. // parseMeta parsese the metadata header at the top of an arf file.
func (parser *ParsingOperation) parseMeta () (err error) { func (parser *ParsingOperation) parseMeta () (err error) {

View File

@ -1,8 +1,8 @@
package parser package parser
import "git.tebibyte.media/sashakoshka/arf/types" import "git.tebibyte.media/arf/arf/types"
import "git.tebibyte.media/sashakoshka/arf/lexer" import "git.tebibyte.media/arf/arf/lexer"
import "git.tebibyte.media/sashakoshka/arf/infoerr" import "git.tebibyte.media/arf/arf/infoerr"
// parseObjtSection parses an object type definition. This allows for structured // parseObjtSection parses an object type definition. This allows for structured
// types to be defined, and for member variables to be added and overridden. // types to be defined, and for member variables to be added and overridden.

View File

@ -3,9 +3,9 @@ package parser
import "io" import "io"
import "os" import "os"
import "path/filepath" import "path/filepath"
import "git.tebibyte.media/sashakoshka/arf/file" import "git.tebibyte.media/arf/arf/file"
import "git.tebibyte.media/sashakoshka/arf/lexer" import "git.tebibyte.media/arf/arf/lexer"
import "git.tebibyte.media/sashakoshka/arf/infoerr" import "git.tebibyte.media/arf/arf/infoerr"
// ParsingOperation holds information about an ongoing parsing operation. // ParsingOperation holds information about an ongoing parsing operation.
type ParsingOperation struct { type ParsingOperation struct {

View File

@ -3,7 +3,7 @@ package parser
import "io" import "io"
import "strings" import "strings"
import "testing" import "testing"
// import "git.tebibyte.media/sashakoshka/arf/types" // import "git.tebibyte.media/arf/arf/types"
func checkTree (modulePath string, correct string, test *testing.T) { func checkTree (modulePath string, correct string, test *testing.T) {
tree, err := Parse(modulePath) tree, err := Parse(modulePath)

View File

@ -1,7 +1,7 @@
package parser package parser
import "git.tebibyte.media/sashakoshka/arf/file" import "git.tebibyte.media/arf/arf/file"
import "git.tebibyte.media/sashakoshka/arf/types" import "git.tebibyte.media/arf/arf/types"
// SyntaxTree represents an abstract syntax tree. It covers an entire module. It // SyntaxTree represents an abstract syntax tree. It covers an entire module. It
// can be expected to be syntactically correct, but it might not be semantically // can be expected to be syntactically correct, but it might not be semantically

View File

@ -1,8 +1,8 @@
package parser package parser
import "git.tebibyte.media/sashakoshka/arf/types" import "git.tebibyte.media/arf/arf/types"
import "git.tebibyte.media/sashakoshka/arf/lexer" import "git.tebibyte.media/arf/arf/lexer"
// import "git.tebibyte.media/sashakoshka/arf/infoerr" // import "git.tebibyte.media/arf/arf/infoerr"
// parseTypeSection parses a blind type definition, meaning it can inherit from // parseTypeSection parses a blind type definition, meaning it can inherit from
// anything including primitives, but cannot define structure. // anything including primitives, but cannot define structure.