jonioos / fire

A fancy parse engine for JML (Jonio Markup Language) files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FIRE Engine

A fancy parse engine for JML (Jonio Markup Language) files

What's FIRE?

Fire it's a parser engine which will read JML files

What's JML (Jonio Markup Language)?

JML is a new stunning markup language easier to understand and faster to read and write

Ok, but what can I do?

The syntax is very simple. You can write the key inside square brackets and the value. For now it supports up to 5 type of objects: Strings, Int, Boolean, Tuple and Lists. The fire engine will read the file and return the objects.

What's the syntax?

     [MY_NAME]"Bob". 
     [KEYINT]0
     [LISTSAMPLE]"Alice"|"Bob"
     [TUPLESAMPLE]"Alice"/0/True/
     [OFFICIAL]True

To write a simple string you have to write the follow code, the name inside square brackets can be everything you want:

[MY_NAME]"Bob"

Or if you want to save a Int you have to write the follow code:

[KEYINT]0

If you want to make a list (Lists are typed, which means you cant put inside the same list strings or boolean together):

[LISTSAMPLE]"Alice"|"Bob"

And if you want to make a tuple you have to write the follow code:

[TUPLESAMPLE]"Alice"/0/True/

(Yes, boolean values need the capital letter like this):

[OFFICIAL]True

GROUPS!

Yeah! You can actually make groups! To make groups you have to use the round brackets

 (ADDRESS_GROUP)
 [NAME]"Alice". 
 [SURNAME]"Bob"
 [ADDRESS]"123 Evergreen Terrace"
 [HOBBIES]"Guitar"|"Photography"
 (ENDGROUP)
 (ANOTHER_GROUP)  
 [NAME]"Alice"  
 [SURNAME]"Bob"  
 [ADDRESS]"123 Evergreen Terrace"  
 [HOBBIES]"Guitar"|"Photography"  
 (ENDGROUP)

About

A fancy parse engine for JML (Jonio Markup Language) files

License:GNU General Public License v3.0


Languages

Language:Python 100.0%