Skip to content
Snippets Groups Projects
Commit b72691d8 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Fix basic set definition

They are defined as keyword and not single character, which may lead to
inappropriate behavior. For instance
``
Rx = 3;
``
was compiled as
``
R x = 3;
``
parent 2bed912c
No related branches found
No related tags found
1 merge request!37Feature/language
......@@ -60,10 +60,10 @@ struct LITERAL : seq< literal, ignored >{};
struct REAL : seq< real, ignored >{};
struct B_set : one< 'B' >{};
struct N_set : one< 'N' >{};
struct Z_set : one< 'Z' >{};
struct R_set : one< 'R' >{};
struct B_set : TAO_PEGTL_KEYWORD("B"){};
struct N_set : TAO_PEGTL_KEYWORD("N"){};
struct Z_set : TAO_PEGTL_KEYWORD("Z"){};
struct R_set : TAO_PEGTL_KEYWORD("R"){};
struct string_type : TAO_PEGTL_KEYWORD("string") {};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment