gcode_reader.syntax =================== .. py:module:: gcode_reader.syntax Attributes ---------- .. autoapisummary:: gcode_reader.syntax.ABS_POSITION gcode_reader.syntax.flavors gcode_reader.syntax.floating_point_regex Functions --------- .. autoapisummary:: gcode_reader.syntax.available_flavors gcode_reader.syntax.resolve_flavor Module Contents --------------- .. py:function:: available_flavors() -> list[str] Returns a list of available G-code flavor keys :returns: List of available G-code flavor keys :rtype: list[str] .. py:function:: resolve_flavor(flavor: str) -> dict Helper function to resolve gcode flavor from string or dict :param flavor: G-code flavor as a string key or a dictionary :type flavor: str | dict :raises ValueError: If the flavor string is not recognized :raises TypeError: If the flavor is not a string or a dictionary :returns: G-code flavor dictionary :rtype: dict .. py:data:: ABS_POSITION :value: ['x', 'y', 'z'] .. py:data:: flavors .. py:data:: floating_point_regex :value: '[-+]?\\d*\\.?\\d+(?:[eE](?:[-+]?\\d*\\.?\\d+))?'