diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000000000000000000000000000000000000..f8e1a304f02217429bc099f8761a639e7dc3a25a --- /dev/null +++ b/settings.gradle @@ -0,0 +1 @@ +rootProject.name = "sablecc" diff --git a/src/main/resources/patchfiles/IParser.txt b/src/main/resources/patchfiles/IParser.txt index a5d25de7a3f481a10bbef531c74fa12d993675ac..98d239ede5e46101d8dba291da5637716943996c 100644 --- a/src/main/resources/patchfiles/IParser.txt +++ b/src/main/resources/patchfiles/IParser.txt @@ -1,4 +1,4 @@ -/** +/* * (c) 2009 Lehrstuhl fuer Softwaretechnik und Programmiersprachen, * Heinrich Heine Universitaet Duesseldorf * This software is licenced under EPL 1.0 (http://www.eclipse.org/org/documents/epl-v10.html) diff --git a/src/main/resources/patchfiles/IToken.txt b/src/main/resources/patchfiles/IToken.txt index 65c0aff6cd3af835e2588ca9e6411f3f4ccbaae6..b8ae5da99d66db0636daa871541e0a558e245a06 100644 --- a/src/main/resources/patchfiles/IToken.txt +++ b/src/main/resources/patchfiles/IToken.txt @@ -1,4 +1,4 @@ -/** +/* * (c) 2009 Lehrstuhl fuer Softwaretechnik und Programmiersprachen, * Heinrich Heine Universitaet Duesseldorf * This software is licenced under EPL 1.0 (http://www.eclipse.org/org/documents/epl-v10.html) diff --git a/src/main/resources/patchfiles/ITokenListContainer.txt b/src/main/resources/patchfiles/ITokenListContainer.txt index 8d72be46b33a9e1de102373e89ed8de6329a7f9a..8280e1e0f0eb1727adc5e0011eb4a633d9655e96 100644 --- a/src/main/resources/patchfiles/ITokenListContainer.txt +++ b/src/main/resources/patchfiles/ITokenListContainer.txt @@ -1,4 +1,4 @@ -/** +/* * (c) 2009 Lehrstuhl fuer Softwaretechnik und Programmiersprachen, * Heinrich Heine Universitaet Duesseldorf * This software is licenced under EPL 1.0 (http://www.eclipse.org/org/documents/epl-v10.html) @@ -10,4 +10,4 @@ import java.util.List; public interface ITokenListContainer { public List<IToken> getTokenList(); -} \ No newline at end of file +} diff --git a/src/main/resources/patchfiles/PositionedNode.txt b/src/main/resources/patchfiles/PositionedNode.txt index 7072ca65eacb74e94f15367e3c0874be70d7f8ba..0af0ce91b157cf7ed18aa3d8d1a7c8d26221e773 100644 --- a/src/main/resources/patchfiles/PositionedNode.txt +++ b/src/main/resources/patchfiles/PositionedNode.txt @@ -1,4 +1,4 @@ -/** +/* * (c) 2009 Lehrstuhl fuer Softwaretechnik und Programmiersprachen, * Heinrich Heine Universitaet Duesseldorf * This software is licenced under EPL 1.0 (http://www.eclipse.org/org/documents/epl-v10.html) diff --git a/src/main/resources/patchfiles/SourcePosition.txt b/src/main/resources/patchfiles/SourcePosition.txt index 6521067286a3d32c1bcdddae287664fd7e81ea4e..106966f010635c84e4a32c81354579359662a43f 100644 --- a/src/main/resources/patchfiles/SourcePosition.txt +++ b/src/main/resources/patchfiles/SourcePosition.txt @@ -1,4 +1,4 @@ -/** +/* * (c) 2009 Lehrstuhl fuer Softwaretechnik und Programmiersprachen, * Heinrich Heine Universitaet Duesseldorf * This software is licenced under EPL 1.0 (http://www.eclipse.org/org/documents/epl-v10.html) diff --git a/src/main/resources/patchfiles/SourcePositions.txt b/src/main/resources/patchfiles/SourcePositions.txt index eefe61eca54b46f0606e696a1347945e274d67d9..a13acd004bf59fe8ccb7bf884e6dc5f4d2585859 100644 --- a/src/main/resources/patchfiles/SourcePositions.txt +++ b/src/main/resources/patchfiles/SourcePositions.txt @@ -1,4 +1,4 @@ -/** +/* * (c) 2009 Lehrstuhl fuer Softwaretechnik und Programmiersprachen, * Heinrich Heine Universitaet Duesseldorf * This software is licenced under EPL 1.0 (http://www.eclipse.org/org/documents/epl-v10.html) @@ -22,10 +22,10 @@ public class SourcePositions { /** * Returns the {@link SourcecodeRange} of this {@link PositionedNode} or - * <code>null</code> if no {@link SourcecodeRange} is available. + * {@code null} if no {@link SourcecodeRange} is available. * * @param node the node with source code information - * @return the source code range of <code>node</code> + * @return the source code range of {@code node} */ public SourcecodeRange getSourcecodeRange(final PositionedNode node) { return positions.get(node); @@ -33,11 +33,11 @@ public class SourcePositions { /** * Returns the line in which this {@link PositionedNode} begins. The value - * <code>0</code> is returned if no sourcecode range is available for this + * {@code 0} is returned if no sourcecode range is available for this * {@link PositionedNode}. * * @param node the node with source code information - * @return the line where the <code>node</code> starts + * @return the line where the {@code node} starts */ public int getBeginLine(final PositionedNode node) { if (node instanceof IToken) { @@ -57,11 +57,11 @@ public class SourcePositions { /** * Returns the column of the first character of this {@link PositionedNode}, - * i.e. the begin column. The value <code>0</code> is returned if no + * i.e. the begin column. The value {@code 0} is returned if no * sourcecode range is available for this {@link PositionedNode}. * * @param node the node with source code information - * @return the begin column of <code>node</code> + * @return the begin column of {@code node} */ public int getBeginColumn(final PositionedNode node) { if (node instanceof IToken) { @@ -81,7 +81,7 @@ public class SourcePositions { /** * Returns the line in which the {@link PositionedNode} ends. The value - * <code>0</code> is returned if no sourcecode range is available for this + * {@code 0} is returned if no sourcecode range is available for this * {@link PositionedNode}. * * @param node the node with source code information @@ -125,7 +125,7 @@ public class SourcePositions { /** * Returns the last column of this {@link PositionedNode}, i.e. the column * of the last character of the {@link PositionedNode}. The value - * <code>0</code> is returned if no sourcecode range is available for this + * {@code 0} is returned if no sourcecode range is available for this * {@link PositionedNode}. * * @param node the node with source code information @@ -175,7 +175,7 @@ public class SourcePositions { * can be determined for this {@link PositionedNode}. * * @param node the node with source code information - * @return all tokens of <code>node</code> + * @return all tokens of {@code node} */ public IToken[] getTokens(final PositionedNode node) { if (node instanceof IToken) { @@ -299,9 +299,9 @@ public class SourcePositions { * Finds the index of the token that belongs to the position. * </p> * <p> - * If no token list is available <code>-1</code> is returned. For - * <code>line < 0</code> the index <code>0</code> is returned. If - * <code>line >= 1 && column < 0</code> the line number is returned. + * If no token list is available {@code -1} is returned. For + * {@code line < 0} the index {@code 0} is returned. If + * {@code line >= 1 && column < 0} the line number is returned. * </p> * <p> * If the line matches but the requested column is beyond the max. length of @@ -413,11 +413,9 @@ public class SourcePositions { /** * Compares the token position (within line only) with the column. * - * @param token - * @param column - * @return <code>-1</code> if <code>column < beginColumn</code>, - * <code>1</code> if <code>endColumn < column</code> or - * <code>0</code> if the column is within the range of the token. + * @return {@code -1} if {@code column < beginColumn}, + * {@code 1} if {@code endColumn < column} or + * {@code 0} if the column is within the range of the token. */ private int compareTokenColumn(final IToken token, final int column) { final int beginColumn = token.getPos(); diff --git a/src/main/resources/patchfiles/SourcecodeRange.txt b/src/main/resources/patchfiles/SourcecodeRange.txt index 629befb1801b2916aaaa90586cc4323909c8c709..e064a453a08f4bdbefe9fe4f79e199b1e5be1858 100644 --- a/src/main/resources/patchfiles/SourcecodeRange.txt +++ b/src/main/resources/patchfiles/SourcecodeRange.txt @@ -1,4 +1,4 @@ -/** +/* * (c) 2009 Lehrstuhl fuer Softwaretechnik und Programmiersprachen, * Heinrich Heine Universitaet Duesseldorf * This software is licenced under EPL 1.0 (http://www.eclipse.org/org/documents/epl-v10.html)