GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Trying to figure out a humane way to the get the raccoon out of my shed for good. I was quite shocked to see it there. The raccoon on the other hand seemed rather unimpressed by my presence...........
Writing a spec for my language, still far from complete:
P.S. I am posting form Konqueror, I see that (unlike Firefox) the upload file text entry is editable, but it asks you to confirm if you want to upload the file to prevent the security concern.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339
Rep:
Quote:
Originally Posted by MrCode
Here's a first draft of the TaskScript spec. It's probably not the greatest, but it's a good start, I think.
Don't view this with a line-wrapping text editor! I wrote this in a 1360x768 gedit window, and my display size is 1440x900, so it was nearly full screen for me. If you can, turn line wrapping off in your text editor. I apologize if this makes the document hard to read.
I need an example on the syntax of created and accessing classes.
I believe it would work something like this:
Code:
#When you need to create a class, just declare it like any other structure:#
declare class Test:
declare var foo, #All variables/tasks within a class are considered "public";#
declare var bar, #I haven't come up with a way of distinguishing between #
#"public", "private", and "protected" yet. #
declare string txt = "Fooey!",
declare task InitVars:
foo = 10,
bar = 100,
end task,
end class.
#As for accessing variables and tasks from it, you declare an object of it first (as you would in C++):#
#Note: "main" is not required to be the base task name, but IMO it would be a good convention.#
declare task main:
declare object Thing from Test,
do InitVars from Thing, #Doing a task from within the class using the "from" qualifier#
print string txt from Thing, #Printing the string variable#
#This loop will increase and print the numerical variables within the "Thing" object:#
declare loop:
if foo from Thing <= 20:
print text "foo = ",
print var foo from Thing,
print text "\n",
foo from Thing += 1,
if bar from Thing >= 0:
print text "bar = ",
print var bar from Thing,
print text "\n",
bar from Thing += 1,
end if,
end if,
end loop,
print text "Done.\n",
end task.
do main.
You can also declare classes that are derived from others (i.e. inheritance)
Code:
declare class A:
declare var foo,
declare var bar,
end class.
declare class B from A:
declare var oof,
declare var rab,
end class.
# ^ class B now has A's contents, plus its own ^ #
Last edited by MrCode; 03-29-2010 at 10:05 PM.
Reason: corrected minor syntax errors (again, :P)
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339
Rep:
Quote:
Originally Posted by MrCode
I believe it would work something like this:
Code:
#When you need to create a class, just declare it like any other structure:#
declare class Test:
declare var foo, #All variables/tasks within a class are considered "public";#
declare var bar, #I haven't come up with a way of distinguishing between #
#"public", "private", and "protected" yet. #
declare string txt = "Fooey!",
declare task InitVars:
foo = 10,
bar = 100,
end task,
end class.
#As for accessing variables and tasks from it, you declare an object of it first (as you would in C++):#
#Note: "main" is not required to be the base task name, but IMO it would be a good convention.#
declare task main:
declare object Thing from Test,
do InitVars from Thing, #Doing a task from within the class using the "from" qualifier#
print string txt from Thing, #Printing the string variable#
#This loop will increase and print the numerical variables within the "Thing" object:#
declare loop:
if foo from Thing <= 20:
print text "foo = ",
print var foo from Thing,
print text "\n",
foo from Thing += 1,
if bar from Thing >= 0:
print text "bar = ",
print var bar from Thing,
print text "\n",
bar from Thing += 1,
end if,
end if,
end loop,
print text "Done.\n",
end task.
do main.
You can also declare classes that are derived from others (i.e. inheritance)
Code:
declare class A:
declare var foo,
declare var bar,
end class.
declare class B from A:
declare var oof,
declare var rab,
end class.
# ^ class B now has A's contents, plus its own ^ #
This thread is almost 120 pages ! ! !
Anyway, classes are 'half' implemented.
But it compiles simple programs well:
Code:
declare task print_666_point_5:
declare var p=234.25,
op p+=432.25,
print var p,
end task.
do print_666_point_5.
Going through of all the 3DO isos I have amassed over the years, and just last weekend, and wondering if there is anything else to add for my collections, and re-living the good old days when gaming didn't utterly SUCK!
Code:
Volume in drive H is PIZZA
Volume Serial Number is B4AA-1C80
Directory of H:\3DO ISOs
03/29/2010 11:16 PM <DIR> .
03/29/2010 11:16 PM <DIR> ..
03/28/2010 04:00 PM <DIR> Alone in the Dark
03/28/2010 04:00 PM <DIR> Alone in the Dark 2
03/28/2010 03:09 PM <DIR> Ballz - The Directors Cut
03/28/2010 05:07 PM <DIR> Brain Dead 13 Starring Fritz
03/28/2010 02:52 PM <DIR> Burning Soldier
03/28/2010 03:09 PM <DIR> Cannon Fodder
03/28/2010 03:09 PM <DIR> Captain Quazar
03/28/2010 03:09 PM <DIR> Club 3DO - Station Invasion
03/28/2010 03:09 PM <DIR> Corpse Killer
03/27/2010 06:19 PM <DIR> Crash N Burn
03/28/2010 02:53 PM <DIR> Crime Patrol
03/28/2010 03:09 PM <DIR> Crime Patrol 2 - Drug Wars
03/28/2010 02:54 PM <DIR> Cyberia
03/28/2010 05:07 PM <DIR> D
03/28/2010 04:01 PM <DIR> Death Keep
03/28/2010 02:55 PM <DIR> Dennis Miller - Thats News To me
03/27/2010 06:21 PM <DIR> Doom*
03/28/2010 05:10 PM <DIR> Dragon Lore Disc
03/28/2010 02:55 PM <DIR> Dragon's Lair
03/28/2010 04:01 PM <DIR> Escape From Monster Manor
03/29/2010 11:08 PM <DIR> Fifa International Soccer
03/29/2010 11:09 PM <DIR> Flashback - The Quest For Identity
03/27/2010 06:21 PM <DIR> Gex*
03/28/2010 02:55 PM <DIR> Hell - A Cyberpunk Thiller
03/27/2010 06:21 PM <DIR> Icebreaker
03/28/2010 03:09 PM <DIR> Immercenary
03/27/2010 06:21 PM <DIR> Killing Time
03/28/2010 02:57 PM <DIR> Lemmings
03/28/2010 02:57 PM <DIR> Luciennes Quest
03/27/2010 10:45 PM <DIR> Mad Dog McCree
03/27/2010 10:45 PM <DIR> Mad Dog McCree 2 - The Lost Gold
03/28/2010 03:09 PM <DIR> Megarace
03/28/2010 03:09 PM <DIR> Microcosm
03/28/2010 04:05 PM <DIR> Myst
03/28/2010 02:57 PM <DIR> Neurodancer
03/28/2010 05:08 PM <DIR> Night Trap
03/28/2010 04:13 PM <DIR> Novastorm
03/27/2010 06:23 PM <DIR> Off-World Interceptor
03/27/2010 06:24 PM <DIR> Out of This World
03/28/2010 02:58 PM <DIR> PaTaank
03/27/2010 06:25 PM <DIR> Primal Rage
03/28/2010 05:09 PM <DIR> Psychic Detective
03/27/2010 06:27 PM <DIR> Return Fire
03/27/2010 06:26 PM <DIR> Return Fire - Maps o Death
03/28/2010 03:09 PM <DIR> Road Rash*
03/27/2010 06:28 PM <DIR> Sample This!
03/27/2010 06:28 PM <DIR> Sampler CD (Ver. A)
03/27/2010 06:29 PM <DIR> Sampler CD (Ver. B)
03/28/2010 03:09 PM <DIR> Samurai Showdown
03/27/2010 06:30 PM <DIR> Sewer Shark
03/27/2010 09:54 PM <DIR> ShockWave
03/28/2010 05:12 PM <DIR> ShockWave 2 - Beyond the Gate
03/29/2010 11:09 PM <DIR> Slayer
03/27/2010 09:56 PM <DIR> Space Ace
03/27/2010 09:45 PM <DIR> Space Hulk - Vengence of the Blood Angels
03/27/2010 09:45 PM <DIR> Space Pirates
03/28/2010 02:59 PM <DIR> Star Control 2
03/28/2010 03:09 PM <DIR> Star Wars - Rebel Assault
03/27/2010 09:46 PM <DIR> Starblade
03/27/2010 09:47 PM <DIR> Stellar 7 - Draxons Revenge
03/28/2010 03:09 PM <DIR> Strahl
03/28/2010 03:09 PM <DIR> Street Fighter II Turbo
03/28/2010 03:09 PM <DIR> Super Wing Commander
03/28/2010 05:10 PM <DIR> Supreme Warrior
03/28/2010 03:04 PM <DIR> The Coven
03/27/2010 09:50 PM <DIR> The Horde
03/27/2010 09:51 PM <DIR> The Need For Speed
03/28/2010 03:09 PM <DIR> Theme Park
03/27/2010 09:51 PM <DIR> Total Eclipse
03/27/2010 09:52 PM <DIR> Tripd
03/27/2010 09:52 PM <DIR> Twisted
03/27/2010 09:52 PM <DIR> Way of the Warrior
03/27/2010 09:53 PM <DIR> Who Shot Johnny Rock
03/28/2010 05:11 PM <DIR> Wing Commander 3 - Heart of the Tiger
03/28/2010 02:59 PM <DIR> Wolfenstein 3D
03/28/2010 02:59 PM <DIR> Zhadnost - The Peoples Party
0 File(s) 0 bytes
78 Dir(s) 688,275,968,000 bytes free
* = Copies that I actually have and ripped. Not a lot, obviously
Red = Games I think were really cool!
Some of these games I also have on other consoles. I have an actual copy of Gex for PS1, and a downloaded ISO for Win32. Oddly enough, it runs well under XP, and I don't even have to use the compatibility-layer for it. I can just run it and go. Woohoo! I have screenies to prove it.
Wing Commander III was great, and I have an actual copy for PS1, as well as Wing Commander IV. The video quality is better on the PS1. I also have an actual copy of Road Rash for PS1, and The Need For Speed, as well as Need For Speed 2. Then of course it gets ruined by any new incarnations of that, with perhaps the exception of Need For Speed In Hot Pursuit for PS2, that one was ok.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.