wails/v3/internal/parser
2023-01-18 21:34:11 +11:00
..
testdata Rename exp -> v3 2023-01-18 21:34:11 +11:00
models.go Rename exp -> v3 2023-01-18 21:34:11 +11:00
parser.go Rename exp -> v3 2023-01-18 21:34:11 +11:00
parser_test.go Rename exp -> v3 2023-01-18 21:34:11 +11:00
README.md Rename exp -> v3 2023-01-18 21:34:11 +11:00

Parser

This package contains the static analyser used for parsing Wails projects so that we may:

  • Generate the bindings for the frontend
  • Generate Typescript definitions for the structs used by the bindings

Implemented

  • Parsing of structs
  • Generation of models
    • Scalars
    • Arrays
    • Maps
    • Structs
  • Generation of bindings

Limitations

There are many ways to write a Go program so there are many different program structures that we would need to support. This is a work in progress and will be improved over time. The current limitations are:

  • The call to application.New() must be in the main package
  • Bound structs must be declared as struct literals