Code Monkey home page Code Monkey logo

nslfmt's Introduction

nslfmt

Build Status Coverage Status MIT License gitmoji badge

What's this?

A nslfmt is a code fomatter for NSL which is one of the HDL and a succsesor of SFL.

How to Use

TBD

Requirements for Developpers

  • rust
    You can build the nslfmt by stable rust and toolchains. If you want to run a coverage test, nightly rust is required, because we use tarpaulin.

  • tarpaulin

$ rustup run nightly RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
$ rustup run nightly cargo run

Run the tests

  • all
$ cargo test
  • unit test
    • e.g run a test of wire_02 in parser_test.rs
$ cargo test module::wire_02 --test parser_test

References

License

MIT

nslfmt's People

Contributors

keens avatar sux2mfgj avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

keens

nslfmt's Issues

a problem at else statement

$ cat gen/gen.nsl
module gen
{
reg counter[gen_bit_width] = 0;
any
{
counter == gen_fd:
{
counter := 0;
enable();
}
else:
{
counter++;
}
}
}
$ nslfmt gen/gen.nsl
#include "gen.nh"
thread 'main' panicked at 'For the node ASTNode { class: Else }, fmt::Display does not implemented yet.', src/ast.rs:314:17
note: Run with RUST_BACKTRACE=1 for a backtrace.

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.