Giter Site home page Giter Site logo

spressolisp's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

spressolisp's Issues

Examples

Various examples that demo language features

Cache in CI

CI takes around 2 mins to build and test - most of which is downloading and building dependencies. This can be cached.

See mobusoperandi/michie#52 for an example on how to add cache to CI for a rust project.

Aesthetics

Adding aesthetics to the repl such as

  • bracket matching
  • syntax highlighting
  • autocomplete

Disallow expressions without parens

Something like this is heresy against lisp (shows current behaviour):

spresso> print
built-in function
spresso> print "hello"
"hello"
spresso> + 10 20
20
spresso> define x 10
Runtime Error: Symbol not found: x
In input[3]:
1   | define x 10
             ^

spresso>

Disallow expression that starts with a non-callable

Example:

spresso> (1 2 3 4)
1

This just returns the value of the first expression (1) and ignores the rest. It's not good to implicitly ignore expressions. An error should be raised indicating that 1 is not something that can be executed. This syntax should only work for functions and lambdas that can be executed with some args.

remove quotes in string while printing a string

When executing (print "Hello, World!"), the output is "Hello, World!", instead it's better to have Hello, World!.
But then if we are printing a list containing a string or likewise, we want to print quotes to clearly show it's a string.

One idea could be could be to handle a single Atom::String separately.

Use clippy to fix code issues and add it to CI

cargo clippy currently emits nearly 50 warnings (and 1 error) on the current code base.

Tasks:

  • Run cargo clippy --all-targets --all-features and fix all code improvements suggested by it.
  • Add cargo clippy --all-targets --all-features -- -D warnings as a step to CI (after build, test, fmt, etc.) to ensure we have always have a codebase that satisfies clippy. The command was suggested here

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.