kegml

package
v0.0.0-...-7e2beaa Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Examples

Constants

View Source
const (
	Untyped int = iota
	Title
)

Variables

View Source
var PEGN string

Functions

func ParseTitle

func ParseTitle(s pegn.Scanner) *ast.Node

func ReadTitle

func ReadTitle(path string) (string, error)

ReadTitle reads a KEG node title from KEGML file.

func ScanTitle

func ScanTitle(s pegn.Scanner, buf *[]rune) bool
Example (Short)
package main

import (
	"fmt"

	"github.com/rwxrob/keg/kegml"
	"github.com/rwxrob/pegn/scanner"
)

func main() {

	s := scanner.New(`# A short title`)

	fmt.Println(kegml.ScanTitle(s, nil))
	s.Print()

}
Output:

true
'e' 14-15 ""

Types

This section is empty.

Jump to

Keyboard shortcuts

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