go-semantic

module
v0.0.0-...-f2c73a6 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: Unlicense

README

SemanticMerge external parser wrapper in Go

Usage

package main

import (
	"flag"
	"github.com/imuli/go-semantic/ast"
	"github.com/imuli/go-semantic/api"
	"golang.org/x/text/encoding"
)

func Parse(source io.Reader, name string, code encoding.Encoding) (ast.File, error) {
	// read from source and parse into an abstract syntax tree here
}

func main() {
	flag.Parse()
	api.Run(Parse)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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