Comments (11)
It takes longer time than I expected. Some major refactorings in timevar.c code.
Work in progress...
from winflexbison.
I managed to successfully build bison code version 3.3.1 (see bison3.3.1 branch)
Unfortunately it doesn't work on simple *.y files.
I'm going to debug it.
from winflexbison.
I have fixed problems with string concatenations in win_bison.
@donmac703 please check the package win_flex_bison-3.3.1.zip
In the bison3.3.1 branch I've updated CMake project and VS2017 project files.
@GitMensch Please update VS2015 and VS2013 if you have access to such versions of Visual Studio.
There are some compile errors in VS2013 (see https://ci.appveyor.com/project/lexxmark/winflexbison/builds/22161281). We should decide if we want to fix it or just drop VS2013 support.
from winflexbison.
Hi Alex, Apologies for the delay in responding.
The code package you provided appears to produce the expected results against my current source base. I have not tested any new Bison features yet (so cannot vouch for them), but have compiled against the features I was previously using. I think that most users would find that using some of the new features has ripple effects through the code that are sometimes non-trivial so we would need to trust the upstream source at this point-in-time.
Currently, I am using the Visual Studio 2019 Preview (with /std:c++latest) on this particular source base, so there are a number of moving parts from my perspective.
from winflexbison.
OK.
I hope next bison releases will have minor changes and thus easy to adopt.
I'll prepare a new winflexbison version and publish it soon.
from winflexbison.
Hi Alex,
Upon further review I have discovered that running win_bison against the example maintained by Akim (https://github.com/akimd/bison/blob/master/examples/c%2B%2B/variant.yy) that it emits lines such as:
#line 69 "test.y" // lalr1.cc:435
and
#line 115 "test.tab.cpp" // lalr1.cc:435
Actual command line used is:
start /B /WAIT /D "E:\myfolder" win_bison.exe --output="test.tab.cpp" --defines="test.tab.h" "test.y"
exit /b %errorlevel%
Not sure why the second one does not have the source file name (test.y). Not sure if it is an upstream problem...
from winflexbison.
Hi DonMac,
I think it's expected behavior.
In the code like:
case 7: // list
#line 73 "variant.yy" // lalr1.cc:676
{ yyo << '(' << &yysym.value.template as < ::std::vector<std::string> > () << ") " << yysym.value.template as < ::std::vector<std::string> > (); }
#line 364 "test.tab.cpp" // lalr1.cc:676
break;
case 8: // item
#line 73 "variant.yy" // lalr1.cc:676
{ yyo << '(' << &yysym.value.template as < ::std::string > () << ") " << yysym.value.template as < ::std::string > (); }
#line 370 "test.tab.cpp" // lalr1.cc:676
break;
The line
#line 73 "variant.yy" // lalr1.cc:676
refers to the code from variant.yy and
#line 370 "test.tab.cpp" // lalr1.cc:676
returns to the generated code in test.tab.cpp because there is no such code in variant.yy
What do you think?
from winflexbison.
from winflexbison.
OK, if there is no more complains I'm going to release it in a couple of days.
from winflexbison.
@donmac703 please check released package and close issue if it's OK.
from winflexbison.
Hi Alex,
I have downloaded and installed the package.
My query about behavior was to determine expectations.
The consensus is that we are getting the correct behavior, and I am getting the expected IDE behavior when the error occurs in the code fragment in the bison source file. (Have not tested step-by-step debugging yet)
Thanks for working on this and making the new features available for use. I am closing this issue.
from winflexbison.
Related Issues (20)
- v2.5.23 not working on Windows XP HOT 25
- Can not fix file via --update HOT 16
- Crash on invalid input HOT 6
- Visual Studio - win_bison creates tab.h file exceeding compiler limits HOT 8
- Update to bison 3.7.4 HOT 10
- Trouble compiling a *.l file using CMake HOT 7
- %option c++ is not compatible with %option noyywrap - linker error: multiple definition HOT 5
- Install guide lines? HOT 3
- Loss of data conversion in Flex scanner. HOT 5
- Update to Bison 3.8.1 HOT 11
- Missing LICENSE/COPYING file in repository toplevel HOT 6
- Cannot compile Bison input in C++ mode HOT 2
- Visual Studio dependencies and the provided CustomBuildRules HOT 3
- Could this project build with gcc HOT 2
- Runtime error when running multiple flex processes HOT 19
- D language support fixes reported upstream
- Using api.prefix{ ... } breaks yyerror()
- Chocolatey for 2.5.25 (Bison 3.8) HOT 1
- BSD license and GPL license missing from the binary package
- YYPTRDIFF_T not 64bit compatible?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from winflexbison.