Skip to content

Commit

Permalink
add fibonacci sequance
Browse files Browse the repository at this point in the history
  • Loading branch information
Rico040 committed Aug 20, 2024
1 parent ece2204 commit 9c757cd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
23 changes: 23 additions & 0 deletions examples/fibonacci.hw
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
0
1
1
2
3
5
8
13
21
34
55
89
144
233
377
610
987
1597
2584
4181
6765
10946
17711
1 change: 0 additions & 1 deletion src/nimhw.nim
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ for kind, key, val in optparser.getopt():
of cmdEnd: assert(false) # cannot happen

if compileFlag:
#TODO - Should we pass every input files?
try:
compile(positionalArgs[0])
except IndexDefect:
Expand Down

0 comments on commit 9c757cd

Please sign in to comment.