Giter Club home page Giter Club logo

gpp-asn's Introduction

gpp-asn

gpp-asn is a 3GPP spec asn1 extractor. It reads UTF-8 format 3GPP spec and extract the asn1 syntax. It also can use the asn syntax to generate the protobuf syntax and further generate Go structure. It also automates the customerized json marshal and unmarshal functions for all generated Go interfaces. So the generated Go structure can be serialized to bytes using json or asn.1 schemas.

How to use

The asn syntax extractor is used as below:

Usage of ./build/_output/extractor:
  -asnPath string
        destination path to save the asn1 syntex (default "./asn/")
  -specTxt string
        spec text file with .txt extension and UTF-8 format (default "38331-gb0.txt")

To generate default NR RRC asn.1 syntax, simply:

make extract

To generate proto buffer syntax from asn.1 syntax would require a asn1c compiler. With the compiler installed, simply:

make protos-gen

From the generated proto buffer syntax to Go structure, simply:

make protos-go

From the generated Go structure to automate the json marshal/unmarshal functions for interfaces:

make code-gen

gpp-asn's People

Contributors

joshuazhu78 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.