Reference

Note that this section is under construction


File Formats

Ore introduces several new file formats that are unique to the system: Two kinds of code formats (.ore and .core) and a simple settings file format (.set).

.ore

The .ore extension is given to Ore source code files, which can be either programs or libraries. It contains the raw, uncompiled code that the Runtime Environment or OS will interpret and run. In Ore, many symbols, keywords and functions are optional. The following file is given as an example that abides by the general Ore writing standard. To read more on this, visit the Language page.

//Area of a Ring
//By Jonathan Holmes
say "This program computes the area of a ring given two circles."
say "What is the radius of the first circle?"
ask number radiusone
while radiusone <= 0
	say "You must give a number greater than 0!"
	say "What is the radius of the first circle?"
	ask number radiusone
say "What is the radius of the second circle?"
ask number radiustwo
while radiustwo <= 0
	say "You must give a number greater than 0!"
	say "What is the radius of the second circle?"
	ask number radiustwo
area = abs (pi*radiusone^2 - pi*radiustwo^2)
say ("The area is equal to " + area)

.core

The .core extension is given to .ore files that have been compiled into bytecode. The following file is an example of what compiled code may look like. Compilation is currently a non-implemented feature, but more information can be read about it on the Langauge page, under Compilation.

28413240	25237648	89203518	13935035	84234130	16407406	71205030	62575875
73378738	10217185	55014021	49774827	12635089	97132341	34657753	31220241
84924295	23845398	34757435	50630303	73979529	90908682	67760386	16794649
59448600	67891272	51603701	47182080	40620359	67317682	48416793	58403701
50722665	95922661	76657758	80435355	17917373	71933570	71733841	80516699
15604014	31311488	61319361	93654418	64678386	96704965	16604885	71015527
85284560	19235630	45049693	63558844	29351509	57904259	99142482	61529984
10455836	54861213	92913133	58104185	54358912	79401709	28529771	90441579
92558378	45463003	14252843	32913015	12679673	21668206	82200257	49169281
84523770	78624514	17311400	68688663	74609046	38435826	46338996	70518463
73505775	20451772	10724161	65910413	63303840	45060491	66397448	80820421
33271335	41320886	19044883	41815327	51978104	60719495	28423033	23388788
49107317	26963770	23396432	84916261	21821415	30776517	80969759	94681302
73846418	32731221	55043758	53910615	21672808	59415773	72778124	24626999
77892424	70917846	53950359	16993150	52567354	57409892	62830850	60145018
90777297	50429892	69491104	43560973	76478618	52454666	89478150	67894968
13848800	92484404	15801145	78142685	74975405	54332696	93030906	24454858

.set

The .set extension is given to general settings files. These can be loaded by the user or by the system to either save or retrieve data quickly. Read more about getting and setting data in .set files on the Code page under set and get.

Unlike other Ore-centric file formats, this file format does have strict guidelines. Each line has 3 parts: Variable name, equal sign, value. The variable name can only contain letters a-z while the value can contain any characters except for the newline character (\n). The equal sign acts as the delimeter.

index=6
result=never
showvalue=false
repeat=false
shape=cube
lastlocation=
score=
xcoord=23.45
ycoord=10.19
zcoord=82.02
lastlogin=1436831061

Example Code

Note that this section is under construction

//Area of a Ring
//By Jonathan Holmes
say "This program computes the area of a ring given two circles."
say "What is the radius of the first circle?"
ask number radiusone
while radiusone <= 0
	say "You must give a number greater than 0!"
	say "What is the radius of the first circle?"
	ask number radiusone
say "What is the radius of the second circle?"
ask number radiustwo
while radiustwo <= 0
	say "You must give a number greater than 0!"
	say "What is the radius of the second circle?"
	ask number radiustwo
area = abs (pi*radiusone^2 - pi*radiustwo^2)
say ("The area is equal to " + area)

Error Codes

During execution or compilation, Ore will output errors as they are encountered. Below is a sample of the most common errors that Ore can catch, along with the error number.

Note that this section is under construction

Error Number Error Description
100 Unknown execution error
1 Nothing to execute
2 Command not found
3 No variable given to assign or given name cannot be assigned a value
5 Quotation mismatch
6 Command has yet to be implemented in the current version of Ore
7 The type of input cannot be determined, which is causing an unforeseen execution error
8 Bracket mismatch
9 Invalid number of parameters given for command
10 Dangling operator

Reference Table

Below is a list of all keywords, symbols, and aliases that Ore can understand. For more information Or for more information about using the code, read more on the Code page.

Note that this section is under construction

Code Aliases Link