WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

hanxuanliang/goctl-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goctl-rs

A simple Rust version of goctl

Support

  • type struct

  • many type struct

  • nest type struct

  • service block

  • API block

Structure

  1. token.rs - Tokenize the input string
  2. parser.rs - Parse API Syntax
  3. service.rs - Parse Service Block
  4. struct_ref.rs - Parse Struct Block

Questions

Problems encountered in development

  1. Why is parse_many_struct not used in parse_struct_stmt1, but parse_struct_to_vec is used instead?

About

parse api file use rust. inspire from: https://github.com/zeromicro/go-zero/tree/master/tools/goctl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages