Git Product home page Git Product logo

nand-hdl-mode's Introduction

Emacs major mode for Nand2Tetris(NAND) hdl files (.hdl)

License: GPL v3

Emac major mode for NAND hardward description language files (.hdl) from the coursera class nand2tetris.

See jack-mode for a Jack major-mode.

The mode provides

  • syntax / font-locking
  • customizable indentation: choose indentation for IN/OUT declarations, PARTS, and general offset.
  • Compilation support, running the chip in simulator, and jumping to mismatches in .out file.
  • Comparison buffer for expected vs. output. (C-c C-c)
  • imenu, other user functions, etc.
  • Autocompletion / dropdown help using company-nand with company-mode and company-quickhelp

Tools in build directory:

  • Autogenerate snippets from the HDL survival website (for use with yasnippet)
  • Autogenerate docs.txt from builtin chips.

Todo:

  • Completion-at-point functions.
  • Jump to definitions

Installation

Require this file or autoload mode / compile. Snippets can be enabled by simply enabling yas-minor-mode in nand-hdl-mode-hook.

The variable nand-hdl-directory needs to be set to point to the installation directory of nand2tetris, ie the directory containing 'tools' and 'projects' directories.

;; Example
(require 'nand-hdl-mode)
(add-hook 'nand-hdl-mode-hook 'yas-minor-mode)

See company-nand for autocompletion setup.

example

nand-hdl-mode's People

Contributors

nverno avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nand-hdl-mode's Issues

How to install

Hi,
Still a newbie to spacemacs.How do i install it?In layman's terms of course.
Thanks in advance

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.