Skip to content

Commit

Permalink
Add time-based steps
Browse files Browse the repository at this point in the history
  • Loading branch information
jpickup committed Jan 15, 2017
1 parent 4403def commit 37fe7e4
Show file tree
Hide file tree
Showing 22 changed files with 646 additions and 189 deletions.
Binary file modified ExampleWorkoutSchedule.xls
Binary file not shown.
28 changes: 26 additions & 2 deletions gen/com/johnpickup/parser/WorkoutBaseListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,37 @@ public class WorkoutBaseListener implements WorkoutListener {
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterPace_step(WorkoutParser.Pace_stepContext ctx) { }
@Override public void enterDistance_pace_step(WorkoutParser.Distance_pace_stepContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitPace_step(WorkoutParser.Pace_stepContext ctx) { }
@Override public void exitDistance_pace_step(WorkoutParser.Distance_pace_stepContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterTime_step(WorkoutParser.Time_stepContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitTime_step(WorkoutParser.Time_stepContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void enterTime_pace_step(WorkoutParser.Time_pace_stepContext ctx) { }
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override public void exitTime_pace_step(WorkoutParser.Time_pace_stepContext ctx) { }
/**
* {@inheritDoc}
*
Expand Down
16 changes: 15 additions & 1 deletion gen/com/johnpickup/parser/WorkoutBaseVisitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,21 @@ public class WorkoutBaseVisitor<T> extends AbstractParseTreeVisitor<T> implement
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitPace_step(WorkoutParser.Pace_stepContext ctx) { return visitChildren(ctx); }
@Override public T visitDistance_pace_step(WorkoutParser.Distance_pace_stepContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitTime_step(WorkoutParser.Time_stepContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitTime_pace_step(WorkoutParser.Time_pace_stepContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
Expand Down
28 changes: 24 additions & 4 deletions gen/com/johnpickup/parser/WorkoutListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,35 @@ public interface WorkoutListener extends ParseTreeListener {
*/
void exitDistance_step(WorkoutParser.Distance_stepContext ctx);
/**
* Enter a parse tree produced by {@link WorkoutParser#pace_step}.
* Enter a parse tree produced by {@link WorkoutParser#distance_pace_step}.
* @param ctx the parse tree
*/
void enterPace_step(WorkoutParser.Pace_stepContext ctx);
void enterDistance_pace_step(WorkoutParser.Distance_pace_stepContext ctx);
/**
* Exit a parse tree produced by {@link WorkoutParser#pace_step}.
* Exit a parse tree produced by {@link WorkoutParser#distance_pace_step}.
* @param ctx the parse tree
*/
void exitPace_step(WorkoutParser.Pace_stepContext ctx);
void exitDistance_pace_step(WorkoutParser.Distance_pace_stepContext ctx);
/**
* Enter a parse tree produced by {@link WorkoutParser#time_step}.
* @param ctx the parse tree
*/
void enterTime_step(WorkoutParser.Time_stepContext ctx);
/**
* Exit a parse tree produced by {@link WorkoutParser#time_step}.
* @param ctx the parse tree
*/
void exitTime_step(WorkoutParser.Time_stepContext ctx);
/**
* Enter a parse tree produced by {@link WorkoutParser#time_pace_step}.
* @param ctx the parse tree
*/
void enterTime_pace_step(WorkoutParser.Time_pace_stepContext ctx);
/**
* Exit a parse tree produced by {@link WorkoutParser#time_pace_step}.
* @param ctx the parse tree
*/
void exitTime_pace_step(WorkoutParser.Time_pace_stepContext ctx);
/**
* Enter a parse tree produced by {@link WorkoutParser#repeating_steps}.
* @param ctx the parse tree
Expand Down
Loading

0 comments on commit 37fe7e4

Please sign in to comment.