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
Branches
No related tags found
No related merge requests found
...@@ -272,8 +272,11 @@ boolean_value ...@@ -272,8 +272,11 @@ boolean_value
// returns boost::shared_ptr<Wccl::Position> // returns boost::shared_ptr<Wccl::Position>
position_literal position_literal
returns [boost::shared_ptr<Wccl::Position> val] 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" { | "begin" {
val.reset(new Wccl::Position(Wccl::Position(Wccl::Position::Begin))); val.reset(new Wccl::Position(Wccl::Position(Wccl::Position::Begin)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment