parser

package
v0.0.0-...-1f0d592 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveQuote

func RemoveQuote(value string) string

Types

type DComponent

type DComponent struct {
	Name            string            `json:"name"`
	ChildComponents []DComponent      `json:"childComponents"`
	Configs         map[string]string `json:"configs"`
}

func CreateDComponent

func CreateDComponent(componentName string) *DComponent

type DConfig

type DConfig struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type DDo

type DDo struct {
	UIEvent       string `json:"uiEvent"`
	ComponentName string `json:"componentName"`
	Data          string `json:"data"`
}

type DFlow

type DFlow struct {
	Interactions []DInteraction `json:"interactions"`
	FlowName     string         `json:"flowName"`
}

type DInteraction

type DInteraction struct {
	See   DSee     `json:"see"`
	Do    DDo      `json:"do"`
	React []DReact `json:"react"`
}

func CreateInteraction

func CreateInteraction() *DInteraction

type DLayout

type DLayout struct {
	LayoutName string       `json:"layoutName"`
	LayoutRows []DLayoutRow `json:"layoutRows"`
}

type DLayoutCell

type DLayoutCell struct {
	ComponentName     string `json:"componentName"`
	LayoutInformation string `json:"layoutInformation"`
	NormalInformation string `json:"normalInformation"`
}

type DLayoutRow

type DLayoutRow struct {
	DLayoutCells []DLayoutCell
}

type DLibrary

type DLibrary struct {
	LibraryName    string          `json:"libraryName"`
	LibraryPresets []LibraryPreset `json:"libraryPresets"`
}

type DProperty

type DProperty struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type DReact

type DReact struct {
	SceneName          string `json:"sceneName"`
	ReactAction        string `json:"reactAction"`
	ReactComponentName string `json:"reactComponentName"`
	AnimateName        string `json:"animateName"`
	ReactComponentData string `json:"reactComponentData"`
}

type DSee

type DSee struct {
	ComponentName string `json:"componentName"`
	Data          string `json:"data"`
}

type DesignApp

type DesignApp struct {
}

func NewDesignApp

func NewDesignApp() *DesignApp

func (*DesignApp) ProcessFile

func (j *DesignApp) ProcessFile(path string) *DesignParser

func (*DesignApp) Start

func (j *DesignApp) Start(path string) []byte

type DesignAppListener

type DesignAppListener struct {
	BaseDesignListener
}

func NewDesignAppListener

func NewDesignAppListener() *DesignAppListener

func (*DesignAppListener) EnterComponentDeclaration

func (s *DesignAppListener) EnterComponentDeclaration(ctx *ComponentDeclarationContext)

func (*DesignAppListener) EnterConfigDeclaration

func (s *DesignAppListener) EnterConfigDeclaration(ctx *ConfigDeclarationContext)

func (*DesignAppListener) EnterFlowDeclaration

func (s *DesignAppListener) EnterFlowDeclaration(ctx *FlowDeclarationContext)

func (*DesignAppListener) EnterLayoutDeclaration

func (s *DesignAppListener) EnterLayoutDeclaration(ctx *LayoutDeclarationContext)

func (*DesignAppListener) EnterLibraryDeclaration

func (s *DesignAppListener) EnterLibraryDeclaration(ctx *LibraryDeclarationContext)

type DesignInformation

type DesignInformation struct {
	ProjectConfigs map[string]string     `json:"projectConfigs"`
	Flows          []DFlow               `json:"flows"`
	Components     map[string]DComponent `json:"components"`
	Layouts        []DLayout             `json:"layouts"`
	Libraries      []DLibrary            `json:"libraries"`
}

type LibraryPreset

type LibraryPreset struct {
	Key           string       `json:"key"`
	Value         string       `json:"value"`
	PresetCalls   []PresetCall `json:"presetCalls"`
	SubProperties []DProperty  `json:"subProperties"`
}

type PresetCall

type PresetCall struct {
	LibraryName   string `json:"libraryName"`
	LibraryPreset string `json:"libraryPreset"`
}

Jump to

Keyboard shortcuts

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