Versions in this module Expand all Collapse all v0 v0.0.1 Jan 18, 2018 Changes in this version + const COLON + const DOT + const END_BLOCK + const EOM + const EQUAL + const GT + const HYPHEN + const LABEL_CLASS + const LABEL_CLD + const LABEL_NAMESPACE + const PIPE + const START_BLOCK + const WORD + func Parse(file *os.File) (string, []error) + type Class struct + func CreateClass(stereotype string, name string, fields Fields, methods Methods) *Class + func CreateClassFromDefs(stereotype string, name string, fieldDefs []string, methodDefs []string) *Class + func (this *Class) AddFieldFromString(def string) + func (this *Class) AddMethodFromString(def string) + func (this *Class) GetIdent() string + func (this *Class) SetIdent(id string) + func (this *Class) ToDot() string + type ClassDiagram struct + func CreateClassDiagram(name string, namespaces []*Namespace, classes []*Class, relations []*Relation) *ClassDiagram + func (this *ClassDiagram) AddClass(class *Class) + func (this *ClassDiagram) AddNamespace(ns *Namespace) + func (this *ClassDiagram) AddRelation(relation *Relation) + func (this *ClassDiagram) ToDot() string + type Dot interface + ToDot func() string + type Field struct + func CreateFieldFromString(def string) *Field + func (this *Field) ToDot() string + type Fields []*Field + func (this Fields) ToDot() string + type Lexer struct + ErrorList []error + Result Result + func (l *Lexer) Error(e string) + func (l *Lexer) Lex(lval *yySymType) int + func (this *Lexer) Parse() + type Method struct + func CreateMethodFromString(def string) *Method + func (this *Method) ToDot() string + type Methods []*Method + func (this Methods) ToDot() string + type Namespace struct + func CreateNamespace(name string, classes []*Class, namespaces []*Namespace) *Namespace + func (this *Namespace) AddClass(class *Class) + func (this *Namespace) AddNamespace(namespace *Namespace) + func (this *Namespace) GetIdent() string + func (this *Namespace) ToDot() string + type Relation struct + func CreateRelation(name string, relationType RelationType, fromClass string, toClass string, ...) *Relation + func (this *Relation) ToDot() string + type RelationType int + const RELATION_AGGREGATION + const RELATION_COMPOSITION + const RELATION_IMPLEMENT + const RELATION_INHERIT + const RELATION_NORMAL + type Result interface + type Token struct + Literal string + Type int