Implement if statements and regex lexer

This commit is contained in:
2021-03-01 19:43:06 -08:00
parent d552836b2c
commit 745920b139
4 changed files with 104 additions and 56 deletions
+11 -2
View File
@@ -3,5 +3,14 @@ display-dialog "Goodbye" with title 21 with type "error"
do-shell-script "notify-send Test Notification"
do-shell-script {"echo " + (display-dialog {"Test " + "2"} with title 30 with type "entry" with default "text")}
set x to $y
if {3 == 4} then display-dialog "What? Why is 3 equal to 4?" with title "What?!" with type "info"
if {3 == 3} then display-dialog "3 is equal to 3!" with title "New Discovery" with type "info"
if {3 == 3} {
set x to "hi"
do-shell-script {"echo " + $x}
display-dialog "3 is equal to 3!" with title "New Discovery" with type "info"
if {3 == 4} {
display-dialog "What? Why is 3 equal to 4?" with title "What?!" with type "error"
do-shell-script "echo hi"
}
}