Skip to content

Instantly share code, notes, and snippets.

@hex13
Last active November 30, 2017 00:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hex13/00ce6de4cf2d6cf48f7aefd5242735d9 to your computer and use it in GitHub Desktop.
Save hex13/00ce6de4cf2d6cf48f7aefd5242735d9 to your computer and use it in GitHub Desktop.
FunQuery - prototype of language (this is proposal - syntax and semantic can change)
// 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