Add string interpolation support #25
Labels
enhancement
New feature or request
good first issue
Good for newcomers
hacktoberfest
A good issue to work on for Hacktoberfest
help wanted
Extra attention is needed
We currently don't support string interpolation in Theta. Lets add string interpolation in, following the format:
We can do this directly in the parser. For each string that gets parsed, we can search through it and, if any interpolation is found, convert it to a
BinaryOperationNode
. in this way, the interpolation will just be syntactic sugar over string concatenation.The above example should be converted to an AST matching the following structure:
The text was updated successfully, but these errors were encountered: