mirror of
https://github.com/github/semantic.git
synced 2024-12-21 13:51:44 +03:00
A program is a list of statements
This commit is contained in:
parent
b9d0e14149
commit
6e59dcc24c
@ -621,7 +621,7 @@ instance Show1 RestParameter where liftShowsPrec = genericLiftShowsPrec
|
||||
|
||||
-- | Assignment from AST in Ruby’s grammar onto a program in TypeScript’s syntax.
|
||||
assignment :: Assignment
|
||||
assignment = handleError $ makeTerm <$> symbol Program <*> children (Syntax.Program <$> many expression)
|
||||
assignment = handleError $ makeTerm <$> symbol Program <*> children (Syntax.Program <$> many statement)
|
||||
|
||||
expression :: Assignment
|
||||
expression = handleError $
|
||||
|
Loading…
Reference in New Issue
Block a user