Skip to content

add wire format parser and serializer for booleans , strings and arrays - #575

Open
Devansh-18155 wants to merge 1 commit into
ControlCore-Project:devfrom
Devansh-18155:fix/matlab-wire-format-parity
Open

add wire format parser and serializer for booleans , strings and arrays#575
Devansh-18155 wants to merge 1 commit into
ControlCore-Project:devfrom
Devansh-18155:fix/matlab-wire-format-parity

Conversation

@Devansh-18155

Copy link
Copy Markdown

Previously, the MATLAB only supported flat numeric arrays because concore_read.m was using regex to strip all brackets and parsing only floats with sscanf. This caused booleans and strings to be silently dropped and flattened nested lists . also concore_write.m was using num2str which broke when trying to send cell arrays or strings.

Added a parser (concore_literal_eval.m) and serializer (concore_literal_serialize.m) that properly handle booleans, strings with escapes, nested lists, tuples, and numbers in MATLAB native types (cell arrays, logicals).

Fixes #574

@Devansh-18155

Copy link
Copy Markdown
Author

@pradeeban Could you please review my PR when you get a chance. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant