An open API service indexing awesome lists of open source software.

https://github.com/ryanfleck/rml

Ryan's Micro LISP
https://github.com/ryanfleck/rml

Last synced: 12 months ago
JSON representation

Ryan's Micro LISP

Awesome Lists containing this project

README

          

# Ryan's Micro LISP

[![Build Status](https://travis-ci.org/RyanFleck/RML.svg?branch=master)](https://travis-ci.org/RyanFleck/RML)

![RML](/docs/assets/rml.svg)

This is a tiny lisp. No use case yet, just building it for fun. It can currently only parse polish mathematical grammar with the four basic operations, separated with parentheses to an infinite depth. It can compile across UNIX OSes (discluding MacOS,) but with reduced history and line-editing functionality on Windows. Uses the `astyle` program invoked as `astyle -A3 rml.c` to enforce K&R formatting.

## TODOs

- Look into *ValGrind*

## Additions to VimRC

On a whim, I've decided to use `clang-format` as my code formatter, but upon
running it, found it uses two spaces for indentation. No matter - I made the
following tweaks to my `.vimrc` to account for this.

```vim
autocmd FileType c call SetCOptions()
function SetCOptions()
nnoremap :w :! clear && gcc % && clear && ./a.out
nnoremap :w :! clear && clang-format -i % && echo "Formatted."
set tabstop=2
set shiftwidth=2
set softtabstop=2
endfunction
```