From 8c12c6939aab9106db14ec2d11d983bc5b29fb2c Mon Sep 17 00:00:00 2001 From: Niall Sheridan Date: Sun, 7 Jul 2019 21:33:44 +0100 Subject: Switch to modules --- vendor/github.com/homemade/scl/token.go | 39 --------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 vendor/github.com/homemade/scl/token.go (limited to 'vendor/github.com/homemade/scl/token.go') diff --git a/vendor/github.com/homemade/scl/token.go b/vendor/github.com/homemade/scl/token.go deleted file mode 100644 index 77d5ab2..0000000 --- a/vendor/github.com/homemade/scl/token.go +++ /dev/null @@ -1,39 +0,0 @@ -package scl - -//go:generate stringer -type=tokenKind -output=token_string.go -type tokenKind int - -const ( - tokenLineComment tokenKind = iota - tokenMixinDeclaration - tokenVariable - tokenVariableAssignment - tokenFunctionCall - tokenLiteral - tokenVariableDeclaration - tokenConditionalVariableAssignment - tokenCommentStart - tokenCommentEnd -) - -var tokenKindsByString = map[tokenKind]string{ - tokenLineComment: "line comment", - tokenMixinDeclaration: "mixin declaration", - tokenVariableAssignment: "variable assignment", - tokenVariableDeclaration: "variable declaration", - tokenConditionalVariableAssignment: "conditional variable declaration", - tokenFunctionCall: "function call", - tokenLiteral: "literal", - tokenCommentStart: "comment start", - tokenCommentEnd: "comment end", -} - -type token struct { - kind tokenKind - content string - line *scannerLine -} - -func (t token) String() string { - return tokenKindsByString[t.kind] -} -- cgit v1.2.3