| The workbench has been used to test the S8 kernel running on top of a Standard Lua VM |
| Note that it is NOT a reccomended way to run m8n applications. It is valuable to let us run automated tests |
| Open the workbench | Following this link |
| Load snashot of m8n system | Evaluating in a workspace| repo ext st |
repo := 'http://u8.smalltalking.net/profile/aleReimondo/m8n/'.
ext := '.lua'.
st := (#{fengari} #load: (repo ,'s8.snapshot' ,ext) fileContents) value.
|
| Check that m8n system is running | Evaluate with showIt (result must be true)(#{fengari} #load: 'return smalltalk:notNil()') value |
| Open a custom workspace to evaluate Lua expressions | Read more ... |
| Run the tests | Read more... |
Smalltalk jsObjectAt: #fengari ifAbsent: [ self error: 'Library missing' ]
JS@>#fengari
(#{fengari} #load: 'return 3+4' as: #sample) value
#{fengari} basicAt: #L
| Evaluate this code to build and load a m8n snapshot |
| repo ext st |
repo := 'http://u8.smalltalking.net/profile/aleReimondo/m8n/'.
ext := '.lua'.
st := (#{fengari} #load: (repo ,'s8.snapshot' ,ext) fileContents) value.
|
| After loading m8n, the following expression should return true |
(#{fengari} #load: 'return smalltalk:notNil()') value |
| If m8n system is installed in the Lua environment the following expression will return true |
(#{fengari} #load: 'return smalltalk~=nil') value |
| Evaluate with showIt to get the messages implemented by Object class in m8n system |
(#{fengari} #load: 'return smalltalk.Object:selectors():asLiteral()') value |