Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- tree_sitter_go :: Ptr Language
- data Grammar
- = End
- | Identifier
- | AnonLF
- | AnonSemicolon
- | AnonPackage
- | AnonImport
- | AnonDot
- | BlankIdentifier
- | AnonLParen
- | AnonRParen
- | AnonConst
- | AnonComma
- | AnonEqual
- | AnonVar
- | AnonFunc
- | AnonDotDotDot
- | AnonType
- | AnonStar
- | AnonLBracket
- | AnonRBracket
- | AnonStruct
- | AnonLBrace
- | AnonRBrace
- | AnonInterface
- | AnonMap
- | AnonChan
- | AnonLAngleMinus
- | AnonColonEqual
- | AnonPlusPlus
- | AnonMinusMinus
- | AnonStarEqual
- | AnonSlashEqual
- | AnonPercentEqual
- | AnonLAngleLAngleEqual
- | AnonRAngleRAngleEqual
- | AnonAmpersandEqual
- | AnonAmpersandCaretEqual
- | AnonPlusEqual
- | AnonMinusEqual
- | AnonPipeEqual
- | AnonCaretEqual
- | AnonColon
- | AnonFallthrough
- | AnonBreak
- | AnonContinue
- | AnonGoto
- | AnonReturn
- | AnonGo
- | AnonDefer
- | AnonIf
- | AnonElse
- | AnonFor
- | AnonRange
- | AnonSwitch
- | AnonCase
- | AnonDefault
- | AnonSelect
- | Identifier'
- | Identifier''
- | AnonPlus
- | AnonMinus
- | AnonBang
- | AnonCaret
- | AnonAmpersand
- | AnonSlash
- | AnonPercent
- | AnonLAngleLAngle
- | AnonRAngleRAngle
- | AnonAmpersandCaret
- | AnonPipe
- | AnonEqualEqual
- | AnonBangEqual
- | AnonLAngle
- | AnonLAngleEqual
- | AnonRAngle
- | AnonRAngleEqual
- | AnonAmpersandAmpersand
- | AnonPipePipe
- | RawStringLiteral
- | AnonDQuote
- | AuxInterpretedStringLiteralToken1
- | EscapeSequence
- | IntLiteral
- | FloatLiteral
- | ImaginaryLiteral
- | RuneLiteral
- | Nil
- | True
- | False
- | Comment
- | SourceFile
- | HiddenTopLevelDeclaration
- | PackageClause
- | ImportDeclaration
- | ImportSpec
- | Dot
- | ImportSpecList
- | HiddenDeclaration
- | ConstDeclaration
- | ConstSpec
- | VarDeclaration
- | VarSpec
- | FunctionDeclaration
- | MethodDeclaration
- | ParameterList
- | ParameterDeclaration
- | VariadicParameterDeclaration
- | TypeAlias
- | TypeDeclaration
- | TypeSpec
- | ExpressionList
- | ParenthesizedType
- | HiddenSimpleType
- | PointerType
- | ArrayType
- | ImplicitLengthArrayType
- | SliceType
- | StructType
- | FieldDeclarationList
- | FieldDeclaration
- | InterfaceType
- | MethodSpecList
- | MethodSpec
- | MapType
- | ChannelType
- | FunctionType
- | Block
- | HiddenStatementList
- | HiddenStatement
- | EmptyStatement
- | HiddenSimpleStatement
- | SendStatement
- | ReceiveStatement
- | IncStatement
- | DecStatement
- | AssignmentStatement
- | ShortVarDeclaration
- | LabeledStatement
- | LabeledStatement'
- | FallthroughStatement
- | BreakStatement
- | ContinueStatement
- | GotoStatement
- | ReturnStatement
- | GoStatement
- | DeferStatement
- | IfStatement
- | IfInitializer
- | ElseClause
- | ForStatement
- | ForClause
- | RangeClause
- | ExpressionSwitchStatement
- | ExpressionCaseClause
- | ExpressionCase
- | DefaultCase
- | TypeSwitchStatement
- | TypeSwitchGuard
- | TypeCaseClause
- | TypeCase
- | SelectStatement
- | CommunicationClause
- | CommunicationCase
- | HiddenExpression
- | ParenthesizedExpression
- | CallExpression
- | VariadicArgument
- | ArgumentList
- | ArgumentList'
- | SelectorExpression
- | IndexExpression
- | SliceExpression
- | TypeAssertionExpression
- | TypeConversionExpression
- | CompositeLiteral
- | LiteralValue
- | KeyedElement
- | Element
- | FuncLiteral
- | UnaryExpression
- | BinaryExpression
- | QualifiedType
- | HiddenStringLiteral
- | InterpretedStringLiteral
- | AuxSourceFileRepeat1
- | AuxImportSpecListRepeat1
- | AuxConstDeclarationRepeat1
- | AuxConstSpecRepeat1
- | AuxVarDeclarationRepeat1
- | AuxParameterListRepeat1
- | AuxTypeDeclarationRepeat1
- | AuxFieldNameListRepeat1
- | AuxExpressionListRepeat1
- | AuxFieldDeclarationListRepeat1
- | AuxMethodSpecListRepeat1
- | AuxHiddenStatementListRepeat1
- | AuxExpressionSwitchStatementRepeat1
- | AuxTypeSwitchStatementRepeat1
- | AuxTypeCaseRepeat1
- | AuxSelectStatementRepeat1
- | AuxArgumentListRepeat1
- | AuxLiteralValueRepeat1
- | AuxInterpretedStringLiteralRepeat1
- | PackageIdentifier
- | FieldIdentifier
- | LabelName
- | TypeIdentifier
- | ParseError
Documentation
tree_sitter_go :: Ptr Language #
Statically-known rules corresponding to symbols in the grammar.
Instances
Bounded Grammar Source # | |
Enum Grammar Source # | |
Eq Grammar Source # | |
Ord Grammar Source # | |
Show Grammar Source # | |
Ix Grammar Source # | |
Symbol Grammar Source # | |
Defined in TreeSitter.Go symbolType :: Grammar -> SymbolType |