1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00

A program is a list of statements

This commit is contained in:
joshvera 2017-08-24 12:23:15 -04:00
parent b9d0e14149
commit 6e59dcc24c

View File

@ -621,7 +621,7 @@ instance Show1 RestParameter where liftShowsPrec = genericLiftShowsPrec
-- | Assignment from AST in Rubys grammar onto a program in TypeScripts 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 $