Code Monkey home page Code Monkey logo

doodledigits's Issues

๐Ÿ’พ User defined functions

Example syntax:

f(x) = x + 5
f(5) = 10

Annoying bit is not colliding with existing syntax of f times x equals something.
Since
f = 5
x = 1
f(x) = x+4 -> true

I'm thinking it's parsed as a function in the AST and if the function name is defined already the calculate function will run multiplication instead.

โš™ Settings page

A settings page for the calculator.
Example settings:

  • Autosave Interval
  • Show grid
  • Use degrees/radians
  • Font family - size - color
    • Not sure how this would play with #2 when it comes to color.

โ„น Help page

There's a lot of behavior inside the app which is not explained anywhere. Users are unlikely to discover these by guessing, such as the keywords for bitwise operators.
It'd be good to have some sort of lexicon with all kinds of operations and functions along with a short description.

๐Ÿ“ Vector support

Allow calculations with vectors.

Declaring a 1d vector:
vec = [0, 1]

Declaring a 2d vector:
vec = [ [0, 1], [2, 3] ]

etc.

Probably wont support any operators with them other than obvious ones. Adding norm (||) would clash with boolean or. (although technically since one is unary we can work out the order)
(might revisit it then)

๐Ÿ‘ฉโ€๐Ÿ’ป Hex and binary output

Right now, hex and binary literals are parsed, but doing anything with them will make the result in decimal notation. It should stay in the same format it started. Also there should be a way to move between presentations. I suggest using the keywords as/in like this:
25 in hex = 0x1B
25 - 1 as hex = 0x1A
0xB in decimal = 11
0xBA = 0xBA
4 in binary = 0b100

#๏ธโƒฃ Add commenting

Let me explain things to me, myself, or friends through text inside the application. It should also have a nice color. :-)
You'd presumably start a comment with a symbol not used in math. But // should be fine I guess. Otherwise, ;, # or maybe \.

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.