Coder Social home page Coder Social logo

marcoscobena / goto Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 0.0 2.67 MB

GOTO framework for .NET: compiler, interpreter (through its own VM) and IDE

Home Page: https://marcoscobena.com/goto-studio/

License: MIT License

C# 99.56% ANTLR 0.44%
compiler dotnet framework goto ide interpreter vm

goto's People

Contributors

marcoscobena avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

goto's Issues

Multiple GOTOs with the same label

This program fails because there're multiple GOTOs with the same label -by @Jorgemagic:

[B] X1 = X1 - 1
Z1 = Z1 + 1
Z2 = Z2 + 1
IF X1 != 0 GOTO B
 
[C]Z2 = Z2 - 1
X1 = X1 + 1
IF Z2 != 0 GOTO C
 
[A] Z1 = Z1 - 1
Y = Y + 1
IF Z1 != 0 GOTO A
X2 = X2 -1
IF X2 != 0 GOTO B

Add and sub samples

[A] Z1 = Z1 +1
X1 = X1 - 1
IF X1 != 0 GOTO A
 
[B] X2 = X2-1
Z1 = Z1 + 1 // - 1 for sub
IF X2 != 0 GOTO B
 
[C] Z1 = Z1 - 1
Y = Y + 1
IF Z1 != 0 GOTO C

By @Jorgemagic

Stuff I'd like

  • Rewrite Studio with Uno
  • Show macros expanded
  • Support mobile portrait
  • Show line numbers in editor

Avoid infinite loops

I have an initial approach, but things like [A] IF X != 0 GOTO A can be easily detected by checking target and current labels are simply equal —before emitting IL.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.