~bduggan/raku-protobuf

ref: 4928ccd4ed1b64b5cef334ce173153eb7d1fa4a0 raku-protobuf/lib/Protobuf.rakumod -rw-r--r-- 218 bytes
4928ccd4Brian Duggan fix field options, support reserved enums 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
unit module Protobuf;

use Protobuf::Grammar;
use Protobuf::Actions;

sub parse-proto(Str $s) is export {
  my $a = Protobuf::Actions.new;
  my $g = Protobuf::Grammar.new.parse($s, actions => $a);
  return $g.made;
}