Skip to content
Snippets Groups Projects
Commit 2de7c196 authored by Paweł Kędzia's avatar Paweł Kędzia
Browse files

Fix position rule

parent fa0d5168
No related merge requests found
......@@ -272,8 +272,11 @@ boolean_value
// returns boost::shared_ptr<Wccl::Position>
position_literal
returns [boost::shared_ptr<Wccl::Position> val]
: i: UNSIGNED_INT {
val.reset(new Wccl::Position(Wccl::Position(token_ref_to_int(i))));
{
int i = 0;
}
: i = number {
val.reset(new Wccl::Position(Wccl::Position(i)));
}
| "begin" {
val.reset(new Wccl::Position(Wccl::Position(Wccl::Position::Begin)));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment