mapping SVCL: dsl.ServiceCall
4–8: CustomerName
19–23: CustomerID
24–27: CallTypeCode
28–35: DateOfCallString
mapping USGE: dsl.Usage
4–8: CustomerID
9–22: CustomerName
30–30: Cycle
31–36: ReadDate
Based on Martin Fowler's article on Language Workbenches, in which he elaborates a simple DSL for configuring data readers. This example is a straight copy from his.
Mapping 1: | [remove] | |
Mapping 2: | [remove] | |
Add a new mapping |
{ "mappings": [ { "code": "SVCL", "targetClass": "dsl.ServiceCall", "fields": [ { "name": "CustomerName", "start": "4", "end": "8" }, { "name": "CustomerID", "start": "19", "end": "23" }, { "name": "CallTypeCode", "start": "24", "end": "27" }, { "name": "DateOfCallString", "start": "28", "end": "35" } ] }, { "code": "USGE", "targetClass": "dsl.Usage", "fields": [ { "name": "CustomerID", "start": "4", "end": "8" }, { "name": "CustomerName", "start": "9", "end": "22" }, { "name": "Cycle", "start": "30", "end": "30" }, { "name": "ReadDate", "start": "31", "end": "36" } ] } ] }