WAGL is a dead-simple language that easily stores data. You might be wondering why it's different from other languages like it. Well it isn't. There's nothing special about it. Deal with it. Nonono just kidding. There's ONE thing that separates it from others like it: The language has an internal structure idealized for progressive integration with the functional vector translation stack, in which it processes the optimization matrix and dispatches the return value to the computer's analogue buffer. In other words: It works. It just works.
- JavaScript (NEW)
Wagl has a simple heirarchy system like json, but doesn't have the annoying quotes that need to surround evey friggin' word.
- Float
- Int
- String
- Char
- Boolean
- Object
- Tabs and spaces do not make a difference in the code.
- The standard naming style is
snake_case
. - Semicolons (
;
) are used to end a child-parent relationship and must be on their own line- Note: Semicolons are optional if there is not a variable underneath.
- Comments begin with a pound:
#
. - The only characters that should be used are:
[A-Za-z0-9]
-
"
&'
-
.
&_
# simple example
employees
matt
name "Matt Murdock"
age 30
is_male true
latitude 24.5
longitude 79.2
;
jessica
name "Jessica Jones"
age 35
is_male false
latitude 19.26
longitude 47.63
;
;
To install WAGL, use npm i wagl
in your terminal. Make sure that NodeJS is installed prior to downloading this module
// Get WAGL via Node's `require` function
const wagl = require('wagl');
// The argument is the local/absolute path to the WAGL file
const out = wagl.deserialize('../tests/test.wagl');
console.log(out);
/* Output:
{
employees: {
matt: {
name: 'Matt Murdock',
age: 30,
is_male: true,
latitude: 24.5,
longitude: 79.2
},
jessica: {
name: 'Jessica Jones',
age: 35,
is_male: false,
latitude: 19.26,
longitude: 47.63
}
}
}
*/