hanxuanliang / goctl-rs

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Rust 100.0%