Documentation
¶
Index ¶
- func ExtendedInfixToPosfix(regex *utils.DoublyLinkedList, definitions map[string]*utils.DoublyLinkedList) ([]utils.RegexToken, error)
- func ExtendedSimulateAfd(expresion string, afd DAfdJson) utils.Stack
- func ExtendedValidation(regex string) (*utils.DoublyLinkedList, error)
- func InfixToPosfix(regex string) (string, error)
- func NewFullNodo(Valor rune, Izquierdo *utils.Nodo, Derecho *utils.Nodo, Nullability bool, ...) *utils.Nodo
- func NewStarNodo(Valor rune, Izquierdo *utils.Nodo, Nullability bool, firstpos []int, ...) *utils.Nodo
- func ReplaceReferenceIds(definitions map[string]*utils.DoublyLinkedList) (map[string]*utils.DoublyLinkedList, error)
- func SimulateDFA(expresion string, estadoInicial string, estadosFinales []string, ...) (int, string, error)
- type AcceptedExp
- type ArbolExpresion
- type DAfdJson
- type DirectAfd
- type Dstate
- type SLR
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtendedInfixToPosfix ¶
func ExtendedInfixToPosfix(regex *utils.DoublyLinkedList, definitions map[string]*utils.DoublyLinkedList) ([]utils.RegexToken, error)
func ExtendedValidation ¶
func ExtendedValidation(regex string) (*utils.DoublyLinkedList, error)
func InfixToPosfix ¶
func NewFullNodo ¶
func NewStarNodo ¶
func ReplaceReferenceIds ¶
func ReplaceReferenceIds(definitions map[string]*utils.DoublyLinkedList) (map[string]*utils.DoublyLinkedList, error)
Types ¶
type AcceptedExp ¶
type ArbolExpresion ¶
type ArbolExpresion struct { Raiz *utils.Nodo `json:"raiz"` Simbolos []*utils.Nodo `json:"simbolos"` }
func (*ArbolExpresion) ConstruirArbol ¶
func (arbol *ArbolExpresion) ConstruirArbol(posfix string)
func (*ArbolExpresion) ExtendedConstruirArbol ¶
func (arbol *ArbolExpresion) ExtendedConstruirArbol(posfix []utils.RegexToken)
func (*ArbolExpresion) ToJson ¶
func (arbol *ArbolExpresion) ToJson() ([]byte, error)
type DAfdJson ¶
type DirectAfd ¶
type DirectAfd struct { Arbol *ArbolExpresion // contains filtered or unexported fields }
func ExtendedNewDirectAfd ¶
func ExtendedNewDirectAfd(regex []utils.RegexToken) *DirectAfd
func NewDirectAfd ¶
func (*DirectAfd) MarshalJson ¶
type Dstate ¶
type Dstate struct {
// contains filtered or unexported fields
}
func (*Dstate) AddTransicion ¶
Click to show internal directories.
Click to hide internal directories.