From 81422a603d4347729fe17d01d8cf59006bbb6671 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Mon, 20 Nov 2017 16:31:16 -0800 Subject: [PATCH] Add program assignment --- src/Language/Go/Assignment.hs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Language/Go/Assignment.hs b/src/Language/Go/Assignment.hs index d404dd9fe..2a62742e2 100644 --- a/src/Language/Go/Assignment.hs +++ b/src/Language/Go/Assignment.hs @@ -246,6 +246,9 @@ types = arrayType <|> typeSwitchGuard <|> typeSwitchStatement +program :: Assignment +program = makeTerm <$> symbol SourceFile <*> children (Syntax.Program <$> many expression) + -- Literals element :: Assignment