Skip to content

Emacs mode for uiua, a stack-based array language

License

Notifications You must be signed in to change notification settings

purcell/uiua-mode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an emacs mode for Uiua, an array language

Much like the language itself, this mode is currently in progress.

Setup

There are two major modes: one which uses tree-sitter, and one which does not. The latter is meant for emacs versions without treesitter capabilities, Users with access to tree-sitter should not prefer it. To use without tree-sitter

(use-package uiua-mode
  :mode "\\.ua\\'"
  :straight
  (uiua-mode
   :type git :host github
   :repo "crmsnbleyd/uiua-mode"))

To use with tree-sitter

(use-package uiua-mode
  :mode ("\\.ua\\'" . uiua-ts-mode)
  :straight
  (uiua-mode
   :type git :host github
   :repo "crmsnbleyd/uiua-mode"))

Upon loading a .ua file, emacs will complain about not finding the grammar. Simply type M-x treesit-install-language-grammar then uiua to install it.

Screenshots

Syntax highlighting of various uiua elements, in flexoki-theme.

https://github.com/crmsnbleyd/uiua-mode/blob/main/assets/uiua-example.png

Contributors

uiua-ts-mode currently uses a grammar by @shnarazk.

About

Emacs mode for uiua, a stack-based array language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Emacs Lisp 100.0%