File tree 5 files changed +22
-13
lines changed
5 files changed +22
-13
lines changed Original file line number Diff line number Diff line change 1
1
# GBHS Coding Club Website
2
2
3
- Everybody wins!
3
+ Everybody wins!
Original file line number Diff line number Diff line change 5
5
< meta charset ="UTF-8 ">
6
6
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
7
7
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
8
- <!-- yo josh, why is replit not updating github? -->
8
+
9
9
<!-- Google fonts -->
10
10
< link rel ="preconnect " href ="https://fonts.googleapis.com ">
11
11
< link rel ="preconnect " href ="https://fonts.gstatic.com " crossorigin >
Original file line number Diff line number Diff line change 26
26
< p >
27
27
Enjoy your stay!
28
28
</ p >
29
- <!-- Not sure honestly, Ask Josh Later -->
29
+ <!-- Div in Body with no command makes text -->
30
30
< div >
31
31
Hey I was supposed to say that!
32
32
</ div >
33
-
33
+
34
34
<!-- An image -->
35
- < img src ="./Amogus.jpg "/>
35
+ <!-- < img src="./Amogus.jpg"/> -- >
36
36
</ div >
37
37
38
38
< script src ="./main.js "> </ script >
Original file line number Diff line number Diff line change @@ -27,24 +27,32 @@ Lexer.prototype.eatWhitespace = function(){
27
27
Lexer . prototype . eat = function ( ) {
28
28
let token = {
29
29
value : "" ,
30
+ type : "" ,
30
31
} ;
31
32
32
33
let cur = this . text [ this . index ] ;
33
34
34
35
while ( ( cur = this . text . charAt ( this . index ) ) . match ( / [ ^ \s \n ] / ) ) {
35
36
token . value += this . text . charAt ( this . index ) ;
36
37
37
- console . log ( this . index , token . value ) ;
38
-
39
38
this . index ++ ;
39
+
40
+ let v = token . value ;
41
+ let p = v + this . peek ( ) ;
42
+
43
+ if ( [ "++" , "--" ] . indexOf ( v ) !== - 1 ) { token . type = "operator" ; break ; }
44
+
45
+ if ( v . match ( / ^ ( [ 0 - 9 ] + ) $ / ) && ! p . match ( / ^ ( [ 0 - 9 ] + ) $ / ) ) { token . type = "number" ; break ; }
40
46
}
41
47
48
+ console . log ( token ) ;
49
+
42
50
this . eatWhitespace ( ) ;
43
51
44
52
return token ;
45
53
} ;
46
54
47
- let l = new Lexer ( "this is a test123 ++ -- + - +-" ) ;
55
+ let l = new Lexer ( "this is a 123 test123 ++ -- + - +-" ) ;
48
56
console . log ( l . eat ( ) ) ;
49
57
console . log ( l . eat ( ) ) ;
50
58
console . log ( l . eat ( ) ) ;
Original file line number Diff line number Diff line change @@ -12,11 +12,12 @@ body {
12
12
height : 100vh ;
13
13
14
14
background-color : #113311 ;
15
- background : radial-gradient (
16
- closest-side ,
17
- #224422 ,
18
- #001100
19
- );
15
+
16
+ // background: radial-gradient(
17
+ // closest-side,
18
+ // #224422,
19
+ // #001100
20
+ // );
20
21
21
22
color : #FFF ;
22
23
text-shadow : 0 0 5px #C8C8C8 ;
You can’t perform that action at this time.
0 commit comments