Skip to content

Commit

Permalink
GH-392 Add missing docs in parser design classes
Browse files Browse the repository at this point in the history
  • Loading branch information
dzikoysk committed Nov 1, 2019
1 parent 51d17ea commit d47ffe0
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
import java.util.HashMap;
import java.util.Map;

/**
* Represents components used in the {@link org.panda_lang.framework.design.interpreter.parser.Context}
*
* @param <T> type of stored value
*/
public class ContextComponent<T> extends Component<T> {

private static final Map<String, ContextComponent<?>> COMPONENTS = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@

package org.panda_lang.framework.design.interpreter.parser;

/**
* Represents parsers supported by pipelines
*
* @param <T> type of result
*/
public interface ContextParser<T> extends Parser {

/**
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,16 @@

import org.panda_lang.framework.design.Failure;

/**
* Represents errors associated with parsers
*/
public interface ParserFailure extends Failure {

/**
* Get associated context
*
* @return the context
*/
Context getContext();

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@

import org.panda_lang.framework.design.interpreter.parser.pipeline.Handler;

/**
* Parser container
*
* @param <P> type of stored parser
*/
public interface ParserRepresentation<P> {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@

import org.panda_lang.framework.design.interpreter.token.Snippet;

/**
* Similar to {@link org.panda_lang.framework.design.interpreter.parser.ContextParser}, but with custom source
*
* @param <T> type of result
*/
public interface SourceParser<T> extends Parser {

/**
Expand Down

0 comments on commit d47ffe0

Please sign in to comment.