-
Couldn't load subscription status.
- Fork 0
DescribeGrammar tildes
Tildes, aka “tilde inversions” or simply “inversions” are an alternative way to add data to an entry, without using decorators, as decorators are not convenient for long texts. To write a tilde inversion, simply put a tilde symbol ~ in front of the entry that you wish to invert. The inverted entry is no longer part of the production, but refers solely to the head of the production now.
What happens behind the scenes is that the inversion is added as a decorator to the item, with the tag of the inversion being the name of the decorator. (However, this is not fully implemented yet, and the tilde inversions are added as items at the moment, as a hack around. The feature will be implemented in the next releases)
The example below illustrate how to use inversions. In the first example, we use inversions to add shorter versions to some items in a list, including the head. In the second example, we achieve the same with decorators:
Example (tilde inversions):

Example (decorators):

Home
Grammar How To
Compiler How To
CLI Compiler - How to
CLI Compiler - How to - help
CLI Compiler - How to - parse-file
CLI Compiler - How to - parse-folder
CLI Compiler - How to - encrypt-file
CLI Compiler - How to - decrypt-file
CLI Compiler - How to - recrypt-file
CLI Compiler - How to - encrypt-folder
CLI Compiler - How to - decrypt-folder
CLI Compiler - How to - recrypt-folder
API Compiler - How to
API Compiler - How to - Example 1
API Compiler - How to - Example 2
API Compiler - How to - Example 3
API Compiler - How to - Example 4
API Compiler - How to - Example 5
AWS Compiler - How to
AWS technical overview
API gateway configuration
output - low
output - medium
output - high
output - themes
Grammar - Lists
Grammar - Comments
Grammar - Links
Grammar - Decorators
Grammar - Tags
Grammar - More on Tags
Grammar - Directives
Grammar - Dot Notation
Grammar - Tildes
Grammar - Files
Deprecated - Slash Notation
Deprecated - Delimiter Mode
Describe Basics - v0.6
Describe Tags - v0.7
Describe Links - v0.8
Describe Decorators - v0.9
Describe Lines - v1.0
Describe Doubles - v1.1