Introduces literals and type checker #90
Labels
changes: major
Breaking changes
difficulty: hard
Hard Issues
size: large
Arround 2months ~
type: enhancement
New feature or request
Milestone
The compiler now treats the type of all tokens as
Text
. However, there are more kinds of data in general documents.For instance
Path
,Integer
,Record
andEnum
.I felt so difficult and too complex to implement large amount of validations and castings when developing Brack plugins.
We'll introduce the brack in literals and handy type checker to make it easy to build plugins.
Literal
The literal can be written as
`DATA
.For example,
`123
is inferred as anInteger
type, and`{ foo: 123 }
is inferred asRecord
(to be precise, its type isRecord{ foo: 123 }
). As an exception, the statement whose first character is a dot (.
) is inferred asPath
(like Nix).The text was updated successfully, but these errors were encountered: