day03

package
v0.0.0-...-5d524ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Day03 = runner.NewStreamingDay(3, parseSchematic, part1, part2).
	WithExpectedAnswers(539590, 80703636)

Functions

This section is empty.

Types

type Token

type Token struct {
	Type   TokenType
	Value  string
	Line   int
	Column int

	Numbers []string // If this is a part, the numbers which are adjacent to it
}

func (Token) EndCol

func (t Token) EndCol() int

func (Token) StartCol

func (t Token) StartCol() int

func (Token) String

func (t Token) String() string

type TokenType

type TokenType uint8
const (
	Number TokenType = iota
	Part
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL