Questions tagged [xpressive]
10 questions
2
votes
1 answer
How to reference an optional submatch inside a semantic action with boost::xpressive static?
I have a boost xpressive sregex and semantic action that is equivalent to the following:
Rule = ('[' >> (s1=!(set=')',']','>')))[some_op(as(s1))];
Previously I was using this on boost 1.43 without any problems. I have had to upgrade to…

Malcolm MacLeod
- 624
- 7
- 15
2
votes
1 answer
Pre-compile .h files
I have a really short program written in boost::xpressive
#include
#include
using namespace boost::xpressive;
int main()
{
std::string hello( "hello world!" );
sregex rex = sregex::compile(…

User1
- 39,458
- 69
- 187
- 265
1
vote
1 answer
Is Syntax Error reporting possible with boost::xpressive grammars?
I'm trying to parse a custom language (not too dissimilar to JSON), and I decided to try using boost expressive, as it looked fun.
However, when an xpressive match fails, it simply fails. Is there any way I can implement some kind of error…

DaedalusFall
- 8,335
- 6
- 30
- 43
1
vote
0 answers
Initializing excel files in xpress
I am trying to import an excel file into the initialization section of an xpress script, rather than hard coding the data. Could anyone provide an example script where they import multiples columns and rows concurrently? Let me know if I should…

A. Mac
- 21
- 2
1
vote
0 answers
Boost xpressive error
This simple example using Boost xpressive (latest version) throws the error: Access violation reading location 0x000000. The error occurs on regex_match. This has to be something simple but I've looked at it until I am crazy.
Why does this not…

jedi22
- 11
- 2
1
vote
0 answers
boost 1.58 xpressive::sregex outputs errors in debug mode
I encountered some problems when using boost::xpressive of boost1.58 on Visual C++ 2013.
My test program that using below code spills errors like below.
This error does not occur on Release mode.
Is this a boost's bug?
sregex reg =…

tensor5375
- 126
- 1
- 9
0
votes
0 answers
Boost::xpressive regex_search concatenate matches in a single string
I want to concatenate all matches found by regex_search into a single string, and then return it. I tried doing it with std::accumulate, but failed.
Is there a way to return something like std::accumulate(what.begin()+1, what.end(), someFunc)?…

Eugene Mart
- 185
- 1
- 10
0
votes
1 answer
Who to create a dynamic array and resize it in Mosel Xpress IVE?
I'm trying to create a dynamic array with size 5 ( x : dynamic array(5) of integer), i initialize array with x(1)=1,x(2)=4,x(3)=1,x(4)=2,x(5)=3.
Thanks to that I want to solve a problem. Then, in the same programme, I want to increase the die size…

Ayoub-Tigh
- 9
- 3
0
votes
1 answer
Boost::Xpressive::sregex uri pattern match
I've been searching and testing regex's to match all uris but I can't seem to find one that matches all or most of them. Lots of the ones I've tried throw a compile error. Does anyone have an Xpressive::sRegex compatible regex?

drwbns
- 89
- 10
0
votes
1 answer
"Xpressive leak" fixed, but not understood
I know. Xpressive is (probably) not at fault here, but I've put a lot of effort into finding the memory leaks and I had to adapt the code layout to fix the haemorrhage.
Can someone explain to me why the change in layout fixed it? I don't see why…

GreyMattR
- 333
- 2
- 6