We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a62f42b commit 5bc5f1bCopy full SHA for 5bc5f1b
fib.crabox
@@ -1,7 +1,9 @@
1
-inc r1
+; PROGRAM TO CALCULATE THE FIBONACCI SEQUENCE
2
+inc r1 ; 1
3
store r1
-inc ap
4
+inc ap ; 1
5
6
+; FIBONACCI FROM THE 3RD NUMBER ON
7
inc ap
8
dec ap
9
source/lexer.d
@@ -28,7 +28,15 @@ struct Lexer
28
case '\n':
29
tokens ~= Token(TokenType.eol, "\n");
30
break;
31
- case ' ':
+ case ';':
32
+ current++;
33
+ while (current < source.length && source[current] != '\n')
34
+ {
35
36
+ }
37
+ current--;
38
+ break;
39
+ case ' ', '\t':
40
41
case 'a': .. case 'z':
42
string value = "";
0 commit comments