Add report type

This commit is contained in:
2023-09-23 18:16:18 -07:00
parent 15be73cbc5
commit cf76638b8a
6 changed files with 32 additions and 1 deletions

View File

@@ -5,7 +5,8 @@ import (
)
var lex = lexer.MustSimple([]lexer.SimpleRule{
{Name: "header", Pattern: `TAF (AMD|COR)? ?`},
{Name: "header", Pattern: `TAF ?`},
{Name: "Type", Pattern: "AMD|COR"},
{Name: "Remark", Pattern: `RMK[^\n]*`},
{Name: "Number", Pattern: `\d+`},
{Name: "Modifier", Pattern: `[+-]|VC`},

View File

@@ -6,6 +6,7 @@ import (
)
type AST struct {
Type *string `(@Type WS)?`
Items []*Item `@@*`
}