11# Main
22
33Contains the basic functionality for EZCode (automatically included in build).
4- - ` bool ` , ` str ` , ` float ` , ` int ` , ` expressions ` , ` var ` , and ` list ` classes
5- - ` print ` , ` input ` , ` runcode ` , ` clear ` , ` regexmatch ` , and ` istype ` methods
4+ - ` bool ` , ` str ` , ` float ` , ` int ` , ` char ` , ` expressions ` , ` var ` , and ` list ` classes
5+ - ` print ` , ` input ` , ` runcode ` , ` clear ` , ` regexmatch ` , ` environment ` , and ` istype ` methods
66- basic math functions including:
77 - ` add ` add numbers
88 - ` subtract ` subtract numbers
@@ -18,6 +18,7 @@ bool b new : True
1818str s new : Hello World
1919float f new : 1.23
2020int i new : 123
21+ char c new : A
2122var v new : any
2223list l new : 1;2;3
2324(5 * 5) // expression -- explicit watch \((.* {EXP})\)
@@ -35,4 +36,5 @@ pi // returns pi constant
3536clamp 50, 10, 100 // clamps number '50' between '10' and '100'
3637avg 10, 20, 30, 40, 50, 100000 // returns the average of the numbers
3738operate sin, 50 // returns the sin of 50
39+ str user new => environment : username
3840```
0 commit comments