Skip to content

Commit

Permalink
Update to correct project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
subsetpark committed Jun 20, 2017
1 parent a76b5aa commit cc1b1da
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/ad.nim → ad.nim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import strutils, rdstdin, options, os
import base, op, obj, stack
import src.op, src.obj, src.stack

const
prompt = "> "
Expand All @@ -23,7 +23,7 @@ proc handleArgs(args: var seq[string]) =
echo doc
quit()
if "-v" in args or "--version" in args:
echo "ad " & VERSION
echo "ad " & "0.6.4"
quit()

var mainStack: Stack = @[]
Expand Down
5 changes: 1 addition & 4 deletions ad.nimble
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import src.base
# Package
version = VERSION
version = "0.6.4"
author = "Z. D. Smith"
description = "A simple RPN calculator"
license = "MIT"
bin = @["ad"]
srcDir = "src"
binDir = "bin"
skipExt = @["nim"]

# Deps
Expand Down
1 change: 0 additions & 1 deletion src/base.nim

This file was deleted.

2 changes: 1 addition & 1 deletion tests/nim.cfg
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--path:"../src/"
--path:".."
Binary file added tests/test
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/test.nim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest, random, strutils, sequtils, options
import "../src/stack", "../src/op", "../src/explain", "../src/obj"
import src.stack, src.op, src.explain, src.obj

proc ingestLine(stack: var Stack, s: string) =
let tokens = s.split()
Expand Down

0 comments on commit cc1b1da

Please sign in to comment.