Skip to content
mojo-langPublic

About

A data oriented, simple but powerful DSL language.

Topics

Resources

Stars

107 stars

Watchers

42 watching

Forks

Latest commit

 

History

308 Commits

Folders and files

Repository files navigation

Mojo

Project layout

Package declarations are consolidated in package.mojo. Sources live in mojo/; Go, Java, Markdown, OpenAPI, and Protobuf outputs share the root go/, java/, document/, openapi/, and protobuf/ directories. From go/, use go run ./cmd/mojo build -t api .. for all declared packages, or go run ./cmd/mojo build -t go ../mojo/core for one package.

Regenerating the core libraries

From go/, run go run ./cmd/mojo bootstrap to regenerate Go, Java, Protobuf, Markdown documentation, and OpenAPI definitions, then rebuild the CLI. Use go run ./cmd/mojo bootstrap -t java to update the shared Java library, or -t go,java to regenerate both languages. See the Java build guide. See the bootstrap guide for the source layout, outputs, and single-package builds.

Use mojo build -t api,service . to generate backend services and entity CRUD models under service-go/pkg/model. See the entity model guide for primary keys, database initialization, and generated operations.

For the complete workflow from project creation to implementing and running a Go kit service, see NCraft 微服务开发指南. For data structures and service interface definitions, see Mojo 简明语法. For literals, operators, member access, and calls, see Mojo 表达式说明.

What can do

  1. Code generator
  2. Database quey language for relational, document and graph database (inspired by the RQL of the Rethink_d_b)
    1. SQL
    2. Graph_q_l
    3. Cypher Query Language
  3. Script for data process

About

A data oriented, simple but powerful DSL language.

Topics

Resources

Stars

107 stars

Watchers

42 watching

Forks

Releases

Packages

Used by

Contributors

Languages