Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
drexlerd committed Jan 4, 2024
1 parent 4b3b218 commit fa2be87
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ set(CMAKE_CXX_EXTENSIONS OFF)
# Establish project
##############################################################

project(Loki VERSION 0.1 LANGUAGES CXX)
project(Loki VERSION 0.1 LANGUAGES C CXX)

# Compilation flags, some configuration-specific
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -Wextra -pedantic")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -Wextra -pedantic -fPIC")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG -fomit-frame-pointer")
set(CMAKE_CXX_FLAGS_DEBUG "-O3 -DDEBUG")

Expand Down Expand Up @@ -106,7 +106,6 @@ install(
)



###########
# Exports #
###########
Expand Down
2 changes: 1 addition & 1 deletion include/loki/common/ast/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace loki
{
namespace x3 = boost::spirit::x3;

using Position = boost::spirit::x3::position_tagged;
using Position = x3::position_tagged;
using PositionList = std::vector<Position>;

// Our iterator type
Expand Down
8 changes: 4 additions & 4 deletions src/domain/ast/parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ namespace loki::domain {
struct StructureClass;

typedef x3::rule<DefineKeywordClass, x3::unused_type> define_keyword_type;
typedef x3::rule<DomainKeywordClass, x3::unused_type> domain_keyword_type;
typedef x3::rule<DomainKeywordClass, x3::unused_type> domain_keyword_type;

typedef x3::rule<NameClass, ast::Name> name_type;
typedef x3::rule<VariableClass, ast::Variable> variable_type;
Expand Down Expand Up @@ -335,13 +335,13 @@ namespace loki::domain {
requirement_constraints_type, requirement_action_costs_type, requirement_type)

BOOST_SPIRIT_DECLARE(
type_type, type_object_type, type_number_type, type_either_type,
type_type, type_object_type, type_number_type, type_either_type,
typed_list_of_names_recursively_type, typed_list_of_names_type,
typed_list_of_variables_recursively_type, typed_list_of_variables_type)

BOOST_SPIRIT_DECLARE(atomic_formula_skeleton_type)

BOOST_SPIRIT_DECLARE(atomic_function_skeleton_total_cost_type, atomic_function_skeleton_general_type, atomic_function_skeleton_type,
BOOST_SPIRIT_DECLARE(atomic_function_skeleton_total_cost_type, atomic_function_skeleton_general_type, atomic_function_skeleton_type,
function_typed_list_of_atomic_function_skeletons_recursively_type, function_typed_list_of_atomic_function_skeletons_type)

BOOST_SPIRIT_DECLARE(atomic_formula_of_terms_type, atom_type, negated_atom_type, literal_type)
Expand Down Expand Up @@ -379,7 +379,7 @@ namespace loki::domain {

BOOST_SPIRIT_DECLARE(numeric_term_type)

BOOST_SPIRIT_DECLARE(effect_type, effect_production_literal_type,
BOOST_SPIRIT_DECLARE(effect_type, effect_production_literal_type,
effect_production_numeric_fluent_total_cost_type, effect_production_numeric_fluent_general_type,
effect_production_type, effect_conditional_forall_type,
effect_conditional_when_type, effect_conditional_type, action_symbol_type, action_body_type, action_type,
Expand Down

0 comments on commit fa2be87

Please sign in to comment.