diff --git a/TEMPLATE.md b/TEMPLATE.md index 579d695..3eef97a 100644 --- a/TEMPLATE.md +++ b/TEMPLATE.md @@ -1,7 +1,9 @@ ##Want to write your own template? #Variables -At the moment the engine support the following keyword `"var", "func", "data", "cond", "int", "[INT]", "[SMALLINT]"`. +At the moment the engine support the following keyword `"var", "func", "data", "cond", "int"` + +The engine also support following variables `"[int]", "[smallint]"`. This mean that everytime one of these keyword is found it will be replace with random value. @@ -9,7 +11,7 @@ This mean that everytime one of these keyword is found it will be replace with r Function func1(var1 As String) As String Dim var2 As String Dim int1 As Integer - int1 = [SMALLINT] + int1 = [smallint1] If (var2 = var1) Then func1 = "cond1" End If @@ -29,6 +31,11 @@ Function groJeU(JToaRdHxMcE0 As String) As String End Function ``` +#Parsing instructions +To tell the parser to encode a string use the following pattern `{[your data]}`. The string will be encoded using the offset defined by `encodingoffset` in the JSON config file. + +If you are using keyword that are not supported by the parser add the following line `[use:varname]` at the beginning of your VBA code. + #User defined variables Want to add specific variable like a URL. Simply define it in the template like this `[URL]` @@ -36,7 +43,7 @@ Want to add specific variable like a URL. Simply define it in the template like Function func1(var1 As String) As String Dim var2 As String Dim int1 As String - int1 = [SMALLINT] + int1 = [smallint1] var2 = "[URL]" If (var2 = var1) Then func1 = "cond1"