Skip to content

muqhc/skolloble

Repository files navigation

.skolloble (.skble)

skolloble, the markup language such as xml

Grammar

Comment

wrap texts with '*'

* It is a Comment! *

element

name : attribute"value" / * under all child elements *

name : attribute"value" { * child elements * }

name : attribute"value" -  * single child element *

name : attribute"value" ;  * no child element *

text

name : attr"value" {
    "I'm a Text!"
    `I'm a Text too!`
}

short-attribute

attribute without "value"

name : shortattr1 shortattr2 ........

prefix

abc<>world : abc<>attr1"value" abc<>attr2"value" ....
world@abc : attr1@abc"value" attr2@abc"value" ....

Tips

  • You can write "Text" or attribute's "value" like this...
    • `Text`, `value`
    • ` it can include "double quates" `

( Example )

### simple html page

in skolloble......

html /
    head {
        meta : charset"utf-8" ;
        title - "Hello Skolloble"
    }
    body /
        button: disabled -
            a: href"https://github.com/" target"_blank" -
                "Click to go Github !"

in xml......

<html>
    <head>
        <meta charset="utf-8"/>    
        <title>Hello Skolloble</title>
    </head>
    <body>
        <button disabled="disabled">
            <a href="https://github.com/" target="_blank">Click to go Github !</a>
        </button>
    </body>
</html>

example-code

more

parser

skolloble to xml converter