Merge branch 'Dev' into Sprint1-TokenizeID_MainFunction-FE-t#04
This commit is contained in:
24
tests/generalTokenTest.alpha
Normal file
24
tests/generalTokenTest.alpha
Normal file
@ -0,0 +1,24 @@
|
||||
This is a test
|
||||
9combined 7okens
|
||||
12345
|
||||
893247892
|
||||
combined'DueToUnknownChar _validtoken __validtoken1 _valid_token2 validToken3_
|
||||
true false
|
||||
null while !wrong if when
|
||||
else type function
|
||||
return external as
|
||||
string _NOte_that_was_not_reserved
|
||||
([)]{}:;,->"\
|
||||
+-*/%
|
||||
<=
|
||||
:=
|
||||
"This is not a valid
|
||||
String"
|
||||
"This is a valid String"
|
||||
!|
|
||||
..
|
||||
(* this is a comment *)
|
||||
(*Not a comment
|
||||
$^&
|
||||
>
|
||||
|
4
tests/simpleIntTest.alpha
Normal file
4
tests/simpleIntTest.alpha
Normal file
@ -0,0 +1,4 @@
|
||||
45
|
||||
123
|
||||
8392
|
||||
|
47
tests/simpleLiteralAndCommentsTest.alpha
Normal file
47
tests/simpleLiteralAndCommentsTest.alpha
Normal file
@ -0,0 +1,47 @@
|
||||
"this is a string" 721398 'g' '/n' (* should print 3 tokens before this *)
|
||||
'
|
||||
'
|
||||
12893 "this is not a string (*one valid token before this*)
|
||||
(* spacey comment here
|
||||
over multiple lines
|
||||
will it work? *)
|
||||
"
|
||||
'''
|
||||
'\'
|
||||
false
|
||||
(**)
|
||||
'''
|
||||
nullfalse
|
||||
"nulltrue
|
||||
null
|
||||
'7'
|
||||
true
|
||||
'189
|
||||
'\t'
|
||||
'"'
|
||||
'/'
|
||||
'\n'
|
||||
'\''
|
||||
'\t'
|
||||
'\\'
|
||||
'n'
|
||||
'\'
|
||||
'fdsf'
|
||||
(*/jnewjno2893u86^ Lots of random characters /n /t '") *)
|
||||
'
|
||||
'
|
||||
' '
|
||||
'''
|
||||
"STRINGwithnotSPaces"
|
||||
' '
|
||||
'\ '
|
||||
"J"
|
||||
""
|
||||
" "
|
||||
\"\"
|
||||
"{SCHAR}"
|
||||
"SCHAR"
|
||||
"[SCHAR]"
|
||||
"FINAL: I'd think this is a legal \"string\" that contains \n \t several escaped characters, isn't it?"
|
||||
"I'd think this is a legal \"string\" that contains several \\n \t escaped characters, isn't it?"
|
||||
nullLike
|
29
tests/test_keywords.alpha
Normal file
29
tests/test_keywords.alpha
Normal file
@ -0,0 +1,29 @@
|
||||
while
|
||||
While
|
||||
whiLe
|
||||
if
|
||||
IF
|
||||
If
|
||||
iF
|
||||
then
|
||||
Then
|
||||
theN
|
||||
else
|
||||
eLse
|
||||
elSe
|
||||
Else
|
||||
type
|
||||
Type
|
||||
tyPe
|
||||
function
|
||||
Function
|
||||
functioN
|
||||
return
|
||||
Return
|
||||
returN
|
||||
external
|
||||
External
|
||||
exteRnal
|
||||
as
|
||||
As
|
||||
aS
|
23
tests/test_operators.alpha
Normal file
23
tests/test_operators.alpha
Normal file
@ -0,0 +1,23 @@
|
||||
+
|
||||
-
|
||||
*
|
||||
/
|
||||
\
|
||||
%
|
||||
<
|
||||
>
|
||||
=
|
||||
:=
|
||||
=:
|
||||
:
|
||||
=
|
||||
!
|
||||
&
|
||||
|
|
||||
.
|
||||
relEASE
|
||||
release
|
||||
RELEASE
|
||||
reserve
|
||||
RESERVE
|
||||
reSERVe
|
Reference in New Issue
Block a user