Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

PB2PAS

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

PB2PAS

PB2PAS is a protocol buffer compiler, that compiles protobufs to Pascal. This project is under development.

I am making my contributions/submissions to this project solely in my personal capacity and am not conveying any rights to any intellectual property of any third parties.

Usage

  1. Obtain a copy of the repo and run git submodule init git submodule update
  2. Build PB2PAS

    fpc -Sd PB2PAS.lpr -Fumodules/PB2PAS -Fumodules/General-Purpose-Units -Fumodules/ALogger -Fumodules/Unicode-Functions -Fumodules/Threading

  3. Running PB2PAS

    ls Samples/

    Main.pp test_dep1.proto test.proto

    ./PB2PAS --InputFile Samples/test.proto

    ls Samples/

    Main.pp test_dep1.proto TestDep1Unit.pp test.proto TestUnit.pp

    fpc -Sd Samples/Main.pp -Fumodules/PB2PAS

    ./Samples/Main