GithubHelp home page GithubHelp logo

cource / siml-lang Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 19 KB

SImple Markup Language, an alternate syntax for html

License: GNU General Public License v3.0

Haskell 89.82% Nix 4.95% HTML 5.22%

siml-lang's Introduction

SiML - A markup lanugage for people who actually type

You might have guessed that 'ML' in SiML stands for 'Markup Language', Si is supposed to be an acronym for SImple, but it very well could be Silicon.

Why?

HTML is just too much characters. And, LISP just is really nice for markup. Siml looks like this:

[html
[head [title "An HTML page"]]
[body [h1 "This is a Heading"]]]

Compiled to HTML:

<html>
<head><title>An HTML page</title></head>
<body><h1>This is a Heading</h1></body>
</html>

Language Syntax

Definiton: [element-name <optional-attribute-set> <optional-children>]
Where:
<optional-attribute-set>: () or (key="value") or nothing
<optional-children>: "text" or more siml
Example:
[element-name(attribute1="value" flag-attribute) "string" [child-element]]

Build

  • Step 1: Have Nix
  • Step 2: Clone this repo
git clone

btw, you need the git program to do this.

  • Step 3: Know how to use Nix
  • Step 4: If you don't know, you can just run
nix-build

make sure you are in the root of this project before you do run it

cd siml-lang
  • Step 5: After the build is complete, the executable should be in dist-newstyle/build/x86_64-linux/ghc-9.4.8/siml-hs-0.1.0.0/x/siml/build/siml/siml or somewhere similar (the version numbers could be different)

siml-lang's People

Contributors

cource avatar

Watchers

 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.