msgpiler

package
v1.0.7-0...-4242cd9 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const COMMENT = 57349
View Source
const CONSTANT = 57350
View Source
const IDENTIFIER = 57346
View Source
const INTEGER = 57348
View Source
const LEFTBRACKET = 57352
View Source
const MSGDEF = 57354
View Source
const NAMESPACESEPARATOR = 57355
View Source
const NEWLINE = 57351
View Source
const RIGHTBRACKET = 57353
View Source
const SIMPLETYPE = 57347

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageField

type MessageField struct {
	VariableType      string
	IsComplexType     bool
	IsBaseType        bool
	IsArray           bool
	ArrayLength       int32
	VariableName      string
	Namespace         []string
	ComplexTypeFormat *MessageFormat
	BinaryRead        func(*bytes.Buffer, []byte, int32, int32) int32
}

MessageField contains single datafield definition

type MessageFormat

type MessageFormat struct {
	Namespace      []string
	Name           string
	Fullname       string
	Fields         []MessageField
	MessageFormats []MessageFormat
}

MessageFormat contains everything we need to read given format

func Compile

func Compile(source []byte, rootmessageFullName string) (*MessageFormat, error)

Compile compiles ros msg format into AST

func (*MessageFormat) DebugPrint

func (message *MessageFormat) DebugPrint()

DebugPrint dumps selected content from compiled message

Jump to

Keyboard shortcuts

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