1 Programming Interface
procedure
(proto-string->symbol str [prefix]) → symbol?
str : string? prefix : any/c = #f
Camel case words are separated by - characters.
The entire string is converted to lower case.
Any occurrence of _ is replaced by -.
An is- prefix is replaced by a ? suffix.
The prefix, if present, is stringified and prepended to the identifier separated by :.
procedure
(register-types! types proto) → void?
types : (hash/c string? (cons/c symbol? symbol?) #:immutable #f) proto : file-descriptor-proto?
procedure
(register-enum-type! types proto) → void?
types : (hash/c string? (cons/c symbol? symbol?) #:immutable #f) proto : enum-descriptor-proto?
procedure
(register-message-types! types proto) → void?
types : (hash/c string? (cons/c symbol? symbol?) #:immutable #f) proto : descriptor-proto?
procedure
(type-ref types package name) → (cons/c symbol? symbol?)
types : (hash/c string? (cons/c symbol? symbol?)) package : string? name : string?
procedure
(translate-types types proto) → list?
types : (hash/c string? (cons/c symbol? symbol?)) proto : file-descriptor-proto?
procedure
(translate-enum-type types package proto) → any/c
types : (hash/c string? (cons/c symbol? symbol?)) package : (or/c string? #f) proto : enum-descriptor-proto?
procedure
(translate-message-types types package proto) → list? types : (hash/c string? (cons/c symbol? symbol?)) package : (or/c string? #f) proto : descriptor-proto?
procedure
(translate-extension types package proto) → any/c
types : (hash/c string? (cons/c symbol? symbol?)) package : (or/c string? #f) proto : field-descriptor-proto?
procedure
(generate-racket req) → code-generator-response?
req : code-generator-request?