mirror of
https://github.com/github/semantic.git
synced 2024-12-22 22:31:36 +03:00
Assign goto statements
This commit is contained in:
parent
af5bc5650c
commit
c00c23fff5
@ -49,6 +49,7 @@ type Syntax =
|
||||
, Literal.TextElement
|
||||
, Statement.Assignment
|
||||
, Statement.Break
|
||||
, Statement.Goto
|
||||
, Statement.Return
|
||||
, Syntax.Context
|
||||
, Syntax.Error
|
||||
@ -96,6 +97,7 @@ expressionChoices =
|
||||
, fieldIdentifier
|
||||
, functionDeclaration
|
||||
, functionType
|
||||
, gotoStatement
|
||||
, incStatement
|
||||
, identifier
|
||||
, implicitLengthArrayType
|
||||
@ -377,6 +379,9 @@ breakStatement = makeTerm <$> symbol BreakStatement <*> children (Statement.Brea
|
||||
decStatement :: Assignment
|
||||
decStatement = makeTerm <$> symbol DecStatement <*> children (Expression.Decrement <$> expression)
|
||||
|
||||
gotoStatement :: Assignment
|
||||
gotoStatement = makeTerm <$> symbol GotoStatement <*> children (Statement.Goto <$> expression)
|
||||
|
||||
incStatement :: Assignment
|
||||
incStatement = makeTerm <$> symbol IncStatement <*> children (Expression.Increment <$> expression)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user