Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fields should be able to have a primitive name as part of their prefix. #9

Open
ZackPierce opened this issue Jan 29, 2020 · 0 comments

Comments

@ZackPierce
Copy link
Contributor

Currently, any LCM field with one of the primitive type names in the first half of its content is not parsed correctly.

I would expect the following to be successful using the field_type parser function in rust-lcm-codgen/src/parser.rs , but it is not.

assert_eq!(field_type("boolean_with_suffix"),
            Ok(("", Type::Struct(StructType { namespace: None, name: "boolean_with_suffix".to_string() }))));

Instead, we get:

Expected :Ok(("", Struct(StructType { namespace: None, name: "boolean_with_suffix" })))
Actual   :Ok(("_with_suffix", Primitive(Boolean)))
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

No branches or pull requests

1 participant