~mna/fastpeg

866d588f260269962bdea0978b245faeb39f98de — Martin Angers 5 years ago eed734f
internal/bootstrap/scanner: credit where credit is due
2 files changed, 4 insertions(+), 0 deletions(-)

M internal/bootstrap/scanner/scanner.go
M internal/bootstrap/token/token.go
M internal/bootstrap/scanner/scanner.go => internal/bootstrap/scanner/scanner.go +2 -0
@@ 1,6 1,8 @@
// Package scanner implements a scanner for fastpeg input. It takes a
// []byte as source which can then be tokenized through repeated calls
// to the Scan method.
//
// Heavily based on the stdlib's go/scanner package.
package scanner

import (

M internal/bootstrap/token/token.go => internal/bootstrap/token/token.go +2 -0
@@ 1,5 1,7 @@
// Package token defines constants representing the lexical tokens
// of the fastpeg language and basic operations on tokens.
//
// Heavily based on the stdlib's go/token package.
package token

import (