From 39c63af56e976de26201a6c69bbea1f943145873 Mon Sep 17 00:00:00 2001 From: Antonio Date: Mon, 28 Nov 2022 09:40:33 -0500 Subject: [PATCH 1/2] Documentation --- docs/embedding/embedding.md | 40 +++++++ docs/syntax/basics.md | 196 ++++++++++++++++++++++++++++++++ docs/syntax/built-in-symbols.md | 23 ++++ docs/syntax/classes.md | 37 ++++++ docs/syntax/control-flow.md | 58 ++++++++++ docs/syntax/functions.md | 86 ++++++++++++++ docs/syntax/loops.md | 40 +++++++ docs/syntax/magic-methods.md | 51 +++++++++ 8 files changed, 531 insertions(+) create mode 100644 docs/embedding/embedding.md create mode 100644 docs/syntax/basics.md create mode 100644 docs/syntax/built-in-symbols.md create mode 100644 docs/syntax/classes.md create mode 100644 docs/syntax/control-flow.md create mode 100644 docs/syntax/functions.md create mode 100644 docs/syntax/loops.md create mode 100644 docs/syntax/magic-methods.md diff --git a/docs/embedding/embedding.md b/docs/embedding/embedding.md new file mode 100644 index 0000000..36e6f05 --- /dev/null +++ b/docs/embedding/embedding.md @@ -0,0 +1,40 @@ +# Embedding + +Embedding the language is simple: + +```go +package main + +import ( + "github.com/shoriwe/gplasma/pkg/vm" + "os" +) + +const myScript = ` +args = get_args() +if args.__len__() > 1 + println(args.__string__()) +else + println("No") +end +` + +func main() { + plasma := vm.NewVM(os.Stdin, os.Stdout, os.Stderr) + plasma.Load("get_args", func(plasma *vm.Plasma) *vm.Value { + return plasma.NewBuiltInFunction(plasma.Symbols(), + func(argument ...*vm.Value) (*vm.Value, error) { + tupleValues := make([]*vm.Value, 0, len(os.Args)) + for _, cmdArg := range os.Args { + tupleValues = append(tupleValues, plasma.NewString([]byte(cmdArg))) + } + return plasma.NewTuple(tupleValues), nil + }) + }) + _, errorChannel, _ := plasma.ExecuteString(myScript) + err := <-errorChannel + if err != nil { + panic(err) + } +} +``` \ No newline at end of file diff --git a/docs/syntax/basics.md b/docs/syntax/basics.md new file mode 100644 index 0000000..d4fc02f --- /dev/null +++ b/docs/syntax/basics.md @@ -0,0 +1,196 @@ +# Basics + +## Assignments + +You can assign values to: + +- Identifiers: + +```ruby +my_variable = "Hello" +``` + +- Selectors: + +```ruby +my_variable.my_property = "Hello" +``` + +- Indexes: + +```ruby +my_array[2] = "Hello" + +my_hash["Antonio"] = "Hello" +``` + +## Deleting symbols + +Use the `delete` statement to delete symbols, selectors and indexes: + +```ruby +delete my_variable # Remove the symbol `my_variable` +delete my_variable.my_property # Remove `my_property` from `my_variable` object +delete my_hash['Work'] # Remove the Key `Work` from `my_hash` +``` + +## Unary operators + +Not: `not`, `!` +Negate bits: `~` + +## Binary operators + +- Boolean And: `and`, `&&` +- Boolean Or: `or`, `||` +- Boolean Xor: `xor` +- In: `in` +- Is: `is` +- Implements: `implements` +- Equals: `==` +- Not Equals: `!=` +- Greater than: `>` +- Greater or equal than: `>=` +- Less than: `<` +- Less or equal than: `<=` +- Bitwise or: `|` +- Bitwise and: `&` +- Bitwise xor: `^` +- Bitwise left: `<<` +- Bitwise right: `>>` +- Add: `+` +- Sub: `-` +- Div: `/` +- Floor division: `//` +- Mul: `*` +- Mod: `%` +- Pow: `**` + +## Array expressions + +Arrays can be defined using `[` and `]`, separating its internal elements with commas: + +```ruby +my_array = [0, 1, 2, 3, "A string", [0, 1, 2]] +``` + +Arrays have specific behavior methods: + +- `append(value)`: appends a value to the array +- `clear()`: clears the contents of the array +- `index(value)`: returns the index of a value in the array, `-1` if not found +- `pop()`: remove and returns the last element of the array +- `insert(index, value)`: inserts at index a new value +- `remove(index)`: remove element at index + +## Tuple expressions + +Tuples can be defined using `(` and `)`, separating its internal elements with commas: + +```ruby +my_tuple = (0, 1, 2, 3, "A string", [0, 1, 2]) +``` + +Notice that tuples are immutable, meaning you can not modify them but the elements inside them can. + +## Hash expressions + +Hash expressions, also known as map can be defined with `{` and `}`: + +```ruby +my_hash = { + "Antonio": "Developer", + "Victor": "Administrator" +} +``` + +## String and bytes expressions + +Strings can be defined of 3 ways: + +```ruby +single_quote = 'My string' +double_quote = "My string" +back_quote = `My string` +``` + +Bytes work the same as String but prepending a letter `b` before the first quote: + +```ruby +single_quote = b'My bytes' +double_quote = b"My bytes" +back_quote = b`My bytes` +``` + +Special methods for both: + +- `join(tuple|array)`: returns a string with the content of the container but separating them with the contents of the + original string +- `split(sep)`: returns a tuple with the string separated using the pattern of `sep` +- `upper()`: returns a new string but uppercase +- `lower()`: returns a new string but lowercase +- `count(pattern)`: counts how many times a pattern is inside the string +- `index(pattern)`: returns the index of the first pattern in the string, `-1` if not found + +## Numbers + +Plasma has integers and float that can be operated between both: + +```ruby +my_int = 10 +my_float = 2.0 +my_result = my_int ** my_float +``` + +Special methods of both types are: + +- `to_big()`: returns a bytes string with the 64 bit big endian contents of the number +- `from_big(bytes)`: reconstruct the number from the big endian bytes of the string +- `to_little()`: returns a bytes string with the 64 bit little endian contents of the number +- `from_little(bytes)`: reconstruct the number from the little endian bytes of the string + +## Booleans + +There are to booleans `true` and `false` + +```ruby +# Alert of blocking code +while true + pass +end + +until false + pass +end +``` + +## None + +```ruby +a = none +``` + +## Functions calls + +```ruby +my_func() +(lambda x, y: x + y)(1, 2) +``` + +## One line expressions + +- Conditions `if` and `unless`: + +```ruby +a = 2 +b = 5 if a == 2 else 10 +b = 5 unless a == 2 else 10 +``` + +- Generators: + +```ruby +for pow in (number ** 2 for number in range(1, 10)) + println(pow) +end +``` \ No newline at end of file diff --git a/docs/syntax/built-in-symbols.md b/docs/syntax/built-in-symbols.md new file mode 100644 index 0000000..00d3979 --- /dev/null +++ b/docs/syntax/built-in-symbols.md @@ -0,0 +1,23 @@ +# Built-in types + +These classes are previously defined in the language: + +- `Class` +- `Value` +- `Function` +- `String` +- `Bytes` +- `Bool` +- `NoneType` +- `Int` +- `Float` +- `Tuple` +- `Array` +- `Hash` + +# Built-in functions + +- `input(string)` +- `println(args...)` +- `print(args...)` +- `range(start, end [, step])` \ No newline at end of file diff --git a/docs/syntax/classes.md b/docs/syntax/classes.md new file mode 100644 index 0000000..34c585e --- /dev/null +++ b/docs/syntax/classes.md @@ -0,0 +1,37 @@ +## Classes and interfaces + +Interfaces work the same way as classes, but they only permit function and generator definitions + +ALWAYS create `__init__` method inside your classes and interfaces: + +```ruby +interface Vehicle + def __init__() + pass + end + + def drive() + println("driving") + end +end + +class Car(Vehicle) + def __init__(name) + self.name name + end +end +``` + +# Modules + +Modules are a special way to organize symbols + +```ruby +module MyModule + def calc(a) + println(a**2) + end +end + +MyModule.calc(10) +``` \ No newline at end of file diff --git a/docs/syntax/control-flow.md b/docs/syntax/control-flow.md new file mode 100644 index 0000000..85d7afd --- /dev/null +++ b/docs/syntax/control-flow.md @@ -0,0 +1,58 @@ +# Control flow + +- Nop expression: `pass` used to do nothing +- `if` and `unless`: + +If and unless blocks are the basic condition control flow of the language. + +Unless works the same way as `if` but it previously negates the expression. + +```ruby +if my_condition + pass +elif other_condition + pass +else + pass +end + +unless my_condition + pass +elif other_condition + pass +else + pass +end +``` + +- `switch` statements + +```ruby +a = 1 +switch a +case 1 + pass +case 2 + pass +case 3 + pass +default + pass +end +``` + +- `BEGIN` and `END` blocks + +This two blocks are executed before the string `BEGIN` and at the end of the script `END`: + +```ruby +BEGIN + println("first") +end + +println("middle") + +END + println("end") +end +``` \ No newline at end of file diff --git a/docs/syntax/functions.md b/docs/syntax/functions.md new file mode 100644 index 0000000..c242a2b --- /dev/null +++ b/docs/syntax/functions.md @@ -0,0 +1,86 @@ +# Anonymous functions + +Define anonymous functions, meaning you don't need to assign them to a symbol: + +```ruby +result = (lambda x: x ** 2)(5) +println(result) +``` + +Expected output: + +``` +25 +``` + +# Functions + +To define functions you will make use of the keyword `def`: + +```ruby +def my_func(a, b) + return a ** b +end + +println(my_func(5, 2)) +``` + +Expected output: + +``` +25 +``` + +# Generators + +Generators are special functions that can be used to simplify the implementation iterator objects: + +To define generators you will make use of the keyword `genb`, When `yield` is used the function `__next__()` function of +the object returns the iterated value, on `return` the iterator ends: + +```ruby +gen my_gen(pow) + for number in range(1, 5) + yield number ** pow + end + return pow ** (1/2) +end + +for result in my_gen(25) + println(result) +end +``` + +The expected output will be: + +``` +1 +33554432 +847288609443 +1125899906842624 +5.000000 +``` + +# Defer statement + +The `defer` statement is used to call a function just after the `return` statement is evaluated. + +```ruby +def my_func() + defer println("third") # This will print third + defer println("last") # This will print last + println("first") # This will print first + return println("second") # This till print second +end + +my_func() +``` + +Expected output: + +``` +first +second +third +last +``` diff --git a/docs/syntax/loops.md b/docs/syntax/loops.md new file mode 100644 index 0000000..2c56775 --- /dev/null +++ b/docs/syntax/loops.md @@ -0,0 +1,40 @@ +# Loops + +- `do-while`: execute the code before evaluating the exit condition: + +```ruby +do + println("at least once") +while my_condition() +``` + +- `while` and `until`: + +```ruby +while my_condition() + # do something + pass +end +``` + +Until works similar to `while`, the key difference is that it negates the condition prior evaluation: + +```ruby +until false + # do something + pass +end +``` + +- `for`: iterates using `__next__` and `__has_next__` results: + +```ruby +for number in [1, 2, 3] + println(a) +end +``` + +## Loop controls + +- `continue` +- `break` diff --git a/docs/syntax/magic-methods.md b/docs/syntax/magic-methods.md new file mode 100644 index 0000000..70b4093 --- /dev/null +++ b/docs/syntax/magic-methods.md @@ -0,0 +1,51 @@ +# Magic methods + +Magic functions are interfaces that usually used by libraries of the language + +- `__init__()` +- `__has_next__()` +- `__next__()` +- `__not__()` +- `__positive__(right)` +- `__negative__(right)` +- `__negate_bits__(right)` +- `__and__(right)` +- `__or__(right)` +- `__xor__(right)` +- `__in__(left)` +- `__is__(right)` +- `__implements__(right)` +- `__equal__(right)` +- `__not_equal__(right)` +- `__greater_than__(right)` +- `__greater_or_equal_than__(right)` +- `__less_than__(right)` +- `__less_or_equal_than__(right)` +- `__bitwise_or__(right)` +- `__bitwise_xor__(right)` +- `__bitwise_and__(right)` +- `__bitwise_left__(right)` +- `__bitwise_right__(right)` +- `__add__(right)` +- `__sub__(right)` +- `__mul__(right)` +- `__div__(right)` +- `__floor_div__(right)` +- `__mod__(right)` +- `__pow__(right)` +- `__len__()` +- `__bool__()` +- `__string__()` +- `__int__()` +- `__float__()` +- `__bytes__()` +- `__array__()` +- `__tuple__()` +- `__get__(index)` +- `__set__(index, value)` +- `__del__(value)` +- `__call__(args...)` +- `__class__()` +- `__sub_classes__()` +- `__copy__()` +- `__iter__()` \ No newline at end of file From 5354faaaec0ff74d7c47abe49329a87f29d4894b Mon Sep 17 00:00:00 2001 From: Antonio Date: Mon, 28 Nov 2022 09:40:51 -0500 Subject: [PATCH 2/2] Project renamed from **gplasma** to **plasma** --- cmd/plasma/execute-files.go | 4 ++-- cmd/plasma/repl.go | 4 ++-- examples/extend/main.go | 2 +- go.mod | 2 +- pkg/ast/expression.go | 2 +- pkg/ast/statement.go | 2 +- pkg/bytecode/assembler/assemble-array.go | 6 +++--- pkg/bytecode/assembler/assemble-assignment.go | 8 ++++---- pkg/bytecode/assembler/assemble-call.go | 6 +++--- pkg/bytecode/assembler/assemble-class.go | 6 +++--- pkg/bytecode/assembler/assemble-defer.go | 6 +++--- pkg/bytecode/assembler/assemble-delete.go | 8 ++++---- pkg/bytecode/assembler/assemble-expression.go | 2 +- pkg/bytecode/assembler/assemble-function.go | 6 +++--- pkg/bytecode/assembler/assemble-hash.go | 6 +++--- pkg/bytecode/assembler/assemble-identifier.go | 6 +++--- pkg/bytecode/assembler/assemble-index.go | 4 ++-- pkg/bytecode/assembler/assemble-jump.go | 6 +++--- pkg/bytecode/assembler/assemble-label.go | 6 +++--- pkg/bytecode/assembler/assemble-literals.go | 6 +++--- pkg/bytecode/assembler/assemble-return-yield.go | 4 ++-- pkg/bytecode/assembler/assemble-selector.go | 6 +++--- pkg/bytecode/assembler/assemble-statement.go | 2 +- pkg/bytecode/assembler/assemble-super.go | 4 ++-- pkg/bytecode/assembler/assemble-tuple.go | 6 +++--- pkg/bytecode/assembler/assemble.go | 6 +++--- pkg/bytecode/assembler/assemble_test.go | 12 ++++++------ pkg/compiler/compile.go | 16 ++++++++-------- pkg/lexer/lexer.go | 2 +- pkg/lexer/lexer_test.go | 2 +- pkg/parser/common.go | 2 +- pkg/parser/iter.go | 2 +- pkg/parser/parse-array-expression.go | 4 ++-- pkg/parser/parse-assignment-statement.go | 2 +- pkg/parser/parse-begin-statement.go | 4 ++-- pkg/parser/parse-binary-expression.go | 4 ++-- pkg/parser/parse-break-statement.go | 2 +- pkg/parser/parse-class-statement.go | 4 ++-- pkg/parser/parse-continue-statement.go | 2 +- pkg/parser/parse-defer-statement.go | 2 +- pkg/parser/parse-delete-statement.go | 2 +- pkg/parser/parse-do-while.go | 4 ++-- pkg/parser/parse-end-statement.go | 4 ++-- pkg/parser/parse-for-statement.go | 4 ++-- .../parse-function-definition-statement.go | 4 ++-- pkg/parser/parse-generator-expression.go | 4 ++-- pkg/parser/parse-generator-statement.go | 4 ++-- pkg/parser/parse-hash-expression.go | 4 ++-- pkg/parser/parse-if-one-liner-expression.go | 4 ++-- pkg/parser/parse-if-statement.go | 4 ++-- pkg/parser/parse-index-expression.go | 4 ++-- pkg/parser/parse-interface-statement.go | 4 ++-- pkg/parser/parse-lambda-expression.go | 4 ++-- pkg/parser/parse-literal-expression.go | 4 ++-- pkg/parser/parse-method-invocation-expression.go | 4 ++-- pkg/parser/parse-module-statement.go | 4 ++-- pkg/parser/parse-operand.go | 4 ++-- pkg/parser/parse-parentheses-expression.go | 4 ++-- pkg/parser/parse-pass-statement.go | 2 +- pkg/parser/parse-return-statement.go | 4 ++-- pkg/parser/parse-selector-expression.go | 4 ++-- pkg/parser/parse-super-statement.go | 2 +- pkg/parser/parse-switch-statement.go | 4 ++-- pkg/parser/parse-unary-expression.go | 4 ++-- pkg/parser/parse-unless-one-liner-expression.go | 4 ++-- pkg/parser/parse-unless-statement.go | 4 ++-- pkg/parser/parse-until-statement.go | 4 ++-- pkg/parser/parse-while-statement.go | 4 ++-- pkg/parser/parse-yield-statement.go | 4 ++-- pkg/parser/parser-primary-expression.go | 4 ++-- pkg/parser/parser.go | 6 +++--- pkg/parser/parser_test.go | 8 ++++---- pkg/passes/checks/checks.go | 4 ++-- pkg/passes/checks/checks_test.go | 8 ++++---- pkg/passes/simplification/anon-identifier.go | 2 +- pkg/passes/simplification/simplify-array.go | 4 ++-- pkg/passes/simplification/simplify-assign.go | 6 +++--- pkg/passes/simplification/simplify-binary.go | 6 +++--- pkg/passes/simplification/simplify-call.go | 4 ++-- pkg/passes/simplification/simplify-class.go | 4 ++-- pkg/passes/simplification/simplify-defer.go | 4 ++-- pkg/passes/simplification/simplify-delete.go | 4 ++-- pkg/passes/simplification/simplify-do-while.go | 4 ++-- pkg/passes/simplification/simplify-expression.go | 4 ++-- pkg/passes/simplification/simplify-for.go | 6 +++--- pkg/passes/simplification/simplify-function.go | 4 ++-- pkg/passes/simplification/simplify-generator.go | 4 ++-- pkg/passes/simplification/simplify-hash.go | 4 ++-- pkg/passes/simplification/simplify-identifier.go | 4 ++-- .../simplification/simplify-if-one-liner.go | 4 ++-- pkg/passes/simplification/simplify-if.go | 4 ++-- pkg/passes/simplification/simplify-index.go | 4 ++-- pkg/passes/simplification/simplify-interface.go | 4 ++-- pkg/passes/simplification/simplify-lambda.go | 4 ++-- pkg/passes/simplification/simplify-literal.go | 6 +++--- .../simplification/simplify-loop-operations.go | 4 ++-- pkg/passes/simplification/simplify-module.go | 4 ++-- .../simplification/simplify-parentheses.go | 4 ++-- pkg/passes/simplification/simplify-pass.go | 4 ++-- .../simplification/simplify-return-yield.go | 4 ++-- pkg/passes/simplification/simplify-selector.go | 4 ++-- pkg/passes/simplification/simplify-statement.go | 4 ++-- pkg/passes/simplification/simplify-super.go | 4 ++-- pkg/passes/simplification/simplify-switch.go | 4 ++-- pkg/passes/simplification/simplify-tuple.go | 4 ++-- pkg/passes/simplification/simplify-unary.go | 6 +++--- pkg/passes/simplification/simplify-unless.go | 4 ++-- pkg/passes/simplification/simplify-until.go | 4 ++-- pkg/passes/simplification/simplify-while.go | 4 ++-- pkg/passes/simplification/simplify.go | 4 ++-- pkg/passes/simplification/simplify_test.go | 8 ++++---- pkg/passes/transformations-1/label.go | 2 +- pkg/passes/transformations-1/transform-array.go | 4 ++-- .../transformations-1/transform-assignment.go | 4 ++-- pkg/passes/transformations-1/transform-binary.go | 6 +++--- pkg/passes/transformations-1/transform-call.go | 4 ++-- pkg/passes/transformations-1/transform-class.go | 4 ++-- pkg/passes/transformations-1/transform-defer.go | 4 ++-- pkg/passes/transformations-1/transform-delete.go | 4 ++-- .../transformations-1/transform-do-while.go | 4 ++-- .../transformations-1/transform-expression.go | 4 ++-- .../transformations-1/transform-function.go | 4 ++-- .../transform-generator-expr.go | 8 ++++---- .../transformations-1/transform-generator.go | 10 +++++----- pkg/passes/transformations-1/transform-hash.go | 4 ++-- .../transformations-1/transform-identifier.go | 4 ++-- .../transformations-1/transform-if-one-liner.go | 4 ++-- pkg/passes/transformations-1/transform-if.go | 4 ++-- pkg/passes/transformations-1/transform-index.go | 4 ++-- pkg/passes/transformations-1/transform-lambda.go | 4 ++-- .../transformations-1/transform-literals.go | 4 ++-- .../transform-loop-operations.go | 4 ++-- pkg/passes/transformations-1/transform-module.go | 6 +++--- .../transformations-1/transform-return-yield.go | 4 ++-- .../transformations-1/transform-selector.go | 4 ++-- .../transformations-1/transform-statement.go | 4 ++-- pkg/passes/transformations-1/transform-super.go | 4 ++-- pkg/passes/transformations-1/transform-tuple.go | 4 ++-- pkg/passes/transformations-1/transform-unary.go | 6 +++--- pkg/passes/transformations-1/transform-while.go | 4 ++-- pkg/passes/transformations-1/transform_test.go | 10 +++++----- pkg/passes/transformations-1/transformations.go | 4 ++-- pkg/test-samples/success/samples.go | 2 +- pkg/vm/array.go | 2 +- pkg/vm/bool.go | 2 +- pkg/vm/bytes.go | 2 +- pkg/vm/class.go | 2 +- pkg/vm/context.go | 2 +- pkg/vm/do.go | 8 ++++---- pkg/vm/float.go | 2 +- pkg/vm/hash.go | 2 +- pkg/vm/init.go | 4 ++-- pkg/vm/integer.go | 2 +- pkg/vm/none.go | 2 +- pkg/vm/string.go | 2 +- pkg/vm/transform.go | 2 +- pkg/vm/tuple.go | 2 +- pkg/vm/value.go | 2 +- pkg/vm/vm.go | 2 +- pkg/vm/vm_test.go | 4 ++-- plasma.go | 4 ++-- 161 files changed, 340 insertions(+), 340 deletions(-) diff --git a/cmd/plasma/execute-files.go b/cmd/plasma/execute-files.go index 6eb2349..4705c1f 100644 --- a/cmd/plasma/execute-files.go +++ b/cmd/plasma/execute-files.go @@ -1,8 +1,8 @@ package main import ( - "github.com/shoriwe/gplasma/pkg/compiler" - "github.com/shoriwe/gplasma/pkg/vm" + "github.com/shoriwe/plasma/pkg/compiler" + "github.com/shoriwe/plasma/pkg/vm" "os" ) diff --git a/cmd/plasma/repl.go b/cmd/plasma/repl.go index bfe6166..4024496 100644 --- a/cmd/plasma/repl.go +++ b/cmd/plasma/repl.go @@ -4,8 +4,8 @@ import ( "bufio" "fmt" "github.com/fatih/color" - "github.com/shoriwe/gplasma/pkg/compiler" - "github.com/shoriwe/gplasma/pkg/vm" + "github.com/shoriwe/plasma/pkg/compiler" + "github.com/shoriwe/plasma/pkg/vm" "os" "os/signal" "strings" diff --git a/examples/extend/main.go b/examples/extend/main.go index 9a09126..64f8ad5 100644 --- a/examples/extend/main.go +++ b/examples/extend/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/shoriwe/gplasma/pkg/vm" + "github.com/shoriwe/plasma/pkg/vm" "os" ) diff --git a/go.mod b/go.mod index 799f163..ae94fb7 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/shoriwe/gplasma +module github.com/shoriwe/plasma go 1.18 diff --git a/pkg/ast/expression.go b/pkg/ast/expression.go index 568429a..e6dbdd8 100644 --- a/pkg/ast/expression.go +++ b/pkg/ast/expression.go @@ -1,7 +1,7 @@ package ast import ( - lexer2 "github.com/shoriwe/gplasma/pkg/lexer" + lexer2 "github.com/shoriwe/plasma/pkg/lexer" ) type ( diff --git a/pkg/ast/statement.go b/pkg/ast/statement.go index a8a6ea0..b5cdf11 100644 --- a/pkg/ast/statement.go +++ b/pkg/ast/statement.go @@ -1,7 +1,7 @@ package ast import ( - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/lexer" ) type ( diff --git a/pkg/bytecode/assembler/assemble-array.go b/pkg/bytecode/assembler/assemble-array.go index 58dfeb8..14c5e28 100644 --- a/pkg/bytecode/assembler/assemble-array.go +++ b/pkg/bytecode/assembler/assemble-array.go @@ -1,9 +1,9 @@ package assembler import ( - "github.com/shoriwe/gplasma/pkg/ast3" - "github.com/shoriwe/gplasma/pkg/bytecode/opcodes" - "github.com/shoriwe/gplasma/pkg/common" + "github.com/shoriwe/plasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/bytecode/opcodes" + "github.com/shoriwe/plasma/pkg/common" ) func (a *assembler) Array(array *ast3.Array) []byte { diff --git a/pkg/bytecode/assembler/assemble-assignment.go b/pkg/bytecode/assembler/assemble-assignment.go index a1d4181..5f1cc8c 100644 --- a/pkg/bytecode/assembler/assemble-assignment.go +++ b/pkg/bytecode/assembler/assemble-assignment.go @@ -2,10 +2,10 @@ package assembler import ( "fmt" - "github.com/shoriwe/gplasma/pkg/ast3" - "github.com/shoriwe/gplasma/pkg/bytecode/opcodes" - "github.com/shoriwe/gplasma/pkg/common" - magic_functions "github.com/shoriwe/gplasma/pkg/common/magic-functions" + "github.com/shoriwe/plasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/bytecode/opcodes" + "github.com/shoriwe/plasma/pkg/common" + magic_functions "github.com/shoriwe/plasma/pkg/common/magic-functions" "reflect" ) diff --git a/pkg/bytecode/assembler/assemble-call.go b/pkg/bytecode/assembler/assemble-call.go index d7b8dbf..2bd455e 100644 --- a/pkg/bytecode/assembler/assemble-call.go +++ b/pkg/bytecode/assembler/assemble-call.go @@ -1,9 +1,9 @@ package assembler import ( - "github.com/shoriwe/gplasma/pkg/ast3" - "github.com/shoriwe/gplasma/pkg/bytecode/opcodes" - "github.com/shoriwe/gplasma/pkg/common" + "github.com/shoriwe/plasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/bytecode/opcodes" + "github.com/shoriwe/plasma/pkg/common" ) func (a *assembler) Call(call *ast3.Call) []byte { diff --git a/pkg/bytecode/assembler/assemble-class.go b/pkg/bytecode/assembler/assemble-class.go index 750135f..3d3cf14 100644 --- a/pkg/bytecode/assembler/assemble-class.go +++ b/pkg/bytecode/assembler/assemble-class.go @@ -1,9 +1,9 @@ package assembler import ( - "github.com/shoriwe/gplasma/pkg/ast3" - "github.com/shoriwe/gplasma/pkg/bytecode/opcodes" - "github.com/shoriwe/gplasma/pkg/common" + "github.com/shoriwe/plasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/bytecode/opcodes" + "github.com/shoriwe/plasma/pkg/common" ) func (a *assembler) Class(class *ast3.Class) []byte { diff --git a/pkg/bytecode/assembler/assemble-defer.go b/pkg/bytecode/assembler/assemble-defer.go index 32e533e..54c2a75 100644 --- a/pkg/bytecode/assembler/assemble-defer.go +++ b/pkg/bytecode/assembler/assemble-defer.go @@ -1,9 +1,9 @@ package assembler import ( - "github.com/shoriwe/gplasma/pkg/ast3" - "github.com/shoriwe/gplasma/pkg/bytecode/opcodes" - "github.com/shoriwe/gplasma/pkg/common" + "github.com/shoriwe/plasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/bytecode/opcodes" + "github.com/shoriwe/plasma/pkg/common" ) func (a *assembler) Defer(defer_ *ast3.Defer) []byte { diff --git a/pkg/bytecode/assembler/assemble-delete.go b/pkg/bytecode/assembler/assemble-delete.go index 6167dfd..5d3ea4a 100644 --- a/pkg/bytecode/assembler/assemble-delete.go +++ b/pkg/bytecode/assembler/assemble-delete.go @@ -2,10 +2,10 @@ package assembler import ( "fmt" - "github.com/shoriwe/gplasma/pkg/ast3" - "github.com/shoriwe/gplasma/pkg/bytecode/opcodes" - "github.com/shoriwe/gplasma/pkg/common" - magic_functions "github.com/shoriwe/gplasma/pkg/common/magic-functions" + "github.com/shoriwe/plasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/bytecode/opcodes" + "github.com/shoriwe/plasma/pkg/common" + magic_functions "github.com/shoriwe/plasma/pkg/common/magic-functions" "reflect" ) diff --git a/pkg/bytecode/assembler/assemble-expression.go b/pkg/bytecode/assembler/assemble-expression.go index be635d4..34d2d7a 100644 --- a/pkg/bytecode/assembler/assemble-expression.go +++ b/pkg/bytecode/assembler/assemble-expression.go @@ -2,7 +2,7 @@ package assembler import ( "fmt" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast3" "reflect" ) diff --git a/pkg/bytecode/assembler/assemble-function.go b/pkg/bytecode/assembler/assemble-function.go index 10ee35d..5bb4763 100644 --- a/pkg/bytecode/assembler/assemble-function.go +++ b/pkg/bytecode/assembler/assemble-function.go @@ -1,9 +1,9 @@ package assembler import ( - "github.com/shoriwe/gplasma/pkg/ast3" - "github.com/shoriwe/gplasma/pkg/bytecode/opcodes" - "github.com/shoriwe/gplasma/pkg/common" + "github.com/shoriwe/plasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/bytecode/opcodes" + "github.com/shoriwe/plasma/pkg/common" ) func (a *assembler) Function(function *ast3.Function) []byte { diff --git a/pkg/bytecode/assembler/assemble-hash.go b/pkg/bytecode/assembler/assemble-hash.go index b4c983a..0c1cb7b 100644 --- a/pkg/bytecode/assembler/assemble-hash.go +++ b/pkg/bytecode/assembler/assemble-hash.go @@ -1,9 +1,9 @@ package assembler import ( - "github.com/shoriwe/gplasma/pkg/ast3" - "github.com/shoriwe/gplasma/pkg/bytecode/opcodes" - "github.com/shoriwe/gplasma/pkg/common" + "github.com/shoriwe/plasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/bytecode/opcodes" + "github.com/shoriwe/plasma/pkg/common" ) func (a *assembler) Hash(hash *ast3.Hash) []byte { diff --git a/pkg/bytecode/assembler/assemble-identifier.go b/pkg/bytecode/assembler/assemble-identifier.go index 3322d3c..3e67801 100644 --- a/pkg/bytecode/assembler/assemble-identifier.go +++ b/pkg/bytecode/assembler/assemble-identifier.go @@ -1,9 +1,9 @@ package assembler import ( - "github.com/shoriwe/gplasma/pkg/ast3" - "github.com/shoriwe/gplasma/pkg/bytecode/opcodes" - "github.com/shoriwe/gplasma/pkg/common" + "github.com/shoriwe/plasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/bytecode/opcodes" + "github.com/shoriwe/plasma/pkg/common" ) func (a *assembler) Identifier(ident *ast3.Identifier) []byte { diff --git a/pkg/bytecode/assembler/assemble-index.go b/pkg/bytecode/assembler/assemble-index.go index e36d395..fd87559 100644 --- a/pkg/bytecode/assembler/assemble-index.go +++ b/pkg/bytecode/assembler/assemble-index.go @@ -1,8 +1,8 @@ package assembler import ( - "github.com/shoriwe/gplasma/pkg/ast3" - magic_functions "github.com/shoriwe/gplasma/pkg/common/magic-functions" + "github.com/shoriwe/plasma/pkg/ast3" + magic_functions "github.com/shoriwe/plasma/pkg/common/magic-functions" ) func (a *assembler) Index(index *ast3.Index) []byte { diff --git a/pkg/bytecode/assembler/assemble-jump.go b/pkg/bytecode/assembler/assemble-jump.go index 1b3e2bd..af806a5 100644 --- a/pkg/bytecode/assembler/assemble-jump.go +++ b/pkg/bytecode/assembler/assemble-jump.go @@ -1,9 +1,9 @@ package assembler import ( - "github.com/shoriwe/gplasma/pkg/ast3" - "github.com/shoriwe/gplasma/pkg/bytecode/opcodes" - "github.com/shoriwe/gplasma/pkg/common" + "github.com/shoriwe/plasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/bytecode/opcodes" + "github.com/shoriwe/plasma/pkg/common" ) func (a *assembler) Jump(jump *ast3.Jump) []byte { diff --git a/pkg/bytecode/assembler/assemble-label.go b/pkg/bytecode/assembler/assemble-label.go index 1d7e87e..79ed667 100644 --- a/pkg/bytecode/assembler/assemble-label.go +++ b/pkg/bytecode/assembler/assemble-label.go @@ -1,9 +1,9 @@ package assembler import ( - "github.com/shoriwe/gplasma/pkg/ast3" - "github.com/shoriwe/gplasma/pkg/bytecode/opcodes" - "github.com/shoriwe/gplasma/pkg/common" + "github.com/shoriwe/plasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/bytecode/opcodes" + "github.com/shoriwe/plasma/pkg/common" ) func (a *assembler) Label(label *ast3.Label) []byte { diff --git a/pkg/bytecode/assembler/assemble-literals.go b/pkg/bytecode/assembler/assemble-literals.go index 2045e9e..d811e37 100644 --- a/pkg/bytecode/assembler/assemble-literals.go +++ b/pkg/bytecode/assembler/assemble-literals.go @@ -1,9 +1,9 @@ package assembler import ( - "github.com/shoriwe/gplasma/pkg/ast3" - "github.com/shoriwe/gplasma/pkg/bytecode/opcodes" - "github.com/shoriwe/gplasma/pkg/common" + "github.com/shoriwe/plasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/bytecode/opcodes" + "github.com/shoriwe/plasma/pkg/common" ) func (a *assembler) Integer(integer *ast3.Integer) []byte { diff --git a/pkg/bytecode/assembler/assemble-return-yield.go b/pkg/bytecode/assembler/assemble-return-yield.go index 528f885..17361b9 100644 --- a/pkg/bytecode/assembler/assemble-return-yield.go +++ b/pkg/bytecode/assembler/assemble-return-yield.go @@ -1,8 +1,8 @@ package assembler import ( - "github.com/shoriwe/gplasma/pkg/ast3" - "github.com/shoriwe/gplasma/pkg/bytecode/opcodes" + "github.com/shoriwe/plasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/bytecode/opcodes" ) func (a *assembler) Return(ret *ast3.Return) []byte { diff --git a/pkg/bytecode/assembler/assemble-selector.go b/pkg/bytecode/assembler/assemble-selector.go index fc00bca..30adcca 100644 --- a/pkg/bytecode/assembler/assemble-selector.go +++ b/pkg/bytecode/assembler/assemble-selector.go @@ -1,9 +1,9 @@ package assembler import ( - "github.com/shoriwe/gplasma/pkg/ast3" - "github.com/shoriwe/gplasma/pkg/bytecode/opcodes" - "github.com/shoriwe/gplasma/pkg/common" + "github.com/shoriwe/plasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/bytecode/opcodes" + "github.com/shoriwe/plasma/pkg/common" ) func (a *assembler) Selector(selector *ast3.Selector) []byte { diff --git a/pkg/bytecode/assembler/assemble-statement.go b/pkg/bytecode/assembler/assemble-statement.go index 694b200..c258164 100644 --- a/pkg/bytecode/assembler/assemble-statement.go +++ b/pkg/bytecode/assembler/assemble-statement.go @@ -2,7 +2,7 @@ package assembler import ( "fmt" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast3" "reflect" ) diff --git a/pkg/bytecode/assembler/assemble-super.go b/pkg/bytecode/assembler/assemble-super.go index 2594de9..69d8a23 100644 --- a/pkg/bytecode/assembler/assemble-super.go +++ b/pkg/bytecode/assembler/assemble-super.go @@ -1,8 +1,8 @@ package assembler import ( - "github.com/shoriwe/gplasma/pkg/ast3" - "github.com/shoriwe/gplasma/pkg/bytecode/opcodes" + "github.com/shoriwe/plasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/bytecode/opcodes" ) func (a *assembler) Super(super *ast3.Super) []byte { diff --git a/pkg/bytecode/assembler/assemble-tuple.go b/pkg/bytecode/assembler/assemble-tuple.go index 450821c..7c5c793 100644 --- a/pkg/bytecode/assembler/assemble-tuple.go +++ b/pkg/bytecode/assembler/assemble-tuple.go @@ -1,9 +1,9 @@ package assembler import ( - "github.com/shoriwe/gplasma/pkg/ast3" - "github.com/shoriwe/gplasma/pkg/bytecode/opcodes" - "github.com/shoriwe/gplasma/pkg/common" + "github.com/shoriwe/plasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/bytecode/opcodes" + "github.com/shoriwe/plasma/pkg/common" ) func (a *assembler) Tuple(tuple *ast3.Tuple) []byte { diff --git a/pkg/bytecode/assembler/assemble.go b/pkg/bytecode/assembler/assemble.go index 8df0d20..7903246 100644 --- a/pkg/bytecode/assembler/assemble.go +++ b/pkg/bytecode/assembler/assemble.go @@ -2,9 +2,9 @@ package assembler import ( "fmt" - "github.com/shoriwe/gplasma/pkg/ast3" - "github.com/shoriwe/gplasma/pkg/bytecode/opcodes" - "github.com/shoriwe/gplasma/pkg/common" + "github.com/shoriwe/plasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/bytecode/opcodes" + "github.com/shoriwe/plasma/pkg/common" "reflect" ) diff --git a/pkg/bytecode/assembler/assemble_test.go b/pkg/bytecode/assembler/assemble_test.go index b442ea9..4bba3d6 100644 --- a/pkg/bytecode/assembler/assemble_test.go +++ b/pkg/bytecode/assembler/assemble_test.go @@ -1,12 +1,12 @@ package assembler import ( - "github.com/shoriwe/gplasma/pkg/lexer" - "github.com/shoriwe/gplasma/pkg/parser" - "github.com/shoriwe/gplasma/pkg/passes/simplification" - transformations_1 "github.com/shoriwe/gplasma/pkg/passes/transformations-1" - "github.com/shoriwe/gplasma/pkg/reader" - "github.com/shoriwe/gplasma/pkg/test-samples/basic" + "github.com/shoriwe/plasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/parser" + "github.com/shoriwe/plasma/pkg/passes/simplification" + transformations_1 "github.com/shoriwe/plasma/pkg/passes/transformations-1" + "github.com/shoriwe/plasma/pkg/reader" + "github.com/shoriwe/plasma/pkg/test-samples/basic" "github.com/stretchr/testify/assert" "testing" ) diff --git a/pkg/compiler/compile.go b/pkg/compiler/compile.go index 8a08fbd..3a7c49e 100644 --- a/pkg/compiler/compile.go +++ b/pkg/compiler/compile.go @@ -2,14 +2,14 @@ package compiler import ( "fmt" - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/bytecode/assembler" - "github.com/shoriwe/gplasma/pkg/lexer" - "github.com/shoriwe/gplasma/pkg/parser" - "github.com/shoriwe/gplasma/pkg/passes/checks" - "github.com/shoriwe/gplasma/pkg/passes/simplification" - transformations_1 "github.com/shoriwe/gplasma/pkg/passes/transformations-1" - "github.com/shoriwe/gplasma/pkg/reader" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/bytecode/assembler" + "github.com/shoriwe/plasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/parser" + "github.com/shoriwe/plasma/pkg/passes/checks" + "github.com/shoriwe/plasma/pkg/passes/simplification" + transformations_1 "github.com/shoriwe/plasma/pkg/passes/transformations-1" + "github.com/shoriwe/plasma/pkg/reader" ) func Compile(scriptCode string) ([]byte, error) { diff --git a/pkg/lexer/lexer.go b/pkg/lexer/lexer.go index 81ff7a0..3813af1 100644 --- a/pkg/lexer/lexer.go +++ b/pkg/lexer/lexer.go @@ -2,7 +2,7 @@ package lexer import ( "errors" - "github.com/shoriwe/gplasma/pkg/reader" + "github.com/shoriwe/plasma/pkg/reader" "regexp" ) diff --git a/pkg/lexer/lexer_test.go b/pkg/lexer/lexer_test.go index d3bfd7a..96f9836 100644 --- a/pkg/lexer/lexer_test.go +++ b/pkg/lexer/lexer_test.go @@ -1,7 +1,7 @@ package lexer import ( - reader2 "github.com/shoriwe/gplasma/pkg/reader" + reader2 "github.com/shoriwe/plasma/pkg/reader" "github.com/stretchr/testify/assert" "testing" ) diff --git a/pkg/parser/common.go b/pkg/parser/common.go index 273532f..72e4cee 100644 --- a/pkg/parser/common.go +++ b/pkg/parser/common.go @@ -1,7 +1,7 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) removeNewLines() error { diff --git a/pkg/parser/iter.go b/pkg/parser/iter.go index 004656e..22da346 100644 --- a/pkg/parser/iter.go +++ b/pkg/parser/iter.go @@ -1,7 +1,7 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) hasNext() bool { diff --git a/pkg/parser/parse-array-expression.go b/pkg/parser/parse-array-expression.go index 82fe425..c90d36b 100644 --- a/pkg/parser/parse-array-expression.go +++ b/pkg/parser/parse-array-expression.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseArrayExpression() (*ast.ArrayExpression, error) { diff --git a/pkg/parser/parse-assignment-statement.go b/pkg/parser/parse-assignment-statement.go index 929cf72..687bfb8 100644 --- a/pkg/parser/parse-assignment-statement.go +++ b/pkg/parser/parse-assignment-statement.go @@ -1,7 +1,7 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast" ) func (parser *Parser) parseAssignmentStatement(leftHandSide ast.Expression) (*ast.AssignStatement, error) { diff --git a/pkg/parser/parse-begin-statement.go b/pkg/parser/parse-begin-statement.go index e5b734d..6762f08 100644 --- a/pkg/parser/parse-begin-statement.go +++ b/pkg/parser/parse-begin-statement.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseBeginStatement() (*ast.BeginStatement, error) { diff --git a/pkg/parser/parse-binary-expression.go b/pkg/parser/parse-binary-expression.go index 07fffbc..7110b7a 100644 --- a/pkg/parser/parse-binary-expression.go +++ b/pkg/parser/parse-binary-expression.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseBinaryExpression(precedence lexer.DirectValue) (ast.Node, error) { diff --git a/pkg/parser/parse-break-statement.go b/pkg/parser/parse-break-statement.go index 30a99f9..0bcfa3a 100644 --- a/pkg/parser/parse-break-statement.go +++ b/pkg/parser/parse-break-statement.go @@ -1,7 +1,7 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast" ) func (parser *Parser) parseBreakStatement() (*ast.BreakStatement, error) { diff --git a/pkg/parser/parse-class-statement.go b/pkg/parser/parse-class-statement.go index a5b9363..0ac2b4e 100644 --- a/pkg/parser/parse-class-statement.go +++ b/pkg/parser/parse-class-statement.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseClassStatement() (*ast.ClassStatement, error) { diff --git a/pkg/parser/parse-continue-statement.go b/pkg/parser/parse-continue-statement.go index cbeb62a..19239f9 100644 --- a/pkg/parser/parse-continue-statement.go +++ b/pkg/parser/parse-continue-statement.go @@ -1,7 +1,7 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast" ) func (parser *Parser) parseContinueStatement() (*ast.ContinueStatement, error) { diff --git a/pkg/parser/parse-defer-statement.go b/pkg/parser/parse-defer-statement.go index 9f84e37..83f0f41 100644 --- a/pkg/parser/parse-defer-statement.go +++ b/pkg/parser/parse-defer-statement.go @@ -1,6 +1,6 @@ package parser -import "github.com/shoriwe/gplasma/pkg/ast" +import "github.com/shoriwe/plasma/pkg/ast" func (parser *Parser) parseDeferStatement() (*ast.DeferStatement, error) { tokenizingError := parser.next() diff --git a/pkg/parser/parse-delete-statement.go b/pkg/parser/parse-delete-statement.go index d8b9f9b..f66efed 100644 --- a/pkg/parser/parse-delete-statement.go +++ b/pkg/parser/parse-delete-statement.go @@ -1,6 +1,6 @@ package parser -import "github.com/shoriwe/gplasma/pkg/ast" +import "github.com/shoriwe/plasma/pkg/ast" func (parser *Parser) parseDeleteStatement() (*ast.DeleteStatement, error) { tokenizingError := parser.next() diff --git a/pkg/parser/parse-do-while.go b/pkg/parser/parse-do-while.go index 4369ed6..4519093 100644 --- a/pkg/parser/parse-do-while.go +++ b/pkg/parser/parse-do-while.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseDoWhileStatement() (*ast.DoWhileStatement, error) { diff --git a/pkg/parser/parse-end-statement.go b/pkg/parser/parse-end-statement.go index 8d65070..a2e84d1 100644 --- a/pkg/parser/parse-end-statement.go +++ b/pkg/parser/parse-end-statement.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseEndStatement() (*ast.EndStatement, error) { diff --git a/pkg/parser/parse-for-statement.go b/pkg/parser/parse-for-statement.go index 1d973c3..d290cef 100644 --- a/pkg/parser/parse-for-statement.go +++ b/pkg/parser/parse-for-statement.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseForStatement() (*ast.ForLoopStatement, error) { diff --git a/pkg/parser/parse-function-definition-statement.go b/pkg/parser/parse-function-definition-statement.go index 483e4b8..8c3f87b 100644 --- a/pkg/parser/parse-function-definition-statement.go +++ b/pkg/parser/parse-function-definition-statement.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseFunctionDefinitionStatement() (*ast.FunctionDefinitionStatement, error) { diff --git a/pkg/parser/parse-generator-expression.go b/pkg/parser/parse-generator-expression.go index cd94576..022942f 100644 --- a/pkg/parser/parse-generator-expression.go +++ b/pkg/parser/parse-generator-expression.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseGeneratorExpression(operation ast.Expression) (*ast.GeneratorExpression, error) { diff --git a/pkg/parser/parse-generator-statement.go b/pkg/parser/parse-generator-statement.go index 951abd7..e5bcd8f 100644 --- a/pkg/parser/parse-generator-statement.go +++ b/pkg/parser/parse-generator-statement.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseGeneratorDefinitionStatement() (*ast.GeneratorDefinitionStatement, error) { diff --git a/pkg/parser/parse-hash-expression.go b/pkg/parser/parse-hash-expression.go index 186c36a..2e333f3 100644 --- a/pkg/parser/parse-hash-expression.go +++ b/pkg/parser/parse-hash-expression.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseHashExpression() (*ast.HashExpression, error) { diff --git a/pkg/parser/parse-if-one-liner-expression.go b/pkg/parser/parse-if-one-liner-expression.go index 98b81b3..c921139 100644 --- a/pkg/parser/parse-if-one-liner-expression.go +++ b/pkg/parser/parse-if-one-liner-expression.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseIfOneLinerExpression(result ast.Expression) (*ast.IfOneLinerExpression, error) { diff --git a/pkg/parser/parse-if-statement.go b/pkg/parser/parse-if-statement.go index cc7b1e5..bc437ee 100644 --- a/pkg/parser/parse-if-statement.go +++ b/pkg/parser/parse-if-statement.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseIfStatement() (*ast.IfStatement, error) { diff --git a/pkg/parser/parse-index-expression.go b/pkg/parser/parse-index-expression.go index 54beef9..7ba4b35 100644 --- a/pkg/parser/parse-index-expression.go +++ b/pkg/parser/parse-index-expression.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseIndexExpression(expression ast.Expression) (*ast.IndexExpression, error) { diff --git a/pkg/parser/parse-interface-statement.go b/pkg/parser/parse-interface-statement.go index ca080b0..9fca7ab 100644 --- a/pkg/parser/parse-interface-statement.go +++ b/pkg/parser/parse-interface-statement.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseInterfaceStatement() (*ast.InterfaceStatement, error) { diff --git a/pkg/parser/parse-lambda-expression.go b/pkg/parser/parse-lambda-expression.go index 5f682d9..cc5f5c5 100644 --- a/pkg/parser/parse-lambda-expression.go +++ b/pkg/parser/parse-lambda-expression.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseLambdaExpression() (*ast.LambdaExpression, error) { diff --git a/pkg/parser/parse-literal-expression.go b/pkg/parser/parse-literal-expression.go index 2cc15a4..d3d0bd7 100644 --- a/pkg/parser/parse-literal-expression.go +++ b/pkg/parser/parse-literal-expression.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseLiteral() (ast.Expression, error) { diff --git a/pkg/parser/parse-method-invocation-expression.go b/pkg/parser/parse-method-invocation-expression.go index ac623c2..9135239 100644 --- a/pkg/parser/parse-method-invocation-expression.go +++ b/pkg/parser/parse-method-invocation-expression.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseMethodInvocationExpression(expression ast.Expression) (*ast.MethodInvocationExpression, error) { diff --git a/pkg/parser/parse-module-statement.go b/pkg/parser/parse-module-statement.go index b1fe2d0..090f70b 100644 --- a/pkg/parser/parse-module-statement.go +++ b/pkg/parser/parse-module-statement.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseModuleStatement() (*ast.ModuleStatement, error) { diff --git a/pkg/parser/parse-operand.go b/pkg/parser/parse-operand.go index 3f350e8..26ca031 100644 --- a/pkg/parser/parse-operand.go +++ b/pkg/parser/parse-operand.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseOperand() (ast.Node, error) { diff --git a/pkg/parser/parse-parentheses-expression.go b/pkg/parser/parse-parentheses-expression.go index cd5eb3a..e0c7635 100644 --- a/pkg/parser/parse-parentheses-expression.go +++ b/pkg/parser/parse-parentheses-expression.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseParentheses() (ast.Expression, error) { diff --git a/pkg/parser/parse-pass-statement.go b/pkg/parser/parse-pass-statement.go index b43376b..2987298 100644 --- a/pkg/parser/parse-pass-statement.go +++ b/pkg/parser/parse-pass-statement.go @@ -1,7 +1,7 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast" ) func (parser *Parser) parsePassStatement() (*ast.PassStatement, error) { diff --git a/pkg/parser/parse-return-statement.go b/pkg/parser/parse-return-statement.go index 42d1731..4021203 100644 --- a/pkg/parser/parse-return-statement.go +++ b/pkg/parser/parse-return-statement.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseReturnStatement() (*ast.ReturnStatement, error) { diff --git a/pkg/parser/parse-selector-expression.go b/pkg/parser/parse-selector-expression.go index 79e72cd..e3998ec 100644 --- a/pkg/parser/parse-selector-expression.go +++ b/pkg/parser/parse-selector-expression.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseSelectorExpression(expression ast.Expression) (*ast.SelectorExpression, error) { diff --git a/pkg/parser/parse-super-statement.go b/pkg/parser/parse-super-statement.go index 24a38b2..068fdcd 100644 --- a/pkg/parser/parse-super-statement.go +++ b/pkg/parser/parse-super-statement.go @@ -1,6 +1,6 @@ package parser -import "github.com/shoriwe/gplasma/pkg/ast" +import "github.com/shoriwe/plasma/pkg/ast" func (parser *Parser) parseSuperExpression() (*ast.SuperExpression, error) { tokenizingError := parser.next() diff --git a/pkg/parser/parse-switch-statement.go b/pkg/parser/parse-switch-statement.go index fc7780b..3d92466 100644 --- a/pkg/parser/parse-switch-statement.go +++ b/pkg/parser/parse-switch-statement.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseSwitchStatement() (*ast.SwitchStatement, error) { diff --git a/pkg/parser/parse-unary-expression.go b/pkg/parser/parse-unary-expression.go index 7e84181..45fad2e 100644 --- a/pkg/parser/parse-unary-expression.go +++ b/pkg/parser/parse-unary-expression.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseUnaryExpression() (ast.Node, error) { diff --git a/pkg/parser/parse-unless-one-liner-expression.go b/pkg/parser/parse-unless-one-liner-expression.go index 8775922..75c3ad4 100644 --- a/pkg/parser/parse-unless-one-liner-expression.go +++ b/pkg/parser/parse-unless-one-liner-expression.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseUnlessOneLinerExpression(result ast.Expression) (*ast.UnlessOneLinerExpression, error) { diff --git a/pkg/parser/parse-unless-statement.go b/pkg/parser/parse-unless-statement.go index 429aab4..945c124 100644 --- a/pkg/parser/parse-unless-statement.go +++ b/pkg/parser/parse-unless-statement.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseUnlessStatement() (*ast.UnlessStatement, error) { diff --git a/pkg/parser/parse-until-statement.go b/pkg/parser/parse-until-statement.go index 68bcfe0..a50ecb6 100644 --- a/pkg/parser/parse-until-statement.go +++ b/pkg/parser/parse-until-statement.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseUntilStatement() (*ast.UntilLoopStatement, error) { diff --git a/pkg/parser/parse-while-statement.go b/pkg/parser/parse-while-statement.go index 3dfe241..b2fc90c 100644 --- a/pkg/parser/parse-while-statement.go +++ b/pkg/parser/parse-while-statement.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseWhileStatement() (*ast.WhileLoopStatement, error) { diff --git a/pkg/parser/parse-yield-statement.go b/pkg/parser/parse-yield-statement.go index 3a62536..1570b91 100644 --- a/pkg/parser/parse-yield-statement.go +++ b/pkg/parser/parse-yield-statement.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parseYieldStatement() (*ast.YieldStatement, error) { diff --git a/pkg/parser/parser-primary-expression.go b/pkg/parser/parser-primary-expression.go index 0f5cbe1..3152dae 100644 --- a/pkg/parser/parser-primary-expression.go +++ b/pkg/parser/parser-primary-expression.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" ) func (parser *Parser) parsePrimaryExpression() (ast.Node, error) { diff --git a/pkg/parser/parser.go b/pkg/parser/parser.go index 2c2a5d1..8a59071 100644 --- a/pkg/parser/parser.go +++ b/pkg/parser/parser.go @@ -1,9 +1,9 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/common" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/common" + "github.com/shoriwe/plasma/pkg/lexer" ) type Parser struct { diff --git a/pkg/parser/parser_test.go b/pkg/parser/parser_test.go index 5ec01df..a988f78 100644 --- a/pkg/parser/parser_test.go +++ b/pkg/parser/parser_test.go @@ -1,10 +1,10 @@ package parser import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" - reader2 "github.com/shoriwe/gplasma/pkg/reader" - "github.com/shoriwe/gplasma/pkg/test-samples/basic" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" + reader2 "github.com/shoriwe/plasma/pkg/reader" + "github.com/shoriwe/plasma/pkg/test-samples/basic" "github.com/stretchr/testify/assert" "reflect" "strings" diff --git a/pkg/passes/checks/checks.go b/pkg/passes/checks/checks.go index f04ecf6..6dfb727 100644 --- a/pkg/passes/checks/checks.go +++ b/pkg/passes/checks/checks.go @@ -1,8 +1,8 @@ package checks import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/common" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/common" ) /* diff --git a/pkg/passes/checks/checks_test.go b/pkg/passes/checks/checks_test.go index c2b569e..c3f8e52 100644 --- a/pkg/passes/checks/checks_test.go +++ b/pkg/passes/checks/checks_test.go @@ -2,10 +2,10 @@ package checks import ( _ "embed" - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/lexer" - "github.com/shoriwe/gplasma/pkg/parser" - "github.com/shoriwe/gplasma/pkg/reader" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/parser" + "github.com/shoriwe/plasma/pkg/reader" "github.com/stretchr/testify/assert" "testing" ) diff --git a/pkg/passes/simplification/anon-identifier.go b/pkg/passes/simplification/anon-identifier.go index 1ad7d8c..293211a 100644 --- a/pkg/passes/simplification/anon-identifier.go +++ b/pkg/passes/simplification/anon-identifier.go @@ -2,7 +2,7 @@ package simplification import ( "fmt" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) nextAnonIdentifier() *ast2.Identifier { diff --git a/pkg/passes/simplification/simplify-array.go b/pkg/passes/simplification/simplify-array.go index 3d7b030..2932e15 100644 --- a/pkg/passes/simplification/simplify-array.go +++ b/pkg/passes/simplification/simplify-array.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) Array(array *ast.ArrayExpression) *ast2.Array { diff --git a/pkg/passes/simplification/simplify-assign.go b/pkg/passes/simplification/simplify-assign.go index ecfe2fb..7405057 100644 --- a/pkg/passes/simplification/simplify-assign.go +++ b/pkg/passes/simplification/simplify-assign.go @@ -2,9 +2,9 @@ package simplification import ( "fmt" - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/lexer" ) func (simplify *simplifyPass) Assign(assign *ast.AssignStatement) *ast2.Assignment { diff --git a/pkg/passes/simplification/simplify-binary.go b/pkg/passes/simplification/simplify-binary.go index ea26d84..4730bf4 100644 --- a/pkg/passes/simplification/simplify-binary.go +++ b/pkg/passes/simplification/simplify-binary.go @@ -2,9 +2,9 @@ package simplification import ( "fmt" - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/lexer" ) func (simplify *simplifyPass) Binary(binary *ast.BinaryExpression) *ast2.Binary { diff --git a/pkg/passes/simplification/simplify-call.go b/pkg/passes/simplification/simplify-call.go index 38346e2..7707304 100644 --- a/pkg/passes/simplification/simplify-call.go +++ b/pkg/passes/simplification/simplify-call.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) Call(call *ast.MethodInvocationExpression) *ast2.FunctionCall { diff --git a/pkg/passes/simplification/simplify-class.go b/pkg/passes/simplification/simplify-class.go index 15ecfe3..93fe8af 100644 --- a/pkg/passes/simplification/simplify-class.go +++ b/pkg/passes/simplification/simplify-class.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) Class(class *ast.ClassStatement) *ast2.Class { diff --git a/pkg/passes/simplification/simplify-defer.go b/pkg/passes/simplification/simplify-defer.go index 5514816..b8ab0f4 100644 --- a/pkg/passes/simplification/simplify-defer.go +++ b/pkg/passes/simplification/simplify-defer.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) Defer(d *ast.DeferStatement) *ast2.Defer { diff --git a/pkg/passes/simplification/simplify-delete.go b/pkg/passes/simplification/simplify-delete.go index 4c77181..aeb15a1 100644 --- a/pkg/passes/simplification/simplify-delete.go +++ b/pkg/passes/simplification/simplify-delete.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) Delete(del *ast.DeleteStatement) *ast2.Delete { diff --git a/pkg/passes/simplification/simplify-do-while.go b/pkg/passes/simplification/simplify-do-while.go index 765a631..955dacc 100644 --- a/pkg/passes/simplification/simplify-do-while.go +++ b/pkg/passes/simplification/simplify-do-while.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) DoWhile(do *ast.DoWhileStatement) *ast2.DoWhile { diff --git a/pkg/passes/simplification/simplify-expression.go b/pkg/passes/simplification/simplify-expression.go index cb3d688..8e6733c 100644 --- a/pkg/passes/simplification/simplify-expression.go +++ b/pkg/passes/simplification/simplify-expression.go @@ -2,8 +2,8 @@ package simplification import ( "fmt" - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" "reflect" ) diff --git a/pkg/passes/simplification/simplify-for.go b/pkg/passes/simplification/simplify-for.go index bb09067..5f286e7 100644 --- a/pkg/passes/simplification/simplify-for.go +++ b/pkg/passes/simplification/simplify-for.go @@ -1,9 +1,9 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/common/magic-functions" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/common/magic-functions" ) func (simplify *simplifyPass) For(for_ *ast.ForLoopStatement) *ast2.While { diff --git a/pkg/passes/simplification/simplify-function.go b/pkg/passes/simplification/simplify-function.go index b02ab34..fb01b7f 100644 --- a/pkg/passes/simplification/simplify-function.go +++ b/pkg/passes/simplification/simplify-function.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) Function(f *ast.FunctionDefinitionStatement) *ast2.FunctionDefinition { diff --git a/pkg/passes/simplification/simplify-generator.go b/pkg/passes/simplification/simplify-generator.go index 2bbe08c..e8d9de0 100644 --- a/pkg/passes/simplification/simplify-generator.go +++ b/pkg/passes/simplification/simplify-generator.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) GeneratorExpr(generator *ast.GeneratorExpression) *ast2.Generator { diff --git a/pkg/passes/simplification/simplify-hash.go b/pkg/passes/simplification/simplify-hash.go index 832dc1b..28e8983 100644 --- a/pkg/passes/simplification/simplify-hash.go +++ b/pkg/passes/simplification/simplify-hash.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) Hash(hash *ast.HashExpression) *ast2.Hash { diff --git a/pkg/passes/simplification/simplify-identifier.go b/pkg/passes/simplification/simplify-identifier.go index f6ac29a..edf7cbb 100644 --- a/pkg/passes/simplification/simplify-identifier.go +++ b/pkg/passes/simplification/simplify-identifier.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) Identifier(ident *ast.Identifier) *ast2.Identifier { diff --git a/pkg/passes/simplification/simplify-if-one-liner.go b/pkg/passes/simplification/simplify-if-one-liner.go index eaf5497..46047d5 100644 --- a/pkg/passes/simplification/simplify-if-one-liner.go +++ b/pkg/passes/simplification/simplify-if-one-liner.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) IfOneLiner(if_ *ast.IfOneLinerExpression) *ast2.IfOneLiner { diff --git a/pkg/passes/simplification/simplify-if.go b/pkg/passes/simplification/simplify-if.go index bcc76ff..7094066 100644 --- a/pkg/passes/simplification/simplify-if.go +++ b/pkg/passes/simplification/simplify-if.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) If(if_ *ast.IfStatement) *ast2.If { diff --git a/pkg/passes/simplification/simplify-index.go b/pkg/passes/simplification/simplify-index.go index 20c27cf..5ad5980 100644 --- a/pkg/passes/simplification/simplify-index.go +++ b/pkg/passes/simplification/simplify-index.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) Index(index *ast.IndexExpression) *ast2.Index { diff --git a/pkg/passes/simplification/simplify-interface.go b/pkg/passes/simplification/simplify-interface.go index 3d93877..379a490 100644 --- a/pkg/passes/simplification/simplify-interface.go +++ b/pkg/passes/simplification/simplify-interface.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) Interface(i *ast.InterfaceStatement) *ast2.Class { diff --git a/pkg/passes/simplification/simplify-lambda.go b/pkg/passes/simplification/simplify-lambda.go index 4b5c4a6..497f7a1 100644 --- a/pkg/passes/simplification/simplify-lambda.go +++ b/pkg/passes/simplification/simplify-lambda.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) Lambda(lambda *ast.LambdaExpression) *ast2.Lambda { diff --git a/pkg/passes/simplification/simplify-literal.go b/pkg/passes/simplification/simplify-literal.go index 6f3ed2f..54770c2 100644 --- a/pkg/passes/simplification/simplify-literal.go +++ b/pkg/passes/simplification/simplify-literal.go @@ -2,9 +2,9 @@ package simplification import ( "fmt" - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/lexer" "strconv" "strings" ) diff --git a/pkg/passes/simplification/simplify-loop-operations.go b/pkg/passes/simplification/simplify-loop-operations.go index cde4410..b5c1491 100644 --- a/pkg/passes/simplification/simplify-loop-operations.go +++ b/pkg/passes/simplification/simplify-loop-operations.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) Continue(c *ast.ContinueStatement) *ast2.Continue { diff --git a/pkg/passes/simplification/simplify-module.go b/pkg/passes/simplification/simplify-module.go index 8cdb071..f8931ee 100644 --- a/pkg/passes/simplification/simplify-module.go +++ b/pkg/passes/simplification/simplify-module.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) Module(module *ast.ModuleStatement) *ast2.Module { diff --git a/pkg/passes/simplification/simplify-parentheses.go b/pkg/passes/simplification/simplify-parentheses.go index c659ced..b02ae1c 100644 --- a/pkg/passes/simplification/simplify-parentheses.go +++ b/pkg/passes/simplification/simplify-parentheses.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) Parentheses(expression *ast.ParenthesesExpression) ast2.Expression { diff --git a/pkg/passes/simplification/simplify-pass.go b/pkg/passes/simplification/simplify-pass.go index 1cf186d..524318f 100644 --- a/pkg/passes/simplification/simplify-pass.go +++ b/pkg/passes/simplification/simplify-pass.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) Pass(pass *ast.PassStatement) *ast2.Pass { diff --git a/pkg/passes/simplification/simplify-return-yield.go b/pkg/passes/simplification/simplify-return-yield.go index b14fb55..f1cd2f2 100644 --- a/pkg/passes/simplification/simplify-return-yield.go +++ b/pkg/passes/simplification/simplify-return-yield.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) Return(ret *ast.ReturnStatement) *ast2.Return { diff --git a/pkg/passes/simplification/simplify-selector.go b/pkg/passes/simplification/simplify-selector.go index 52f3900..1862edf 100644 --- a/pkg/passes/simplification/simplify-selector.go +++ b/pkg/passes/simplification/simplify-selector.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) Selector(selector *ast.SelectorExpression) *ast2.Selector { diff --git a/pkg/passes/simplification/simplify-statement.go b/pkg/passes/simplification/simplify-statement.go index 4087686..110e55a 100644 --- a/pkg/passes/simplification/simplify-statement.go +++ b/pkg/passes/simplification/simplify-statement.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) Statement(stmt ast.Statement) ast2.Statement { diff --git a/pkg/passes/simplification/simplify-super.go b/pkg/passes/simplification/simplify-super.go index f7ebe98..74c27be 100644 --- a/pkg/passes/simplification/simplify-super.go +++ b/pkg/passes/simplification/simplify-super.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) Super(super *ast.SuperExpression) *ast2.Super { diff --git a/pkg/passes/simplification/simplify-switch.go b/pkg/passes/simplification/simplify-switch.go index 7c87ca7..d977a6a 100644 --- a/pkg/passes/simplification/simplify-switch.go +++ b/pkg/passes/simplification/simplify-switch.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) Switch(switch_ *ast.SwitchStatement) *ast2.If { diff --git a/pkg/passes/simplification/simplify-tuple.go b/pkg/passes/simplification/simplify-tuple.go index de25b00..734a512 100644 --- a/pkg/passes/simplification/simplify-tuple.go +++ b/pkg/passes/simplification/simplify-tuple.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) Tuple(tuple *ast.TupleExpression) *ast2.Tuple { diff --git a/pkg/passes/simplification/simplify-unary.go b/pkg/passes/simplification/simplify-unary.go index 14a216c..a196031 100644 --- a/pkg/passes/simplification/simplify-unary.go +++ b/pkg/passes/simplification/simplify-unary.go @@ -1,9 +1,9 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/lexer" ) func (simplify *simplifyPass) Unary(unary *ast.UnaryExpression) *ast2.Unary { diff --git a/pkg/passes/simplification/simplify-unless.go b/pkg/passes/simplification/simplify-unless.go index 39ceccd..6c19575 100644 --- a/pkg/passes/simplification/simplify-unless.go +++ b/pkg/passes/simplification/simplify-unless.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) Unless(unless *ast.UnlessStatement) *ast2.If { diff --git a/pkg/passes/simplification/simplify-until.go b/pkg/passes/simplification/simplify-until.go index d867f87..95c3521 100644 --- a/pkg/passes/simplification/simplify-until.go +++ b/pkg/passes/simplification/simplify-until.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) Until(until *ast.UntilLoopStatement) *ast2.While { diff --git a/pkg/passes/simplification/simplify-while.go b/pkg/passes/simplification/simplify-while.go index a1cb122..66200ad 100644 --- a/pkg/passes/simplification/simplify-while.go +++ b/pkg/passes/simplification/simplify-while.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) func (simplify *simplifyPass) While(while *ast.WhileLoopStatement) *ast2.While { diff --git a/pkg/passes/simplification/simplify.go b/pkg/passes/simplification/simplify.go index cac753e..01552ad 100644 --- a/pkg/passes/simplification/simplify.go +++ b/pkg/passes/simplification/simplify.go @@ -1,8 +1,8 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/ast" - "github.com/shoriwe/gplasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast" + "github.com/shoriwe/plasma/pkg/ast2" ) type simplifyPass struct { diff --git a/pkg/passes/simplification/simplify_test.go b/pkg/passes/simplification/simplify_test.go index 0beca18..d192b1d 100644 --- a/pkg/passes/simplification/simplify_test.go +++ b/pkg/passes/simplification/simplify_test.go @@ -1,10 +1,10 @@ package simplification import ( - "github.com/shoriwe/gplasma/pkg/lexer" - "github.com/shoriwe/gplasma/pkg/parser" - "github.com/shoriwe/gplasma/pkg/reader" - "github.com/shoriwe/gplasma/pkg/test-samples/basic" + "github.com/shoriwe/plasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/parser" + "github.com/shoriwe/plasma/pkg/reader" + "github.com/shoriwe/plasma/pkg/test-samples/basic" "github.com/stretchr/testify/assert" "testing" ) diff --git a/pkg/passes/transformations-1/label.go b/pkg/passes/transformations-1/label.go index efd1f05..a315559 100644 --- a/pkg/passes/transformations-1/label.go +++ b/pkg/passes/transformations-1/label.go @@ -2,7 +2,7 @@ package transformations_1 import ( "fmt" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast3" ) func (transform *transformPass) nextAnonIdentifier() *ast3.Identifier { diff --git a/pkg/passes/transformations-1/transform-array.go b/pkg/passes/transformations-1/transform-array.go index c6cd243..29f9ed1 100644 --- a/pkg/passes/transformations-1/transform-array.go +++ b/pkg/passes/transformations-1/transform-array.go @@ -1,8 +1,8 @@ package transformations_1 import ( - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" ) func (transform *transformPass) Array(array *ast2.Array) *ast3.Array { diff --git a/pkg/passes/transformations-1/transform-assignment.go b/pkg/passes/transformations-1/transform-assignment.go index 109066d..f216c32 100644 --- a/pkg/passes/transformations-1/transform-assignment.go +++ b/pkg/passes/transformations-1/transform-assignment.go @@ -1,8 +1,8 @@ package transformations_1 import ( - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" ) func (transform *transformPass) Assignment(assignment *ast2.Assignment) []ast3.Node { diff --git a/pkg/passes/transformations-1/transform-binary.go b/pkg/passes/transformations-1/transform-binary.go index 6d49670..f450eee 100644 --- a/pkg/passes/transformations-1/transform-binary.go +++ b/pkg/passes/transformations-1/transform-binary.go @@ -2,9 +2,9 @@ package transformations_1 import ( "fmt" - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" - magic_functions "github.com/shoriwe/gplasma/pkg/common/magic-functions" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" + magic_functions "github.com/shoriwe/plasma/pkg/common/magic-functions" ) func (transform *transformPass) Binary(binary *ast2.Binary) *ast3.Call { diff --git a/pkg/passes/transformations-1/transform-call.go b/pkg/passes/transformations-1/transform-call.go index ed9f796..c0272c2 100644 --- a/pkg/passes/transformations-1/transform-call.go +++ b/pkg/passes/transformations-1/transform-call.go @@ -1,8 +1,8 @@ package transformations_1 import ( - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" ) func (transform *transformPass) Call(call *ast2.FunctionCall) *ast3.Call { diff --git a/pkg/passes/transformations-1/transform-class.go b/pkg/passes/transformations-1/transform-class.go index eaa3463..3dc0b53 100644 --- a/pkg/passes/transformations-1/transform-class.go +++ b/pkg/passes/transformations-1/transform-class.go @@ -1,8 +1,8 @@ package transformations_1 import ( - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" ) func (transform *transformPass) Class(class *ast2.Class) []ast3.Node { diff --git a/pkg/passes/transformations-1/transform-defer.go b/pkg/passes/transformations-1/transform-defer.go index 3810c80..2bf2670 100644 --- a/pkg/passes/transformations-1/transform-defer.go +++ b/pkg/passes/transformations-1/transform-defer.go @@ -1,8 +1,8 @@ package transformations_1 import ( - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" ) func (transform *transformPass) Defer(def *ast2.Defer) []ast3.Node { diff --git a/pkg/passes/transformations-1/transform-delete.go b/pkg/passes/transformations-1/transform-delete.go index caa1bcd..04062a8 100644 --- a/pkg/passes/transformations-1/transform-delete.go +++ b/pkg/passes/transformations-1/transform-delete.go @@ -1,8 +1,8 @@ package transformations_1 import ( - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" ) func (transform *transformPass) Delete(del *ast2.Delete) []ast3.Node { diff --git a/pkg/passes/transformations-1/transform-do-while.go b/pkg/passes/transformations-1/transform-do-while.go index 294f7e7..27a773c 100644 --- a/pkg/passes/transformations-1/transform-do-while.go +++ b/pkg/passes/transformations-1/transform-do-while.go @@ -1,8 +1,8 @@ package transformations_1 import ( - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" ) func (transform *transformPass) DoWhile(doWhile *ast2.DoWhile) []ast3.Node { diff --git a/pkg/passes/transformations-1/transform-expression.go b/pkg/passes/transformations-1/transform-expression.go index ed146f7..39c8e1c 100644 --- a/pkg/passes/transformations-1/transform-expression.go +++ b/pkg/passes/transformations-1/transform-expression.go @@ -2,8 +2,8 @@ package transformations_1 import ( "fmt" - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" "reflect" ) diff --git a/pkg/passes/transformations-1/transform-function.go b/pkg/passes/transformations-1/transform-function.go index 05e0581..7b3eaa8 100644 --- a/pkg/passes/transformations-1/transform-function.go +++ b/pkg/passes/transformations-1/transform-function.go @@ -1,8 +1,8 @@ package transformations_1 import ( - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" ) func (transform *transformPass) Function(function *ast2.FunctionDefinition) []ast3.Node { diff --git a/pkg/passes/transformations-1/transform-generator-expr.go b/pkg/passes/transformations-1/transform-generator-expr.go index f637c00..c609397 100644 --- a/pkg/passes/transformations-1/transform-generator-expr.go +++ b/pkg/passes/transformations-1/transform-generator-expr.go @@ -1,10 +1,10 @@ package transformations_1 import ( - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" - magic_functions "github.com/shoriwe/gplasma/pkg/common/magic-functions" - special_symbols "github.com/shoriwe/gplasma/pkg/common/special-symbols" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" + magic_functions "github.com/shoriwe/plasma/pkg/common/magic-functions" + special_symbols "github.com/shoriwe/plasma/pkg/common/special-symbols" ) func (transform *transformPass) GeneratorExpr(generator *ast2.Generator) *ast3.Call { diff --git a/pkg/passes/transformations-1/transform-generator.go b/pkg/passes/transformations-1/transform-generator.go index e1ec8a6..94117db 100644 --- a/pkg/passes/transformations-1/transform-generator.go +++ b/pkg/passes/transformations-1/transform-generator.go @@ -2,11 +2,11 @@ package transformations_1 import ( "fmt" - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" - "github.com/shoriwe/gplasma/pkg/common" - "github.com/shoriwe/gplasma/pkg/common/magic-functions" - "github.com/shoriwe/gplasma/pkg/common/special-symbols" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/common" + "github.com/shoriwe/plasma/pkg/common/magic-functions" + "github.com/shoriwe/plasma/pkg/common/special-symbols" "reflect" ) diff --git a/pkg/passes/transformations-1/transform-hash.go b/pkg/passes/transformations-1/transform-hash.go index e9075b3..e929bcd 100644 --- a/pkg/passes/transformations-1/transform-hash.go +++ b/pkg/passes/transformations-1/transform-hash.go @@ -1,8 +1,8 @@ package transformations_1 import ( - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" ) func (transform *transformPass) Hash(hash *ast2.Hash) *ast3.Hash { diff --git a/pkg/passes/transformations-1/transform-identifier.go b/pkg/passes/transformations-1/transform-identifier.go index c64a6bc..1936bb8 100644 --- a/pkg/passes/transformations-1/transform-identifier.go +++ b/pkg/passes/transformations-1/transform-identifier.go @@ -1,8 +1,8 @@ package transformations_1 import ( - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" ) func (transform *transformPass) Identifier(ident *ast2.Identifier) *ast3.Identifier { diff --git a/pkg/passes/transformations-1/transform-if-one-liner.go b/pkg/passes/transformations-1/transform-if-one-liner.go index f710700..58fa0ef 100644 --- a/pkg/passes/transformations-1/transform-if-one-liner.go +++ b/pkg/passes/transformations-1/transform-if-one-liner.go @@ -1,8 +1,8 @@ package transformations_1 import ( - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" ) func (transform *transformPass) IfOneLiner(iol *ast2.IfOneLiner) *ast3.Call { diff --git a/pkg/passes/transformations-1/transform-if.go b/pkg/passes/transformations-1/transform-if.go index 531884b..904cd40 100644 --- a/pkg/passes/transformations-1/transform-if.go +++ b/pkg/passes/transformations-1/transform-if.go @@ -1,8 +1,8 @@ package transformations_1 import ( - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" ) func (transform *transformPass) If(if_ *ast2.If) []ast3.Node { diff --git a/pkg/passes/transformations-1/transform-index.go b/pkg/passes/transformations-1/transform-index.go index 998aac9..63d0d9a 100644 --- a/pkg/passes/transformations-1/transform-index.go +++ b/pkg/passes/transformations-1/transform-index.go @@ -1,8 +1,8 @@ package transformations_1 import ( - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" ) func (transform *transformPass) Index(index *ast2.Index) *ast3.Index { diff --git a/pkg/passes/transformations-1/transform-lambda.go b/pkg/passes/transformations-1/transform-lambda.go index 943dee8..c56a299 100644 --- a/pkg/passes/transformations-1/transform-lambda.go +++ b/pkg/passes/transformations-1/transform-lambda.go @@ -1,8 +1,8 @@ package transformations_1 import ( - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" ) func (transform *transformPass) Lambda(lambda *ast2.Lambda) *ast3.Function { diff --git a/pkg/passes/transformations-1/transform-literals.go b/pkg/passes/transformations-1/transform-literals.go index 5f0d449..a0f0787 100644 --- a/pkg/passes/transformations-1/transform-literals.go +++ b/pkg/passes/transformations-1/transform-literals.go @@ -1,8 +1,8 @@ package transformations_1 import ( - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" ) func (transform *transformPass) Integer(integer *ast2.Integer) *ast3.Integer { diff --git a/pkg/passes/transformations-1/transform-loop-operations.go b/pkg/passes/transformations-1/transform-loop-operations.go index 7cfca03..eba6fb6 100644 --- a/pkg/passes/transformations-1/transform-loop-operations.go +++ b/pkg/passes/transformations-1/transform-loop-operations.go @@ -1,8 +1,8 @@ package transformations_1 import ( - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" ) func (transform *transformPass) Continue(c *ast2.Continue) []ast3.Node { diff --git a/pkg/passes/transformations-1/transform-module.go b/pkg/passes/transformations-1/transform-module.go index 3a07849..caca648 100644 --- a/pkg/passes/transformations-1/transform-module.go +++ b/pkg/passes/transformations-1/transform-module.go @@ -1,9 +1,9 @@ package transformations_1 import ( - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" - magic_functions "github.com/shoriwe/gplasma/pkg/common/magic-functions" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" + magic_functions "github.com/shoriwe/plasma/pkg/common/magic-functions" ) func (transform *transformPass) Module(module *ast2.Module) []ast3.Node { diff --git a/pkg/passes/transformations-1/transform-return-yield.go b/pkg/passes/transformations-1/transform-return-yield.go index b259b30..8bc0cdc 100644 --- a/pkg/passes/transformations-1/transform-return-yield.go +++ b/pkg/passes/transformations-1/transform-return-yield.go @@ -1,8 +1,8 @@ package transformations_1 import ( - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" ) func (transform *transformPass) Yield(yield *ast2.Yield) []ast3.Node { diff --git a/pkg/passes/transformations-1/transform-selector.go b/pkg/passes/transformations-1/transform-selector.go index 17875c5..c3ee007 100644 --- a/pkg/passes/transformations-1/transform-selector.go +++ b/pkg/passes/transformations-1/transform-selector.go @@ -1,8 +1,8 @@ package transformations_1 import ( - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" ) func (transform *transformPass) Selector(selector *ast2.Selector) *ast3.Selector { diff --git a/pkg/passes/transformations-1/transform-statement.go b/pkg/passes/transformations-1/transform-statement.go index eb43ff3..9fe0960 100644 --- a/pkg/passes/transformations-1/transform-statement.go +++ b/pkg/passes/transformations-1/transform-statement.go @@ -2,8 +2,8 @@ package transformations_1 import ( "fmt" - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" "reflect" ) diff --git a/pkg/passes/transformations-1/transform-super.go b/pkg/passes/transformations-1/transform-super.go index ae58401..319f12a 100644 --- a/pkg/passes/transformations-1/transform-super.go +++ b/pkg/passes/transformations-1/transform-super.go @@ -1,8 +1,8 @@ package transformations_1 import ( - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" ) func (transform *transformPass) Super(super *ast2.Super) *ast3.Super { diff --git a/pkg/passes/transformations-1/transform-tuple.go b/pkg/passes/transformations-1/transform-tuple.go index 34b6bda..eb0c277 100644 --- a/pkg/passes/transformations-1/transform-tuple.go +++ b/pkg/passes/transformations-1/transform-tuple.go @@ -1,8 +1,8 @@ package transformations_1 import ( - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" ) func (transform *transformPass) Tuple(tuple *ast2.Tuple) *ast3.Tuple { diff --git a/pkg/passes/transformations-1/transform-unary.go b/pkg/passes/transformations-1/transform-unary.go index c4ebeff..11165a4 100644 --- a/pkg/passes/transformations-1/transform-unary.go +++ b/pkg/passes/transformations-1/transform-unary.go @@ -2,9 +2,9 @@ package transformations_1 import ( "fmt" - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" - magic_functions "github.com/shoriwe/gplasma/pkg/common/magic-functions" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" + magic_functions "github.com/shoriwe/plasma/pkg/common/magic-functions" ) func (transform *transformPass) Unary(unary *ast2.Unary) *ast3.Call { diff --git a/pkg/passes/transformations-1/transform-while.go b/pkg/passes/transformations-1/transform-while.go index e59f4ed..4d8cdb7 100644 --- a/pkg/passes/transformations-1/transform-while.go +++ b/pkg/passes/transformations-1/transform-while.go @@ -1,8 +1,8 @@ package transformations_1 import ( - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" ) func (transform *transformPass) While(while *ast2.While) []ast3.Node { diff --git a/pkg/passes/transformations-1/transform_test.go b/pkg/passes/transformations-1/transform_test.go index cb27851..9a25b91 100644 --- a/pkg/passes/transformations-1/transform_test.go +++ b/pkg/passes/transformations-1/transform_test.go @@ -1,11 +1,11 @@ package transformations_1 import ( - "github.com/shoriwe/gplasma/pkg/lexer" - "github.com/shoriwe/gplasma/pkg/parser" - "github.com/shoriwe/gplasma/pkg/passes/simplification" - "github.com/shoriwe/gplasma/pkg/reader" - "github.com/shoriwe/gplasma/pkg/test-samples/basic" + "github.com/shoriwe/plasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/parser" + "github.com/shoriwe/plasma/pkg/passes/simplification" + "github.com/shoriwe/plasma/pkg/reader" + "github.com/shoriwe/plasma/pkg/test-samples/basic" "github.com/stretchr/testify/assert" "testing" ) diff --git a/pkg/passes/transformations-1/transformations.go b/pkg/passes/transformations-1/transformations.go index 9df255a..80595c3 100644 --- a/pkg/passes/transformations-1/transformations.go +++ b/pkg/passes/transformations-1/transformations.go @@ -2,8 +2,8 @@ package transformations_1 import ( "fmt" - "github.com/shoriwe/gplasma/pkg/ast2" - "github.com/shoriwe/gplasma/pkg/ast3" + "github.com/shoriwe/plasma/pkg/ast2" + "github.com/shoriwe/plasma/pkg/ast3" "reflect" ) diff --git a/pkg/test-samples/success/samples.go b/pkg/test-samples/success/samples.go index 9350736..83b3044 100644 --- a/pkg/test-samples/success/samples.go +++ b/pkg/test-samples/success/samples.go @@ -2,7 +2,7 @@ package success import ( _ "embed" - test_samples "github.com/shoriwe/gplasma/pkg/test-samples" + test_samples "github.com/shoriwe/plasma/pkg/test-samples" ) var ( diff --git a/pkg/vm/array.go b/pkg/vm/array.go index 4e63075..8bff869 100644 --- a/pkg/vm/array.go +++ b/pkg/vm/array.go @@ -1,7 +1,7 @@ package vm import ( - magic_functions "github.com/shoriwe/gplasma/pkg/common/magic-functions" + magic_functions "github.com/shoriwe/plasma/pkg/common/magic-functions" ) func (plasma *Plasma) arrayClass() *Value { diff --git a/pkg/vm/bool.go b/pkg/vm/bool.go index a4e0098..b0995ae 100644 --- a/pkg/vm/bool.go +++ b/pkg/vm/bool.go @@ -1,6 +1,6 @@ package vm -import magic_functions "github.com/shoriwe/gplasma/pkg/common/magic-functions" +import magic_functions "github.com/shoriwe/plasma/pkg/common/magic-functions" func (plasma *Plasma) boolClass() *Value { class := plasma.NewValue(plasma.rootSymbols, BuiltInClassId, plasma.class) diff --git a/pkg/vm/bytes.go b/pkg/vm/bytes.go index 766b79b..75fdf91 100644 --- a/pkg/vm/bytes.go +++ b/pkg/vm/bytes.go @@ -2,7 +2,7 @@ package vm import ( "bytes" - magic_functions "github.com/shoriwe/gplasma/pkg/common/magic-functions" + magic_functions "github.com/shoriwe/plasma/pkg/common/magic-functions" ) func (plasma *Plasma) bytesClass() *Value { diff --git a/pkg/vm/class.go b/pkg/vm/class.go index 6d64f8c..e4101fd 100644 --- a/pkg/vm/class.go +++ b/pkg/vm/class.go @@ -1,6 +1,6 @@ package vm -import magic_functions "github.com/shoriwe/gplasma/pkg/common/magic-functions" +import magic_functions "github.com/shoriwe/plasma/pkg/common/magic-functions" func (plasma *Plasma) metaClass() *Value { plasma.class = plasma.NewValue(plasma.rootSymbols, BuiltInClassId, plasma.class) diff --git a/pkg/vm/context.go b/pkg/vm/context.go index 96ad582..04867e8 100644 --- a/pkg/vm/context.go +++ b/pkg/vm/context.go @@ -1,7 +1,7 @@ package vm import ( - "github.com/shoriwe/gplasma/pkg/common" + "github.com/shoriwe/plasma/pkg/common" ) type ( diff --git a/pkg/vm/do.go b/pkg/vm/do.go index 77a7b98..34e12fb 100644 --- a/pkg/vm/do.go +++ b/pkg/vm/do.go @@ -2,10 +2,10 @@ package vm import ( "fmt" - "github.com/shoriwe/gplasma/pkg/bytecode/opcodes" - "github.com/shoriwe/gplasma/pkg/common" - magic_functions "github.com/shoriwe/gplasma/pkg/common/magic-functions" - special_symbols "github.com/shoriwe/gplasma/pkg/common/special-symbols" + "github.com/shoriwe/plasma/pkg/bytecode/opcodes" + "github.com/shoriwe/plasma/pkg/common" + magic_functions "github.com/shoriwe/plasma/pkg/common/magic-functions" + special_symbols "github.com/shoriwe/plasma/pkg/common/special-symbols" ) func (ctx *context) pushCode(bytecode []byte) { diff --git a/pkg/vm/float.go b/pkg/vm/float.go index a08206f..948c49d 100644 --- a/pkg/vm/float.go +++ b/pkg/vm/float.go @@ -2,7 +2,7 @@ package vm import ( "encoding/binary" - magic_functions "github.com/shoriwe/gplasma/pkg/common/magic-functions" + magic_functions "github.com/shoriwe/plasma/pkg/common/magic-functions" "math" ) diff --git a/pkg/vm/hash.go b/pkg/vm/hash.go index 54c7043..d2732ce 100644 --- a/pkg/vm/hash.go +++ b/pkg/vm/hash.go @@ -1,6 +1,6 @@ package vm -import magic_functions "github.com/shoriwe/gplasma/pkg/common/magic-functions" +import magic_functions "github.com/shoriwe/plasma/pkg/common/magic-functions" func (plasma *Plasma) hashClass() *Value { class := plasma.NewValue(plasma.rootSymbols, BuiltInClassId, plasma.class) diff --git a/pkg/vm/init.go b/pkg/vm/init.go index ab57721..82a0bba 100644 --- a/pkg/vm/init.go +++ b/pkg/vm/init.go @@ -2,8 +2,8 @@ package vm import ( "bufio" - magic_functions "github.com/shoriwe/gplasma/pkg/common/magic-functions" - special_symbols "github.com/shoriwe/gplasma/pkg/common/special-symbols" + magic_functions "github.com/shoriwe/plasma/pkg/common/magic-functions" + special_symbols "github.com/shoriwe/plasma/pkg/common/special-symbols" ) func (plasma *Plasma) init() { diff --git a/pkg/vm/integer.go b/pkg/vm/integer.go index 9cdbf82..2b04aac 100644 --- a/pkg/vm/integer.go +++ b/pkg/vm/integer.go @@ -3,7 +3,7 @@ package vm import ( "bytes" "encoding/binary" - magic_functions "github.com/shoriwe/gplasma/pkg/common/magic-functions" + magic_functions "github.com/shoriwe/plasma/pkg/common/magic-functions" "math" ) diff --git a/pkg/vm/none.go b/pkg/vm/none.go index c5418df..8b858ba 100644 --- a/pkg/vm/none.go +++ b/pkg/vm/none.go @@ -1,6 +1,6 @@ package vm -import magic_functions "github.com/shoriwe/gplasma/pkg/common/magic-functions" +import magic_functions "github.com/shoriwe/plasma/pkg/common/magic-functions" func (plasma *Plasma) noneClass() *Value { class := plasma.NewValue(plasma.rootSymbols, BuiltInClassId, plasma.class) diff --git a/pkg/vm/string.go b/pkg/vm/string.go index f681190..40fbf6a 100644 --- a/pkg/vm/string.go +++ b/pkg/vm/string.go @@ -2,7 +2,7 @@ package vm import ( "bytes" - magic_functions "github.com/shoriwe/gplasma/pkg/common/magic-functions" + magic_functions "github.com/shoriwe/plasma/pkg/common/magic-functions" ) func (plasma *Plasma) stringClass() *Value { diff --git a/pkg/vm/transform.go b/pkg/vm/transform.go index b19a065..c63fdcb 100644 --- a/pkg/vm/transform.go +++ b/pkg/vm/transform.go @@ -2,7 +2,7 @@ package vm import ( "fmt" - magic_functions "github.com/shoriwe/gplasma/pkg/common/magic-functions" + magic_functions "github.com/shoriwe/plasma/pkg/common/magic-functions" "reflect" ) diff --git a/pkg/vm/tuple.go b/pkg/vm/tuple.go index 5643979..1cb5795 100644 --- a/pkg/vm/tuple.go +++ b/pkg/vm/tuple.go @@ -1,7 +1,7 @@ package vm import ( - magic_functions "github.com/shoriwe/gplasma/pkg/common/magic-functions" + magic_functions "github.com/shoriwe/plasma/pkg/common/magic-functions" ) func (plasma *Plasma) tupleClass() *Value { diff --git a/pkg/vm/value.go b/pkg/vm/value.go index 1d2e7b1..e57440a 100644 --- a/pkg/vm/value.go +++ b/pkg/vm/value.go @@ -3,7 +3,7 @@ package vm import ( "bytes" "fmt" - "github.com/shoriwe/gplasma/pkg/lexer" + "github.com/shoriwe/plasma/pkg/lexer" "golang.org/x/exp/constraints" "sync" ) diff --git a/pkg/vm/vm.go b/pkg/vm/vm.go index 90d3a2a..b3b1ba3 100644 --- a/pkg/vm/vm.go +++ b/pkg/vm/vm.go @@ -2,7 +2,7 @@ package vm import ( "fmt" - "github.com/shoriwe/gplasma/pkg/compiler" + "github.com/shoriwe/plasma/pkg/compiler" "io" ) diff --git a/pkg/vm/vm_test.go b/pkg/vm/vm_test.go index b8ee51a..efdb984 100644 --- a/pkg/vm/vm_test.go +++ b/pkg/vm/vm_test.go @@ -3,8 +3,8 @@ package vm import ( "bytes" "fmt" - "github.com/shoriwe/gplasma/pkg/test-samples/fail" - "github.com/shoriwe/gplasma/pkg/test-samples/success" + "github.com/shoriwe/plasma/pkg/test-samples/fail" + "github.com/shoriwe/plasma/pkg/test-samples/success" "github.com/stretchr/testify/assert" "testing" ) diff --git a/plasma.go b/plasma.go index 53db6a9..2626376 100644 --- a/plasma.go +++ b/plasma.go @@ -1,8 +1,8 @@ package gplasma import ( - "github.com/shoriwe/gplasma/pkg/compiler" - "github.com/shoriwe/gplasma/pkg/vm" + "github.com/shoriwe/plasma/pkg/compiler" + "github.com/shoriwe/plasma/pkg/vm" "io" )