Skip to content

schematics_parser.yy syntax error #7

@Uroc327

Description

@Uroc327

Hi, I was about to have a look into qtflow a bit. When trying to build it, I got the following error:

[ 29%] [FLEX][SchematicsScanner] Building scanner with flex 2.6.4
flex version 2.6.4 usage statistics:
  scanner options: -+dvB8 -Cem -o/home/constantin/projects/electronics/qtflow/build/schematics_reader/schematics_scanner.cpp -Pschematics
  290/2000 NFA states
  181/1000 DFA states (1174 words)
  35 rules
  Compressed tables always back-up
  3/40 start conditions
  140 epsilon states, 72 double epsilon states
  26/100 character classes needed 543/750 words of storage, 0 reused
  7114 state/nextstate pairs created
  569/6545 unique/duplicate transitions
  192/1000 base-def entries created
  2019/4000 (peak 2402) nxt-chk entries created
  33/2500 (peak 495) template nxt-chk entries created
  960 empty table entries
  16 protos created
  11 templates created, 99 uses
  45/256 equivalence classes created
  3/256 meta-equivalence classes created
  0 (171 saved) hash collisions, 395 DFAs equal
  2 sets of reallocations needed
  4723 total table entries needed
[ 29%] [BISON][SchematicsParser] Building parser with bison 3.3.2
schematics_parser.yy:1.1-14: warning: deprecated directive, use ‘%define parse.error verbose’ [-Wdeprecated]
 %error-verbose
 ^~~~~~~~~~~~~~
schematics_parser.yy:2.9-27: error: syntax error, unexpected string, expecting identifier
 %define "parser_class_name" {SchematicsParser}
         ^~~~~~~~~~~~~~~~~~~
schematics_parser.yy:74.1-18: error: syntax error, unexpected identifier:
 schematics_entries:
 ^~~~~~~~~~~~~~~~~~
schematics_parser.yy:79.1-16: error: syntax error, unexpected identifier:
 schematics_entry:
 ^~~~~~~~~~~~~~~~
schematics_parser.yy:89.1-7: error: syntax error, unexpected identifier:
 library: LIBS STRING;
 ^~~~~~~
schematics_parser.yy:90.1-7: error: syntax error, unexpected identifier:
 eelayer:
 ^~~~~~~
schematics_parser.yy:95.1-11: error: syntax error, unexpected identifier:
 description:
 ^~~~~~~~~~~
schematics_parser.yy:101.1-16: error: syntax error, unexpected identifier:
 description_list:
 ^~~~~~~~~~~~~~~~
schematics_parser.yy:106.1-19: error: syntax error, unexpected identifier:
 description_content:
 ^~~~~~~~~~~~~~~~~~~
schematics_parser.yy:116.1-9: error: syntax error, unexpected identifier:
 component: COMPONENT component_list END_COMPONENT;
 ^~~~~~~~~
schematics_parser.yy:118.1-14: error: syntax error, unexpected identifier:
 component_list:
 ^~~~~~~~~~~~~~
schematics_parser.yy:123.1-17: error: syntax error, unexpected identifier:
 component_content:
 ^~~~~~~~~~~~~~~~~
schematics_parser.yy:146.1-4: error: syntax error, unexpected identifier:
 text: TEXT STRING INTEGER INTEGER INTEGER INTEGER STRING STRING INTEGER STRING;
 ^~~~
schematics_parser.yy:148.1-4: error: syntax error, unexpected identifier:
 wire:
 ^~~~
schematics_parser.yy:154.1-10: error: syntax error, unexpected identifier:
 connection: CONNECTION STRING INTEGER INTEGER;
 ^~~~~~~~~~
schematics_parser.yy:156.3-161.0: error: syntax error, unexpected epilogue
 %%
   ^
schematics_parser.yy: warning: fix-its can be applied.  Rerun with option '--update'. [-Wother]
make[2]: *** [schematics_reader/CMakeFiles/SchematicsReader.dir/build.make:62: schematics_reader/schematics_parser.cpp] Error 1
make[1]: *** [CMakeFiles/Makefile2:1291: schematics_reader/CMakeFiles/SchematicsReader.dir/all] Error 2

Unfortunately I don't have any experience with flex/bison and also don't know, if those are actual problems for the project itself. Versions are 2.6.4 for flex and 3.3.2 for bison.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions