MMQLEngine/mmql/engine/parsers/financial_instrument.go

27 lines
485 B
Go

package parsers
import (
// "fmt"
engine "github.com/tgckpg/mmqlengine/mmql/engine"
stmtd "github.com/tgckpg/mmqlengine/mmql/statements"
)
/*
EXPECT: [NAME]
OR
EXPECT: [FUNCTION]( ...params )
*/
func FinancialInstrumentStatement( lexer *engine.Lexer ) ( istmt stmtd.IStatement, err error ) {
stmt := stmtd.FinancialInstrumentStatement{}
name, err := lexer.ReadAlpha()
if err != nil {
return
}
stmt.Name = name
istmt = stmt
return
}