1.5.1 • Published 4 years ago

@tv2media/command-transpiler v1.5.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Command Transpiler

The project aims to create a flexible transpiler that transpiles commands from one protocol to another.

The transpiler is a set of rules, which consists of a pattern and a template. A pattern is used to distinguish incoming commands and extract data from them. Templates are used to convert the incoming command, by inserting and modifying the extracted data.

Examples

Pattern: ADD #{ number : amount }
Template: PLUS #{ amount }
Example: ADD 5 => PLUS 5

Pattern: ADDINC #{ number : amount | toInteger | inc 1 }
Template: PLUS #{ amount }
Example: ADDINC 5 => PLUS 6

1.5.1

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.2

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago