Skip to content

Commit

Permalink
Merge pull request #59 from alcides/no_arg_decorator
Browse files Browse the repository at this point in the history
() removed from decorators with no-args
  • Loading branch information
alcides authored Apr 3, 2024
2 parents c8ce720 + af692b8 commit af59354
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions aeon/sugar/aeon_sugar.lark
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ def : soft_constraint "def" ID ":" type "=" expression ";" -> d
soft_constraint : -> empty_list
| macro (macro)* -> macros

macro : "@" ID "(" macro_args ")" -> macro
macro : "@" ID macro_args -> macro

macro_args : -> empty_list
| expression ("," expression)* -> macro_args
| "(" expression ("," expression)* ")" -> macro_args


args : -> empty_list
Expand Down
2 changes: 1 addition & 1 deletion examples/PSB2/annotations/multi_objective/gcd.ae
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def calculate_fuel_cost_errors : (train : TrainData) -> (f:(a: Int) -> (b: Int)
load_dataset,
train,
calculate_fuel_cost_errors)
@allow_recursion()
@allow_recursion
@multi_minimize_float(calculate_fuel_cost_errors train synth)
def synth (n:Int) (z:Int) : Int {
(?hole: Int)
Expand Down

0 comments on commit af59354

Please sign in to comment.