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