Skip to content

Commit 7276e31

Browse files
authored
Merge pull request #14 from Puskar-Roy/dev
Dev
2 parents b571240 + f808b91 commit 7276e31

File tree

3 files changed

+866
-168
lines changed

3 files changed

+866
-168
lines changed

main.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
"""Module providing Syntax Dictionary."""
2-
from lib.syntax import syntax
31
"""Module providing Lexer Function"""
42
from src.lexer import lexer
53

6-
7-
84
source_code = '''
9-
quack("Hello World")
10-
duck my_int = 42
11-
duck my_float = 3.14
12-
quck(my_int+my_float)
13-
duck my_bool = True
5+
# Variable declarations and assignments
6+
quack("Hello")
7+
let my_count = ((( 7 + my_idea ) * 7437 + 949) == 84)
8+
if (x = 10):
9+
y = x + 20 * 3
10+
if (a == b):
11+
quack(90)
1412
'''
1513

1614
def run_lexer(source_code):

0 commit comments

Comments
 (0)