1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 22:31:36 +03:00

Add more mappings

This commit is contained in:
joshvera 2016-06-10 15:24:37 -04:00
parent 6bccfb7d2a
commit ed1314b4d7

View File

@ -35,7 +35,7 @@ instance HasCategory Info where
toCategoryName = toCategoryName . category
instance HasCategory Category where
toCategoryName category = case category of
toCategoryName = \case
Program -> "top level"
Error -> "error"
BinaryOperator -> "binary operator"
@ -46,6 +46,10 @@ instance HasCategory Category where
IntegerLiteral -> "integer"
SymbolLiteral -> "symbol"
ArrayLiteral -> "array"
Category.Function -> "function"
Identifier -> "identifier"
Params -> "params"
ExpressionStatements -> "expression statements"
Other s -> s
instance HasCategory leaf => HasCategory (Term leaf Info) where