MMQLEngine/mmql/statements/actions/product.go

27 lines
485 B
Go
Raw Normal View History

2022-10-21 16:35:24 +00:00
package actions
import (
// "fmt"
engine "github.com/tgckpg/mmqlengine/mmql/engine"
stmtd "github.com/tgckpg/mmqlengine/mmql/statements"
)
/*
EXPECT: [NAME]
OR
EXPECT: [FUNCTION]( ...params )
*/
2022-10-21 20:10:27 +00:00
func FinancialInstrumentStatement( lexer *engine.Lexer ) ( istmt stmtd.IStatement, err error ) {
stmt := stmtd.FinancialInstrumentStatement{}
2022-10-21 16:35:24 +00:00
name, err := lexer.ReadAlpha()
if err != nil {
return
}
stmt.Name = name
istmt = stmt
return
}