Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schematics_parser.yy syntax error #7

Open
Uroc327 opened this issue Mar 18, 2019 · 2 comments
Open

schematics_parser.yy syntax error #7

Uroc327 opened this issue Mar 18, 2019 · 2 comments

Comments

@Uroc327
Copy link

Uroc327 commented Mar 18, 2019

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.

e29qwg added a commit to e29qwg/qtflow that referenced this issue Aug 28, 2019
@thesourcerer8
Copy link

Yes, this solves the issue.

@e29qwg
Copy link

e29qwg commented Oct 1, 2019

Good to hear the issue is solved. I've made a pull request #8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants