1
1
mirror of https://github.com/github/semantic.git synced 2025-01-09 00:56:32 +03:00

Correct the method rule.

This commit is contained in:
Rob Rix 2017-04-07 14:16:58 -04:00
parent b2cacf0d81
commit 1d75bda845

View File

@ -40,7 +40,7 @@ assignment = foldr (>>) (pure Nothing) <$ rule Program <*> children (many declar
<*> children (Declaration.Class <$> constant <*> pure [] <*> declaration)
constant = wrapU . Syntax.Identifier <$ rule Constant <*> content
identifier = wrapU . Syntax.Identifier <$ rule Identifier <*> content
method = wrapU <$ rule Method <*> (Declaration.Method <$> identifier <*> pure [] <*> statement)
method = wrapU <$ rule Method <*> children (Declaration.Method <$> identifier <*> pure [] <*> statement)
statement = expr
comment :: Assignment Grammar (Program Syntax a)