diff --git a/README.md b/README.md index 77b09b2..63f2137 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ The Register view is now greatly improved, especially in it's dynamic features: The last feature of inspecting objects is show in the screenshot. This makes it possible to very quickly verify the programs behaviour. As it is a pure object system , all data is in -objects, and all objects can be inspected. +objects, and all objects can be inspected. ### Debugging the debugger @@ -107,3 +107,11 @@ usable and restarting a debug is fine. ## Todos Breakpoints would be nice at some point. Both in step count and variable value. + +## Trying it out + +Clone + +Bundle + +bundle exec rackup diff --git a/codes/a_while.soml b/codes/a_while.soml new file mode 100644 index 0000000..79fe07b --- /dev/null +++ b/codes/a_while.soml @@ -0,0 +1,12 @@ +class Object + + int main() + int i = 5 + while_plus(i) + "out".putstring() + i = i - 1 + end + return i + end + +end diff --git a/codes/if_called.saml b/codes/if_called.soml similarity index 100% rename from codes/if_called.saml rename to codes/if_called.soml diff --git a/codes/if_else.saml b/codes/if_else.soml similarity index 100% rename from codes/if_else.saml rename to codes/if_else.soml diff --git a/codes/offset_check.saml b/codes/offset_check.soml similarity index 100% rename from codes/offset_check.saml rename to codes/offset_check.soml diff --git a/codes/a_times.saml b/codes/times.soml similarity index 100% rename from codes/a_times.saml rename to codes/times.soml diff --git a/config.ru b/config.ru index c70038e..a91816e 100644 --- a/config.ru +++ b/config.ru @@ -22,11 +22,11 @@ class DebugServer < Opal::Server end end def codes - [Dir["codes/*.saml"].collect{|f| f.sub("codes/","").sub(".saml","")}.join("----")] + [Dir["codes/*.soml"].collect{|f| f.sub("codes/","").sub(".soml","")}.join("----")] end def code at - saml = File.new("codes/#{at}.saml").read - syntax = Parser::Salama.new.parse_with_debug(saml) + soml = File.new("codes/#{at}.soml").read + syntax = Parser::Salama.new.parse_with_debug(soml) parts = Parser::Transform.new.apply(syntax) [parts.inspect] end