/*
- * Sone - Parser.java - Copyright © 2010–2015 David Roden
+ * Sone - Parser.java - Copyright © 2010–2016 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
package net.pterodactylus.sone.text;
-import java.io.IOException;
import java.io.Reader;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
/**
* Create one or more {@link Part}s from the given text source.
*
- * @param context
- * The parser context (may be {@code null})
* @param source
* The text source
+ * @param context
+ * The parser context (may be {@code null})
* @return The parsed parts
*/
@Nonnull
- Iterable<Part> parse(@Nullable C context, @Nonnull String source);
+ Iterable<Part> parse(@Nonnull String source, @Nullable C context);
}