Git Product home page Git Product logo

nim-representer's Introduction

nim-representer

A tool to create a normalized representation of user-submitted code for Exercism

nim-representer's People

Contributors

dependabot[bot] avatar erikschierboom avatar exercism-bot avatar faisalafroz avatar kytrinyx avatar ynfle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nim-representer's Issues

pin deps to a ref before deployment (preferably via nimble lock file)

Follow-up for #37 (comment)

Currently, our .nimble file contains:

requires "nim >= 1.6.6"
requires "nimscripter == 1.0.14"
requires "docopt == 0.6.8"

which means that we will execute arbitrary code if

  • nimscripter or docopt are re-tagged
  • or any dependency of nimscripter ( assume, balls, grok, ups, npeg, sync) or docopt (regex, unicodedb) receive a new release.

Ideally, we'd use a Nimble lock file. The current Nim stable release (1.6.6) supports the Nimble version that supports lock files, but does not yet ship with such a Nimble.

The .nimble files of our Nimble dependencies:

Normalization of call kinds

As of now, the proposed representation for Nim proc/func/template/macro calls is to normalize them all to regular calls. For example:

`+` 1, 2 => `+`(1, 2)
1 + 2    => `+`(1, 2)
-1       => `-`(1)

Is this the desired result?
Certain call styles are more idiomatic

The master branch will be renamed to main

In line with our new org-wide policy, the master branch of this repo will be renamed to main. All open PRs will be automatically repointed.

GitHub will show you a notification about this when you look at this repo after renaming:

Screenshot 2021-01-27 at 15 31 45

In case it doesn't, this is the command it suggests:

git branch -m master main
git fetch origin
git branch -u origin/main main

You may like to update the primary branch on your forks too, which you can do under Settings->Branches and clicking the pencil icon on the right-hand-side under Default Branch:

Screenshot 2021-01-27 at 18 50 08

We will post a comment below when this is done. We expect it to happen within the next 12 hours.

Better test style

The expected tree output should start on the next line being as they are stripped anyways

Tuples

Unclear whether tuples will be interpreted Correctly

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.