User Tools

Site Tools


gen:syntax

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
gen:syntax [2018/02/04 19:18]
E.L.F. Vesala [Example JSON]
gen:syntax [2018/02/05 10:00] (current)
E.L.F. Vesala Formatting.
Line 1: Line 1:
 ====== Generator Service - Help ====== ====== Generator Service - Help ======
  
-Generators are defined using JSON. The expected data consists of an object (the generator or root object) which has a name, resultPattern,​ and tables. name and resultPattern are strings, whereas tables is an array of objects.  +Generators are defined using JSON-formatted text. The expected data consists of an object (the generator or root object) which contains ''​name''​''​resultPattern''​, and ''​tables''​ objectsThe ''​name'' ​and ''​resultPattern''​ objects  ​are strings, whereas ​''​tables'' ​is an array of objects. ​ 
-A table object ​has a name and entries. name is a string and entries is an array of strings.+ 
 +''​table'' ​object ​contains ​''​name'' ​and ''​entries''​ objectsThe ''​name''​ object ​is a string and ''​entries'' ​is an array of strings.
  
 ===== Example JSON ===== ===== Example JSON =====
gen/syntax.txt · Last modified: 2018/02/05 10:00 by E.L.F. Vesala