Documentation ¶
Overview ¶
Copyright (c) 2021 Ke Yuchang(aceking.ke@gmail.com). All rights reserved. Use of this source code is governed by MIT license that can be found in the LICENSE file.
Copyright (c) 2021 Ke Yuchang(aceking.ke@gmail.com). All rights reserved. Use of this source code is governed by MIT license that can be found in the LICENSE file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TemplateGenFromString ¶
func TsGenFromString ¶
Types ¶
type TemplateBuilder ¶
type TemplateBuilder struct { NeedPacked bool HttpParser bool NTerminals int HeaderPart string CodeHeader string ConstPart string UnionPart string AnalyTable string PackAnalyTable string CodeLast string StateFunc string ReduceFunc string Translate string TranslateTrace string ReduceTrace string // contains filtered or unexported fields }
TODO: add the class model, not use global variables.
func NewTemplateBuilder ¶
func NewTemplateBuilder(w *parser.Walker) *TemplateBuilder
func (*TemplateBuilder) WriteFile ¶
func (b *TemplateBuilder) WriteFile(f *os.File)
Click to show internal directories.
Click to hide internal directories.