-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:Whiteknight/Rosella
- Loading branch information
Showing
11 changed files
with
87 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
namespace Rosella { | ||
class Repl; | ||
} | ||
|
||
namespace Rosella.Repl { | ||
class CommandEngine; | ||
class Compiler; | ||
class State; | ||
class View; | ||
} | ||
|
||
namespace Rosella.Repl.CommandFuncs { | ||
extern function quit; | ||
extern function help; | ||
extern function codeon; | ||
extern function codeoff; | ||
extern function showpre; | ||
extern function addpre; | ||
} | ||
|
||
function __load_repl[anon, load, init]() | ||
{ | ||
Rosella.load_bytecode_file("rosella/repl.pbc", "load"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
class Rosella.Random.UUID.V4 | ||
{ | ||
function get() | ||
{ | ||
var rand = Rosella.Random.default_uniform_random(); | ||
string hex[] = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"]; | ||
string s[] = []; | ||
for (int i = 0; i < 36; i++) | ||
s[i] = hex[int(rand.get_range(0, 16))]; | ||
s[14] = hex[4]; | ||
int s19 = (int(rand.get_range(0, 16)) & 0x03) | 0x08; | ||
s[19] = hex[s19]; | ||
s[8] = s[13] = s[18] = s[23] = "-"; | ||
return join("", s); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
class Rosella.Winxedl.Repl.State | ||
class Rosella.Repl.State | ||
{ | ||
var keep_running; | ||
var data; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters