Add cast phrase kind to parser

This commit is contained in:
Sasha Koshka 2022-10-18 23:32:15 -04:00
parent 308996f059
commit 6dfde851e5
2 changed files with 3 additions and 0 deletions

View File

@ -314,6 +314,8 @@ func (parser *parsingOperation) parsePhraseCommand () (
switch identifier.trail[0] { switch identifier.trail[0] {
case "loc": case "loc":
kind = PhraseKindReference kind = PhraseKindReference
case "cast":
kind = PhraseKindCast
case "defer": case "defer":
kind = PhraseKindDefer kind = PhraseKindDefer
case "if": case "if":

View File

@ -236,6 +236,7 @@ const (
PhraseKindOperator PhraseKindOperator
PhraseKindAssign PhraseKindAssign
PhraseKindReference PhraseKindReference
PhraseKindCast
PhraseKindDefer PhraseKindDefer
PhraseKindIf PhraseKindIf
PhraseKindElseIf PhraseKindElseIf