Skip to main content

PyPI version

About Semantier Generator.py3

Generate c++ peer of semantic-*.

To run tests/ast/cp bash script, change $SRCDIR to Anclient.cmake/tests/ast:

    pip install semantier_generator
    cd tests/ast
    ./cp
    python -m semantier_gen settings/gen...josn, ast

Constructor Semantics

  • C++ 20 examples (semantier-generator 0.0.7)

Example: Heartbeat.ast.json

  "dataAnclass": "io.odysz.semantic.jsession.HeartBeat",        class HeartBeat : public anson::AnsonBody {  
  "baseAnclass": "io.odysz.semantic.jprotocol.AnsonBody",
                                                                    HeartBeat(
  base": {"stype": "()",                                   =>       AnsonBody(Port::heartbeat),
          "args": ["AnsonBody", "Port::heartbeat"]},
  "args": [{"stype": "", "args": ["string", "clienturi"]}, =>       string clienturi, ... 
 
           {"stype": "ini",                                =>       string ssid, ... ssid(ssid)
            "args": ["string", "ssid", "ssid"]},
 
  "body": [{"stype": "=", "args": ["uri", "clienturi"]}]   =>       uri = clienturi;

Example: docsreq.ast.json

For "()" semantics, user must implement function body of generated decleration, e. g. format() in the follow example.

  "body": {"stype": "()", "args": ["format", "p"]} },    =>   void format(const IFileDescriptor& p); # <---
                                                              # DocsReq() :
                                                              # UserReq() {
                                                              #  Type(_type_);
                                                                  format(p);   # <---
                                                              # }

Since 0.1.0, an indirect subclass of JavaEnum will be forced a class name initialization.

  { "type": "io.odysz.reflect.AnsonJavaEnumAst",
    "baseAnclass": "io.odysz.semantic.jprotocol.AnsonMsg.Port",
    "dataAnclass": "io.oz.anclient.ipcagent.WSPort",
    "ctorsemantics": [
      { "base": {"stype": "()", "args": ["base", "\"_sentinel_\""]}},
      ...
    ]
  }

  =>
  class WSPort : public anson::Port {
  public:
      inline static const std::string _type_ = "io.oz.anclient.ipcagent.WSPort";

      WSPort(const JsonOpt* ctx) : Port(ctx, "_sentinel_") {
          Anclass(_type_);
      }
      ...
  }

Metadata

Release files for semantier-generator 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for semantier-generator 0.1.0
File Size Uploaded Provenance Actions
semantier_generator-0.1.0.tar.gz 9.0 kB Without provenance Details for semantier_generator-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for semantier-generator 0.1.0
File Interpreter ABI Platform Actions
semantier_generator-0.1.0-py3-none-any.whl Python 3 none any Details for semantier_generator-0.1.0-py3-none-any.whl

Total release size: 20.2 kB

Release files / semantier_generator-0.1.0.tar.gz

Download URL semantier_generator-0.1.0.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
380d49dcfbc497cdfff39ecfd8fa9df35ca2447de8ceadea3aa4276cbbcf65a1
BLAKE2b-256 checksum
How to use checksums
6c6da000abdb8989eb84dcf73d926780cc981cd22b4397615c8edde316a7a820
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.1

Release files / semantier_generator-0.1.0-py3-none-any.whl

Download URL semantier_generator-0.1.0-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4cd7e1cdef5b63e1c48e84752ba8de43e43bd1c1fe8c6f11d4d7d0b0ece4c23c
BLAKE2b-256 checksum
How to use checksums
e606abce3b39b64574b72347284e085840d9c73b3c1aff9e3b2daf65011deb83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.1

Security for semantier-generator 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page