Skip to content

About

HELL6.99MO is a Modern Config Format Allowing Developers To Store Configurations In A Very Powerfull Way. The Configs Are Statically Editable During The Parsing Time , Means Developers Can Easily Write Duplicates Within The Config Directly

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

23 Commits

Folders and files

Repository files navigation

HELL6.99MO - High Emmision Lite Level 6.99% Model O

HELL6.99MO is a modern data storing format made to allow storage of complex data with a robust and easy to understand , write and flexible syntax. HELL6.99MO was orignally based on the ghgltggamer's Model O Syntax which allows you use any amount of indentation unless the indentation level matches the level of the opened scope.

Let's understand the GTG's MODEL O in depth

Model O is a syntax/rule which allows you to write a text in different - different indentation levels unless they match there current scope.

Scope is nothing but the identifier of the currently opened scope and is the address of the childern of the scope.

Children are the elements which are inside any scope , Even a scope can become the parent of other children and children of it's parent scope.

For Example:

SCOPE1
 - SCOPE2
 - - SCOPE3
 - - - Children of scope 3
 - - Children of the scope 2
 - Children of the scope 1
Outside of the SCOPE1

Here the Model O says that the children can only be formed when the indentation level of an element is greater than the indentation level of current scope, And how many level up don't matters.

For Example:

scope
    a
    b
   c
  d
 e
f

Here, According to the GTG's Model O, all the a to e are the children of the scope because they have higher indentation level than what of scope, but f is having same indentation level and even if less , f won't be a part of scope as f it self is a parent different from scope.

HELL6.99MO's Config format

HELL6.99MO has different specs , This covers the very first specs of the format.

Basics of HELL6.99MO

The most basic thing in HELL6.99MO we can learn is that it's just a Model O based Key = Value pair collection. Means we will always be defining a key with a value like <key> symbol <value>. HELL6.99MO as a Model O based format supports the Comments , Comments are completely ignored by the HELL6.99MO Parsers / Lexers because comments are written to notify something to us humans but not to the computers, and anything starting with a # becomes a comment.

How to define a scope

In HELL6.99MO any key with : becomes a scope for example.

scope1:
    # This comment is even inside the scope1 but will be ignored

Note: Anything inside a scope becomes it's children.

How to make key/value pairs

In HELL6.99MO you can define a key/value pair by defining a key with = symbol and it's value right next to it.

For example:

key = "value"

Attributes in HELL6.99MO

HELL6.99MO gives you attributes to do some specific programmable task like importing another HELL6.99MO Config file , Etc. Please note that different parsers may provide different attributes. We will be using the official specs of the format by GTG.

Defining The Attributes: Anything starts with the @ symbol is an attribute and the attribute names are seperated by the a character and right side of the character is the value of the attribute , (e.g. @import myfile.h699)

Known Attributes: These attributes are defined in the specification.

    • import : Imports another h699 config file and prevent duplications. (File name is given as the attribute value).

Note you don't need to use ',' like symbols to end the line , HELL6.99MO uses \n for line termination automatically.

Datatypes in HELL6.99MO

Datatypes are the structure and a way to define different - different values to any key. Similar to other languages the HELL6.99MO has several datatypes:-

  • Keys : These are standard datatypes to define values
  • Values : These are the dynamic datatype who changes itself based on the data.

Value Datatype Value datatype are the types which changes the type of value and makes it globally accessible. These includes :-