GithubHelp home page GithubHelp logo

logosvg's People

Contributors

slior avatar

Watchers

 avatar

logosvg's Issues

Expose state into the language

Expose the current state - location, angle, and color - as variables available to the program.
Allow expressions using it.

Example:

repeat 10
  if current_y < 100 then
    pc red;
  else
    pc blue;
  end;

  fd 50;
end;

where current_y is a built-in variable exposing the current cursor y location.

variable scope

Variables defined in inner scopes should shadow variables defined in outer scopes.
This includes parameters.

This should work fine:

let sides = 4;
procedure shape(sides,size):
  repeat sides
    fd size;
    rt 360/sides;
  end;
end;

call shape with sides = 5, size = 50;

sides should be 5 when running the procedure.

Add text/string type to the language

Add an explicit "Text" type to the language.

  • Allow expressions with strings
  • Allow debugging statements (with say).
  • parameters to pen color should be strings/text.

Add pen width command

Add the ability to set the pen width.
Something like:

pw 5; //sets the pen's stroke  width to 5

lte operator isn't parsed

This program should be parsed correctly:

let side = 1;
while side <= 4
  say 'side is ' ++ side;
  side = side + 1;
  fd 100;
  rt 90;
end;

currently, the lte (<=) operator isn't parsed.

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.