-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtokens.py
49 lines (40 loc) · 1.21 KB
/
tokens.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
### Dattebayo language
## Integrantes
# Antonio Gustavo Muniz | 22.119.001-0
# João Vitor Dias | 22.119.006-9
# Weverson da Silva | 22.119.004-4
## Keywords
# if | ninjutsu | ^(ninjutsu)$
# elif | genjutsu | ^(genjutsu)$
# else | taijutsu | ^(taijutsu)$
# for | kagebunshin | ^(kagebunshin)$
# while | tsukuyomi | ^(tsukuyomi)$
# functions | chakra | ^(chakra)$
# return | kamui | ^(kamui)$
# print | sharingan | ^(sharingan)$
# int | rasengan | ^(rasengan)$
# float | raikiri | ^(raikiri)$
# bool | zetsu | ^(zetsu)$
# string | kuchiyose | ^(kuchiyose)$
## Integer
# ^(-|\+)?\d+$
## Floating Point
# ^(-|\+)?[0-9]\d*(.\d+)?$
## Boolean
# ^(True|False|0|1)
## String
# ^"[\s\S]*"$
## Identifiers
# ^([a-zA-Z])+(\w)*
## Operators
# + | fuumashuriken | ^\+$
# - | kunai | ^\-$
# * | shuriken | ^\*$
# / | katana | ^\/$
# = | haku | ^=$
# == | kirigakure | ^(==)$
# && | kumogakure | ^(&&)$
# || | amegakure | ^(||)$
# \n | ^\\n$
# \t | ^\\t$
# ; | ^\;$