2.0.0 • Published 3 years ago

latte-lang v2.0.0

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
3 years ago

Latte

Latte is a elegant, lispy, markup language with structure similar to languages like JSON and XML, but with an S Expression-like syntax.

Usage

const latte = require('latte-lang');
const fs = require('fs');
const obj = latte.parse(fs.readFileSync('test.latte', {encoding: 'utf-8'}));

Example

/*
  multiline
  comment
*/

/* basic comment */

/* variable */
hello "world"

/* variable with array, commas are optional */
groceries [ "apples", "oranges", "milk" ]

/* variable with object */
settings {
  adminMode true
  enableRegistration false
}

/* 
  valid values:
  strings, integers, floats, booleans, arrays, objects, null  
*/