class PoParser::Parser

Overview

Fast parser directly using Crystal's powerful StringScanner

Important notes about StringScanner.scan:

Defined in:

po_parser/parser.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(message : String) #

Single message parser class.

@param message [String] a single PO message in String format without leading or trailing whitespace


[View source]

Instance Method Detail

def parse #

Parses the message of the PO format.

@return [Hash(Symbol, String|Hash(UInt32, String))] PO message parsed into Hash format


[View source]