Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/libdbcppp/DBCX3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,14 +267,14 @@ namespace dbcppp::DBCX3::Grammar
static const auto attribute_value_type_enum_def = (lit("ENUM") > (quoted_string % ','))[SetAttributeValuetypeEnum];

static const auto attribute_default_def =
(lexeme[(lit("BA_DEF_DEF_REL_") | lit("BA_DEF_DEF_")) >> omit[space]]) > attribute_name > attribute_value > ';';
static const auto attribute_value_def = double_ | signed_int | quoted_string;
(lexeme[(lit("BA_DEF_DEF_REL_") | lit("BA_DEF_DEF_")) >> omit[space]]) > attribute_name > attribute_value;
static const auto attribute_value_def = (signed_int > ';') | (double_ > ';') | (quoted_string > ';') ;

static const auto attribute_value_ent_def =
lexeme[lit("BA_") >> omit[skipper]]
> (attribute_value_ent_network | attribute_value_ent_node
| attribute_value_ent_message | attribute_value_ent_signal
| attribute_value_ent_env_var) > ';';
| attribute_value_ent_env_var);
static const auto attribute_value_ent_network_def = attribute_name >> attribute_value;
static const auto attribute_value_ent_node_def = attribute_name >> lit("BU_") > node_name > attribute_value;
static const auto attribute_value_ent_message_def = attribute_name >> lit("BO_") > message_id > attribute_value;
Expand Down Expand Up @@ -469,4 +469,4 @@ std::optional<dbcppp::DBCX3::AST::G_Network> dbcppp::DBCX3::ParseFromMemory(cons
return gnet;
}
return std::nullopt;
}
}