From 97bbe98289fb74c7cf2d9793b80a1a27b4146045 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 8 Oct 2020 13:01:18 +0800 Subject: change file extension moonp. --- spec/inputs/existential.mp | 51 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 spec/inputs/existential.mp (limited to 'spec/inputs/existential.mp') diff --git a/spec/inputs/existential.mp b/spec/inputs/existential.mp new file mode 100644 index 0000000..3055705 --- /dev/null +++ b/spec/inputs/existential.mp @@ -0,0 +1,51 @@ + +f1?! + +f2? "arg0",123 + +x = tab?.value + +print abc?["hello world"]?.xyz + +if print and x? + print x + +@?\func 998 + +with abc?!\func?! + if \p? "abc" + return 123 + +if {:x} = a?.if?\then?(123)? @?\function 998 + print x + +res = b.function\do!\while?("OK")\if("def",998)\f? +print res + +solipsism = true if mind? and not world? + +speed = 0 +speed or= 15 + +footprints = yeti or "bear" + +major = 'Computer Science' + +unless major? + signUpForClass 'Introduction to Wines' + +if window? + environment = 'browser (probably)' + +zip = lottery.drawWinner?!.address?.zipcode + +len = utf8?.len or string?.len or (o) -> #o + +a = tb1?\end? 123 + tb2?\then 456 + +b = tb1?\end? or tb2?\then + +with? io.open "test.txt", "w" + \write "hello" + \close! + -- cgit v1.2.3-55-g6feb