Specctra Keywords - should keywords match enum in specctra_lexer.h?


#1

Just wondering through the code and noticed something that probably ain’t an issue, as it’s probably not used but thought I’d ask about it.

The header file specctra_lexer.h defines an enumerated type of tokens. There are some negative ones at the start of the list but then they start from 0 and are listed alphabetically. First four are:

    T_absolute = 0,
    T_add_group,
    T_add_pins,
    T_added,

I assume that these tokens match up to the strings defined in specctra.keywords the first four of which are:

absolute
added
add_group
add_pins

These two sub-lists are in a different order. The rest of the lists appear to match up token to string. Like I say I’m only wondering through code so this might be a none issue, but thought I’d mention it.