Giter Club home page Giter Club logo

labscript's Introduction

LabScript!

LabScript is a very, very simple markdown (up?) language that I can compile to HTML. The goal was to create a very simple language to write little blog posts in, as well as to test out what building a little parser / compiler is like.

As of this post, LabScript supports 3 kinds of content blocks:

  • Text
  • Code Blocks
  • Photos

This repo contains a Ruby parser implementation.

Alternatives considered:

  • Jekyll (markdown files -> HTML): this is probably the right choice - but it felt heavy to be honest. I didn't want to deal with writing pure markdown in Vim (too many seductive tools for viewing / editing).
  • Writing raw HTML: also would work but too much cognitive load.
  • Blogger / WordPress / choose-your-own-blog-service: I was concerned I wouldn't understand the abstractions from first principles, or that by the time I did they'd have shifted significantly under my feet. Also, would have to convert my static site onto some kind of hosted service.

    Next steps will be adding footnote support to the Text content block - also may write a LabScript parser in OCaml / some functional language as a nice contrast to my hacky implementation in Ruby.

    [0] github link here

labscript's People

Contributors

patrickspieker avatar

Watchers

James Cloos avatar  avatar

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.