Default syntax of Data Code
version 1.02

Along with a conventional text, the Data Code can contain a special character with a reserved meaning, - sign #, - after which a position of required object(s) in some Base text is specified. Considering space a default delimiter between the objects, we can describe a textual fragment as a range of required words, e.g., a passage between fifth and one thousand sixteenth words. In the latter case, the code will be "#5-1016.
"#0" means no code at all, - just content of the whole BaseText.

For example,
If we have the Base text "One two three four five", and apply to it the Code "This is word #2", the following result will be generated: "This is word two".

If we use the same Base text and apply to it the Code
" This is first word: #1 . And these are first three words: #1-3 . And this is the whole base text: #0 . ",
we will obtain the following result:
"This is first word: One . And these are first three words: One two three . And this is the whole base text: One two three four five .".

Thus, the Code's items are space-separated, and are either the numeric range (starting with #) or text.

Notes:


See also structure of Data Compiler's files, generated by Fragmentator

Copyright(C) S. Beloy