
/* Do not modify this file it was automatically generated by the
 * TokenList2DsnLexer CMake script.
 *
 * Include this file in your lexer class to provide the keywords for
 * your DSN lexer.
 */

#include <specctra_lexer.h>

using namespace DSN;

#define TOKDEF(x)    { #x, T_##x }

const KEYWORD SPECCTRA_LEXER::keywords[] = {
    TOKDEF( absolute ),
    TOKDEF( add_group ),
    TOKDEF( add_pins ),
    TOKDEF( added ),
    TOKDEF( allow_antenna ),
    TOKDEF( allow_redundant_wiring ),
    TOKDEF( amp ),
    TOKDEF( ancestor ),
    TOKDEF( antipad ),
    TOKDEF( aperture_type ),
    TOKDEF( array ),
    TOKDEF( attach ),
    TOKDEF( attr ),
    TOKDEF( average_pair_length ),
    TOKDEF( back ),
    TOKDEF( base_design ),
    TOKDEF( bbv_ctr2ctr ),
    TOKDEF( bend_keepout ),
    TOKDEF( bond ),
    TOKDEF( both ),
    TOKDEF( bottom ),
    TOKDEF( bottom_layer_sel ),
    TOKDEF( boundary ),
    TOKDEF( brickpat ),
    TOKDEF( bundle ),
    TOKDEF( bus ),
    TOKDEF( bypass ),
    TOKDEF( capacitance_resolution ),
    TOKDEF( capacitor ),
    TOKDEF( case_sensitive ),
    TOKDEF( cct1 ),
    TOKDEF( cct1a ),
    TOKDEF( center_center ),
    TOKDEF( checking_trim_by_pin ),
    TOKDEF( circ ),
    TOKDEF( circle ),
    TOKDEF( circuit ),
    TOKDEF( class ),
    TOKDEF( class_class ),
    TOKDEF( classes ),
    TOKDEF( clear ),
    TOKDEF( clearance ),
    TOKDEF( cluster ),
    TOKDEF( cm ),
    TOKDEF( color ),
    TOKDEF( colors ),
    TOKDEF( comment ),
    TOKDEF( comp ),
    TOKDEF( comp_edge_center ),
    TOKDEF( comp_order ),
    TOKDEF( component ),
    TOKDEF( composite ),
    TOKDEF( conductance_resolution ),
    TOKDEF( conductor ),
    TOKDEF( conflict ),
    TOKDEF( connect ),
    TOKDEF( constant ),
    TOKDEF( contact ),
    TOKDEF( control ),
    TOKDEF( corner ),
    TOKDEF( corners ),
    TOKDEF( cost ),
    TOKDEF( created_time ),
    TOKDEF( cross ),
    TOKDEF( crosstalk_model ),
    TOKDEF( current_resolution ),
    TOKDEF( delete_pins ),
    TOKDEF( deleted ),
    TOKDEF( deleted_keepout ),
    TOKDEF( delta ),
    TOKDEF( diagonal ),
    TOKDEF( direction ),
    TOKDEF( directory ),
    TOKDEF( discrete ),
    TOKDEF( effective_via_length ),
    TOKDEF( elongate_keepout ),
    TOKDEF( exclude ),
    TOKDEF( expose ),
    TOKDEF( extra_image_directory ),
    TOKDEF( family ),
    TOKDEF( family_family ),
    TOKDEF( family_family_spacing ),
    TOKDEF( fanout ),
    TOKDEF( farad ),
    TOKDEF( file ),
    TOKDEF( fit ),
    TOKDEF( fix ),
    TOKDEF( flip_style ),
    TOKDEF( floor_plan ),
    TOKDEF( footprint ),
    TOKDEF( forbidden ),
    TOKDEF( force_to_terminal_point ),
    TOKDEF( forgotten ),
    TOKDEF( free ),
    TOKDEF( fromto ),
    TOKDEF( front ),
    TOKDEF( front_only ),
    TOKDEF( gap ),
    TOKDEF( gate ),
    TOKDEF( gates ),
    TOKDEF( generated_by_freeroute ),
    TOKDEF( global ),
    TOKDEF( grid ),
    TOKDEF( group ),
    TOKDEF( group_set ),
    TOKDEF( guide ),
    TOKDEF( hard ),
    TOKDEF( height ),
    TOKDEF( high ),
    TOKDEF( history ),
    TOKDEF( horizontal ),
    TOKDEF( host_cad ),
    TOKDEF( host_version ),
    TOKDEF( image ),
    TOKDEF( image_conductor ),
    TOKDEF( image_image ),
    TOKDEF( image_image_spacing ),
    TOKDEF( image_outline_clearance ),
    TOKDEF( image_set ),
    TOKDEF( image_type ),
    TOKDEF( inch ),
    TOKDEF( include ),
    TOKDEF( include_pins_in_crosstalk ),
    TOKDEF( inductance_resolution ),
    TOKDEF( insert ),
    TOKDEF( instcnfg ),
    TOKDEF( inter_layer_clearance ),
    TOKDEF( jumper ),
    TOKDEF( junction_type ),
    TOKDEF( keepout ),
    TOKDEF( kg ),
    TOKDEF( kohm ),
    TOKDEF( large ),
    TOKDEF( large_large ),
    TOKDEF( layer ),
    TOKDEF( layer_depth ),
    TOKDEF( layer_noise_weight ),
    TOKDEF( layer_pair ),
    TOKDEF( layer_rule ),
    TOKDEF( length ),
    TOKDEF( length_amplitude ),
    TOKDEF( length_factor ),
    TOKDEF( length_gap ),
    TOKDEF( library ),
    TOKDEF( library_out ),
    TOKDEF( limit ),
    TOKDEF( limit_bends ),
    TOKDEF( limit_crossing ),
    TOKDEF( limit_vias ),
    TOKDEF( limit_way ),
    TOKDEF( linear ),
    TOKDEF( linear_interpolation ),
    TOKDEF( load ),
    TOKDEF( lock_type ),
    TOKDEF( logical_part ),
    TOKDEF( logical_part_mapping ),
    TOKDEF( low ),
    TOKDEF( match_fromto_delay ),
    TOKDEF( match_fromto_length ),
    TOKDEF( match_group_delay ),
    TOKDEF( match_group_length ),
    TOKDEF( match_net_delay ),
    TOKDEF( match_net_length ),
    TOKDEF( max_delay ),
    TOKDEF( max_len ),
    TOKDEF( max_length ),
    TOKDEF( max_noise ),
    TOKDEF( max_restricted_layer_length ),
    TOKDEF( max_stagger ),
    TOKDEF( max_stub ),
    TOKDEF( max_total_delay ),
    TOKDEF( max_total_length ),
    TOKDEF( max_total_vias ),
    TOKDEF( medium ),
    TOKDEF( mhenry ),
    TOKDEF( mho ),
    TOKDEF( microvia ),
    TOKDEF( mid_driven ),
    TOKDEF( mil ),
    TOKDEF( min_gap ),
    TOKDEF( mirror ),
    TOKDEF( mirror_first ),
    TOKDEF( mixed ),
    TOKDEF( mm ),
    TOKDEF( negative_diagonal ),
    TOKDEF( net ),
    TOKDEF( net_number ),
    TOKDEF( net_out ),
    TOKDEF( net_pin_changes ),
    TOKDEF( nets ),
    TOKDEF( network ),
    TOKDEF( network_out ),
    TOKDEF( no ),
    TOKDEF( noexpose ),
    TOKDEF( noise_accumulation ),
    TOKDEF( noise_calculation ),
    TOKDEF( normal ),
    TOKDEF( object_type ),
    TOKDEF( off ),
    TOKDEF( off_grid ),
    TOKDEF( offset ),
    TOKDEF( on ),
    TOKDEF( open ),
    TOKDEF( opposite_side ),
    TOKDEF( order ),
    TOKDEF( orthogonal ),
    TOKDEF( outline ),
    TOKDEF( overlap ),
    TOKDEF( pad ),
    TOKDEF( pad_pad ),
    TOKDEF( padstack ),
    TOKDEF( pair ),
    TOKDEF( parallel ),
    TOKDEF( parallel_noise ),
    TOKDEF( parallel_segment ),
    TOKDEF( parser ),
    TOKDEF( part_library ),
    TOKDEF( path ),
    TOKDEF( pcb ),
    TOKDEF( permit_orient ),
    TOKDEF( permit_side ),
    TOKDEF( physical ),
    TOKDEF( physical_part_mapping ),
    TOKDEF( piggyback ),
    TOKDEF( pin ),
    TOKDEF( pin_allow ),
    TOKDEF( pin_cap_via ),
    TOKDEF( pin_via_cap ),
    TOKDEF( pin_width_taper ),
    TOKDEF( pins ),
    TOKDEF( pintype ),
    TOKDEF( place ),
    TOKDEF( place_boundary ),
    TOKDEF( place_control ),
    TOKDEF( place_keepout ),
    TOKDEF( place_rule ),
    TOKDEF( placement ),
    TOKDEF( plan ),
    TOKDEF( plane ),
    TOKDEF( pn ),
    TOKDEF( point ),
    TOKDEF( polygon ),
    TOKDEF( polyline_path ),
    TOKDEF( position ),
    TOKDEF( positive_diagonal ),
    TOKDEF( power ),
    TOKDEF( power_dissipation ),
    TOKDEF( power_fanout ),
    TOKDEF( prefix ),
    TOKDEF( primary ),
    TOKDEF( priority ),
    TOKDEF( property ),
    TOKDEF( protect ),
    TOKDEF( qarc ),
    TOKDEF( quarter ),
    TOKDEF( radius ),
    TOKDEF( ratio ),
    TOKDEF( ratio_tolerance ),
    TOKDEF( rect ),
    TOKDEF( reduced ),
    TOKDEF( region ),
    TOKDEF( region_class ),
    TOKDEF( region_class_class ),
    TOKDEF( region_net ),
    TOKDEF( relative_delay ),
    TOKDEF( relative_group_delay ),
    TOKDEF( relative_group_length ),
    TOKDEF( relative_length ),
    TOKDEF( reorder ),
    TOKDEF( reroute_order_viols ),
    TOKDEF( resistance_resolution ),
    TOKDEF( resistor ),
    TOKDEF( resolution ),
    TOKDEF( restricted_layer_length_factor ),
    TOKDEF( room ),
    TOKDEF( rotate ),
    TOKDEF( rotate_first ),
    TOKDEF( round ),
    TOKDEF( roundoff_rotation ),
    TOKDEF( route ),
    TOKDEF( route_to_fanout_only ),
    TOKDEF( routes ),
    TOKDEF( routes_include ),
    TOKDEF( rule ),
    TOKDEF( same_net_checking ),
    TOKDEF( sample_window ),
    TOKDEF( saturation_length ),
    TOKDEF( sec ),
    TOKDEF( secondary ),
    TOKDEF( self ),
    TOKDEF( sequence_number ),
    TOKDEF( session ),
    TOKDEF( set_color ),
    TOKDEF( set_pattern ),
    TOKDEF( shape ),
    TOKDEF( shield ),
    TOKDEF( shield_gap ),
    TOKDEF( shield_loop ),
    TOKDEF( shield_tie_down_interval ),
    TOKDEF( shield_width ),
    TOKDEF( side ),
    TOKDEF( signal ),
    TOKDEF( site ),
    TOKDEF( small ),
    TOKDEF( smd ),
    TOKDEF( snap ),
    TOKDEF( snap_angle ),
    TOKDEF( soft ),
    TOKDEF( source ),
    TOKDEF( space_in_quoted_tokens ),
    TOKDEF( spacing ),
    TOKDEF( spare ),
    TOKDEF( spiral_via ),
    TOKDEF( square ),
    TOKDEF( stack_via ),
    TOKDEF( stack_via_depth ),
    TOKDEF( standard ),
    TOKDEF( starburst ),
    TOKDEF( status ),
    TOKDEF( structure ),
    TOKDEF( structure_out ),
    TOKDEF( subgate ),
    TOKDEF( subgates ),
    TOKDEF( substituted ),
    TOKDEF( such ),
    TOKDEF( suffix ),
    TOKDEF( super_placement ),
    TOKDEF( supply ),
    TOKDEF( supply_pin ),
    TOKDEF( swapping ),
    TOKDEF( switch_window ),
    TOKDEF( system ),
    TOKDEF( tandem_noise ),
    TOKDEF( tandem_segment ),
    TOKDEF( tandem_shield_overhang ),
    TOKDEF( term_only ),
    TOKDEF( terminal ),
    TOKDEF( terminator ),
    TOKDEF( test ),
    TOKDEF( test_points ),
    TOKDEF( testpoint ),
    TOKDEF( threshold ),
    TOKDEF( time_length_factor ),
    TOKDEF( time_resolution ),
    TOKDEF( tjunction ),
    TOKDEF( tolerance ),
    TOKDEF( top ),
    TOKDEF( topology ),
    TOKDEF( total ),
    TOKDEF( track_id ),
    TOKDEF( turret ),
    TOKDEF( type ),
    TOKDEF( um ),
    TOKDEF( unassigned ),
    TOKDEF( unconnects ),
    TOKDEF( unit ),
    TOKDEF( up ),
    TOKDEF( use_array ),
    TOKDEF( use_layer ),
    TOKDEF( use_net ),
    TOKDEF( use_via ),
    TOKDEF( value ),
    TOKDEF( vertical ),
    TOKDEF( via ),
    TOKDEF( via_array_template ),
    TOKDEF( via_at_smd ),
    TOKDEF( via_keepout ),
    TOKDEF( via_number ),
    TOKDEF( via_rotate_first ),
    TOKDEF( via_site ),
    TOKDEF( via_size ),
    TOKDEF( virtual_pin ),
    TOKDEF( volt ),
    TOKDEF( voltage_resolution ),
    TOKDEF( was_is ),
    TOKDEF( way ),
    TOKDEF( weight ),
    TOKDEF( width ),
    TOKDEF( window ),
    TOKDEF( wire ),
    TOKDEF( wire_keepout ),
    TOKDEF( wires ),
    TOKDEF( wires_include ),
    TOKDEF( wiring ),
    TOKDEF( write_resolution ),
    TOKDEF( x ),
    TOKDEF( xy ),
    TOKDEF( y )
};

const unsigned SPECCTRA_LEXER::keyword_count = unsigned( sizeof( SPECCTRA_LEXER::keywords )/sizeof( SPECCTRA_LEXER::keywords[0] ) );


const char* SPECCTRA_LEXER::TokenName( T aTok )
{
    const char* ret;

    if( (unsigned) aTok < keyword_count )
    {
        ret = keywords[aTok].name;
    }
    else if( aTok < 0 )
    {
        ret = DSNLEXER::Syntax( aTok );
    }
    else
        ret = "token too big";

    return ret;
}
