Giter Site home page Giter Site logo

mask's People

Contributors

scizzorz avatar

Stargazers

 avatar

Watchers

 avatar  avatar

mask's Issues

MASKPATH idea

From here:

The first argument to require() is a string name. picotool finds the file that goes with the string name using a library lookup path. This is a semicolon-delimited (;) list of filesystem path patterns, where each pattern uses a question mark (?) where the string name would go.

Add failure to the lexer

Right now the lexer can't fail, even in weird cases like forbidden characters and unclosed strings. That's not right.

Add a --nocache flag

Seriously, caches can be annoying when you're changing the compiler internals. I think Python might use -b for this?

Destructuring

The groundwork is in the parser right now, but it doesn't do much.

Some sort of `match` operator?

Rust's match blocks have some neato features, like range matching and stuff. Is there a way to make an operator that can work like that?

~Rust:

match x {
  0 => ...
  1..9 => ...
  10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 => ...
  _ => ...
}

Python:

if x == 0: ...
elif 1 <= x <= 9: ...
elif x in (10, 20, 30, 40, 50, 60, 70, 80, 90): ...
else: ...

Mask:

if x ? 0: ...
elif x ? 1..9: ...
elif x ? [10, 20, 30, 40, 50, 60, 70, 80, 90]: ...

DUNNO.

Unify dict/array syntax

Ehh something like this:

x = ["zero", "one", "two", age=5, [3] = "three"]

Where the first set of things are 0-indexed per usual, but once you go to a Mask-style kwarg, you can't go back.

Labels / breakouts

Some way to break out of multiple loops? Possibly even 'break' out of an if block?!

Syntax for making a new scope / namespace

Something like this:

x = 'x'
y = 'y'
s = scope
  x = 'hello'
  print(x) # 'hello'
  print(y) # 'y'

print(x) # 'x'
print(s.x) # 'hello'

And then maybe borrow the initial supertable assignment from the #33?

s = scope :: some_other_table
  ...

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.