Last active
November 30, 2017 00:00
-
-
Save hex13/00ce6de4cf2d6cf48f7aefd5242735d9 to your computer and use it in GitHub Desktop.
FunQuery - prototype of language (this is proposal - syntax and semantic can change)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// someScript.funq | |
def hello { | @name | | |
if (2 < 3) { | |
alert "two is less than three" | |
} else { | |
alert "two is not less than three" | |
}; | |
alert ("Hello, " + @name) | |
}; | |
def helloClick { | |
read user.json | json parse | ?json user.name | hello | |
}; | |
def quitClick { | |
quit || alert "Can't quit" | |
}; | |
global def showDialogWithTwoButtons { | |
dialog (buttons "Hello" helloClick "Quit program" quitClick) | |
}; | |
========= | |
console> import someScript.funq; showDialogWithTwoButtons; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment