Code Monkey home page Code Monkey logo

pine's Introduction

Pine

A language that compiles to HTML code.

The language itself is similar to Javascript visually.

Example

@html{
    @body{
        @h1{
            Header!
        }
        
        @p{
            Paragraph
           
            ~~~
            This text will be ignored by the compiler! I can put HTML code in here if I want!
            <h1>Test</h1>
            ~~~
            
            @div(id="test"){
                This is a div element with the id "test"!
            }
        }
    }
}

How to Use

Pine uses the Neko VM and the Haxe programming language. If you do not have it installed, please install it from the NekoVM website.

Once you have it installed, you can begin to compile your Pine code.

The only files you need are pine.n and yourcode.pine.

Now all you have to do is run neko pine.n yourcode.pine

This will generate output.html in the same directory.

Issues

In order to embed Javascript in your Pine code, you need to surround it with 3 tildas on each side. For example:

~~~
var test = new Object();
~~~

The tildas turn on a flag in the compiler which will stop parsing the code. You can use tildas on Pine characters, such as @, {, and }, to write them in text without conflict from the compiler.

pine's People

Contributors

gmisail avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

rahil627

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.