Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/muqhc/skolloble
skolloble, the markup language like xml
https://github.com/muqhc/skolloble
Last synced: 25 days ago
JSON representation
skolloble, the markup language like xml
- Host: GitHub
- URL: https://github.com/muqhc/skolloble
- Owner: muqhc
- License: unlicense
- Created: 2022-01-19T10:31:56.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-22T02:53:13.000Z (almost 2 years ago)
- Last Synced: 2024-11-07T12:12:52.234Z (3 months ago)
- Language: Java
- Size: 147 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# .skolloble (.skble)
#### _skolloble, the markup language such as xml_
## Grammar
#### [grammar definition with antlr4](skolloble-grammar/grammar/src/main/antlr/Skolloble.g4)
### 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......
```
Hello Skolloble
Click to go Github !
```
[example-code](skolloble-test)
## more
### parser
##### [skolloble-parser](skolloble-parser)
### skolloble to xml converter
##### [skolloble-to-xml](skolloble-to-xml)