Compiler

Synopsis

compiler [OPTIONS] -m MECHANISM -l LANGUAGE -o OUTPUT-DIRECTORY INPUT-FILE*

Description

The Rosetta Stone compiler produces data-holder classes and (de)serialization code for MECHANISM for LANGUAGE from data definitions and mapping descriptions INPUT-FILE. Output is written to files which are placed in OUTPUT-DIRECTORY.

The usual commandline options are accepted. Specialized commandline options:

--output-directory DIRECTORY, -o DIRECTORY

Write generated output files to DIRECTORY.

--mechanism MECHANISM, -m MECHANISM

Generate (de)serialization code for MECHANISM.

--language LANGUAGE, -l LANGUAGE

Generate code for LANGUAGE.

--keep-going, -k

Like in GNU make. Try to continue after encountering errors. Causes a summary of warnings and errors to be displayed after processing has finished.

Examples

  • $ rosetta-compiler -m bottle/data-holder         \
                       -l C++                        \
                       -o my-project/generated-code/ \
                       my-idls/my-type.proto
    

    Generate a C++ data-holder class and serialization code for the bottle/data-holder mechanism from the description in my-idls/my-type.proto and output the generated code into the my-project/generated-code directory.

    $ ls my-project/generated-code/
    MyType.h MyType_Bottle.h
    

Table Of Contents

Related Documentation

This Page