Documentation
¶
Index ¶
Constants ¶
View Source
const (
CurrentLanguage = gValues.LanguagePy
)
View Source
const (
DefaultFileNamingStyle = gValues.StyleSnakeCase
)
Variables ¶
View Source
var (
LanguageAliases = []string{
"py",
"python",
"python3",
}
)
Functions ¶
func GenerateCode ¶
func GenerateCode(options *gen.CodeGenerationOptions) (*gen.CodeGenerationResult, error)
GenerateCode generates Python code from the provided CCL source file.
Types ¶
type CCLField ¶ added in v0.0.3
type CCLField = cclValues.ModelFieldDefinition
CCLField is a type alias for the field definition type from the CCL's internal packages.
type CCLModel ¶ added in v0.0.3
type CCLModel = cclValues.ModelDefinition
CCLModel is a type alias for the model definition type from the CCL's internal packages.
type PythonGenerationContext ¶ added in v0.0.3
type PythonGenerationContext struct {
*gen.CodeGenerationBase
// One builder per model class file
ModelClasses map[string]*codeBuilder.CodeBuilder
// OutputFiles is the list of generated files.
OutputFiles []string
}
func (*PythonGenerationContext) GenerateCode ¶ added in v0.0.3
func (c *PythonGenerationContext) GenerateCode() error
Click to show internal directories.
Click to hide internal directories.