Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
1
Task/Include-a-file/AntLang/include-a-file.antlang
Normal file
1
Task/Include-a-file/AntLang/include-a-file.antlang
Normal file
|
|
@ -0,0 +1 @@
|
|||
load["script.ant"]
|
||||
1
Task/Include-a-file/Axe/include-a-file.axe
Normal file
1
Task/Include-a-file/Axe/include-a-file.axe
Normal file
|
|
@ -0,0 +1 @@
|
|||
prgmOTHER
|
||||
1
Task/Include-a-file/ChucK/include-a-file.chuck
Normal file
1
Task/Include-a-file/ChucK/include-a-file.chuck
Normal file
|
|
@ -0,0 +1 @@
|
|||
Machine.add(me.dir() + "/MyOwnClassesDefinitions.ck");
|
||||
10
Task/Include-a-file/FreeBASIC/include-a-file-1.freebasic
Normal file
10
Task/Include-a-file/FreeBASIC/include-a-file-1.freebasic
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
' person.bi file
|
||||
Type Person
|
||||
name As String
|
||||
age As UInteger
|
||||
Declare Operator Cast() As String
|
||||
End Type
|
||||
|
||||
Operator Person.Cast() As String
|
||||
Return "[" + This.name + ", " + Str(This.age) + "]"
|
||||
End Operator
|
||||
12
Task/Include-a-file/FreeBASIC/include-a-file-2.freebasic
Normal file
12
Task/Include-a-file/FreeBASIC/include-a-file-2.freebasic
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
' FB 1.05.0 Win 64
|
||||
|
||||
' main.bas file
|
||||
#include "person.bi"
|
||||
|
||||
Dim person1 As Person
|
||||
person1.name = "Methuselah"
|
||||
person1.age = 969
|
||||
Print person1
|
||||
Print
|
||||
Print "Press any key to quit"
|
||||
Sleep
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
include resources "SomeImage.png"
|
||||
include resources "SomeMovie.mpeg"
|
||||
include resources "SomeSound.aiff"
|
||||
include resources "SomeIcon.icns"
|
||||
include resources "Info.plist" //Custom preference file to replace FB's generic app preferences
|
||||
1
Task/Include-a-file/Harbour/include-a-file.harbour
Normal file
1
Task/Include-a-file/Harbour/include-a-file.harbour
Normal file
|
|
@ -0,0 +1 @@
|
|||
#include "inkey.ch"
|
||||
1
Task/Include-a-file/Lasso/include-a-file.lasso
Normal file
1
Task/Include-a-file/Lasso/include-a-file.lasso
Normal file
|
|
@ -0,0 +1 @@
|
|||
include('myfile.lasso')
|
||||
13
Task/Include-a-file/Lingo/include-a-file.lingo
Normal file
13
Task/Include-a-file/Lingo/include-a-file.lingo
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
-- load Lingo code from file
|
||||
fp = xtra("fileIO").new()
|
||||
fp.openFile(_movie.path&"someinclude.ls", 1)
|
||||
code = fp.readFile()
|
||||
fp.closeFile()
|
||||
|
||||
-- create new script member, assign loaded code
|
||||
m = new(#script)
|
||||
m.name = "someinclude"
|
||||
m.scriptText = code
|
||||
|
||||
-- use it instantly in the current script (i.e. the script that contained the above include code)
|
||||
script("someinclude").foo()
|
||||
4
Task/Include-a-file/Nim/include-a-file.nim
Normal file
4
Task/Include-a-file/Nim/include-a-file.nim
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
import someModule
|
||||
import strutils except parseInt
|
||||
import strutils as su, sequtils as qu # su.x works
|
||||
import lib.pure.strutils, lib/pure/os, "lib/pure/times" # still strutils.x
|
||||
1
Task/Include-a-file/Oforth/include-a-file-1.oforth
Normal file
1
Task/Include-a-file/Oforth/include-a-file-1.oforth
Normal file
|
|
@ -0,0 +1 @@
|
|||
"filename" load
|
||||
1
Task/Include-a-file/Oforth/include-a-file-2.oforth
Normal file
1
Task/Include-a-file/Oforth/include-a-file-2.oforth
Normal file
|
|
@ -0,0 +1 @@
|
|||
import: pack
|
||||
1
Task/Include-a-file/Phix/include-a-file.phix
Normal file
1
Task/Include-a-file/Phix/include-a-file.phix
Normal file
|
|
@ -0,0 +1 @@
|
|||
include arwen.ew
|
||||
1
Task/Include-a-file/Ring/include-a-file.ring
Normal file
1
Task/Include-a-file/Ring/include-a-file.ring
Normal file
|
|
@ -0,0 +1 @@
|
|||
Load 'file.ring'
|
||||
1
Task/Include-a-file/Sidef/include-a-file-1.sidef
Normal file
1
Task/Include-a-file/Sidef/include-a-file-1.sidef
Normal file
|
|
@ -0,0 +1 @@
|
|||
include 'file.sf';
|
||||
2
Task/Include-a-file/Sidef/include-a-file-2.sidef
Normal file
2
Task/Include-a-file/Sidef/include-a-file-2.sidef
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
include Some::Name;
|
||||
# variables are available here as: Some::Name::var_name
|
||||
1
Task/Include-a-file/Ursa/include-a-file.ursa
Normal file
1
Task/Include-a-file/Ursa/include-a-file.ursa
Normal file
|
|
@ -0,0 +1 @@
|
|||
import "filename.u"
|
||||
3
Task/Include-a-file/jq/include-a-file-1.jq
Normal file
3
Task/Include-a-file/jq/include-a-file-1.jq
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
include "gort";
|
||||
|
||||
hello
|
||||
1
Task/Include-a-file/jq/include-a-file-2.jq
Normal file
1
Task/Include-a-file/jq/include-a-file-2.jq
Normal file
|
|
@ -0,0 +1 @@
|
|||
def hello: "Klaatu barada nikto";
|
||||
2
Task/Include-a-file/jq/include-a-file-3.jq
Normal file
2
Task/Include-a-file/jq/include-a-file-3.jq
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ jq -n -c -f Include_a_file.jq
|
||||
Klaatu barada nikto.
|
||||
Loading…
Add table
Add a link
Reference in a new issue