Class Block


  • public class Block
    extends Object
    Represents a token's block with its checks
    • Constructor Detail

      • Block

        public Block​(SymbolTable base_symbols)
        creates a new block
        Parameters:
        index -
        base_symbols -
    • Method Detail

      • print

        public String print​(SymbolTable symbol_table)
        pretty printing for a block
        Parameters:
        symbol_table -
        Returns:
      • serialize

        public Schema.Block serialize()
        Serializes a Block to its Protobuf representation
        Returns:
      • deserialize

        public static io.vavr.control.Either<Error.FormatError,​Block> deserialize​(Schema.Block b)
        Deserializes a block from its Protobuf representation
        Parameters:
        b -
        Returns:
      • from_bytes

        public static io.vavr.control.Either<Error.FormatError,​Block> from_bytes​(byte[] slice)
        Deserializes a Block from a byte array
        Parameters:
        slice -
        Returns: