Skip to content

Commit

Permalink
little refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethosa committed Jun 30, 2024
1 parent 771fd85 commit 85ca909
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/elyspkg/combinator.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import
./lexer,
./result,
./utils,
options
std/options


type
Expand Down
2 changes: 1 addition & 1 deletion src/elyspkg/lexer.nim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import
strutils
std/strutils


proc isInteger(source: string, start: int): int =
Expand Down
6 changes: 3 additions & 3 deletions src/elyspkg/parser.nim
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import
./combinator,
./ast,
./result,
strutils,
sequtils,
options
std/strutils,
std/sequtils,
std/options


template keyword*(value: string): Reserved = reserved(value, TokenKind.tkKeyword)
Expand Down
4 changes: 2 additions & 2 deletions src/elyspkg/result.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import
options,
strutils
std/options,
std/strutils


type
Expand Down
2 changes: 1 addition & 1 deletion src/elyspkg/tools.nim
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import
./parser,
./result,
./ast,
options
std/options


proc compile*(code: string, file: string = "$file"): ASTRoot =
Expand Down
4 changes: 2 additions & 2 deletions src/elyspkg/utils.nim
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import
strutils
std/strutils

when not defined(js):
import terminal
import std/terminal


func getLineFromCode(source: ptr string, line: int): string =
Expand Down

0 comments on commit 85ca909

Please sign in to comment.