Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
ANTLR Tool Source Code
ANTLR is a powerful parser generator for multiple programming languages including Java.
ANTLR contains 2 major modules:
ANTLR Tool Source Code files are provided in the distribution packge (antlr4-4.10.1.zip). You can download them at ANTLR Website.
You can also browse the source code below:
✍: FYIcenter
⏎ org/antlr/v4/automata/RangeBorderCharactersData.java
package org.antlr.v4.automata; import org.antlr.runtime.tree.CommonTree; import org.antlr.v4.tool.ErrorType; import org.antlr.v4.tool.Grammar; public class RangeBorderCharactersData { public final int lowerFrom; public final int upperFrom; public final int lowerTo; public final int upperTo; public final boolean mixOfLowerAndUpperCharCase; public RangeBorderCharactersData(int lowerFrom, int upperFrom, int lowerTo, int upperTo, boolean mixOfLowerAndUpperCharCase) { this.lowerFrom = lowerFrom; this.upperFrom = upperFrom; this.lowerTo = lowerTo; this.upperTo = upperTo; this.mixOfLowerAndUpperCharCase = mixOfLowerAndUpperCharCase; } public static RangeBorderCharactersData getAndCheckCharactersData(int from, int to, Grammar grammar, CommonTree tree, boolean reportRangeContainsNotImpliedCharacters ) { int lowerFrom = Character.toLowerCase(from); int upperFrom = Character.toUpperCase(from); int lowerTo = Character.toLowerCase(to); int upperTo = Character.toUpperCase(to); boolean isLowerFrom = lowerFrom == from; boolean isLowerTo = lowerTo == to; boolean mixOfLowerAndUpperCharCase = isLowerFrom && !isLowerTo || !isLowerFrom && isLowerTo; if (reportRangeContainsNotImpliedCharacters && mixOfLowerAndUpperCharCase && from <= 0x7F && to <= 0x7F) { StringBuilder notImpliedCharacters = new StringBuilder(); for (int i = from; i < to; i++) { if (!Character.isAlphabetic(i)) { notImpliedCharacters.append((char)i); } } if (notImpliedCharacters.length() > 0) { grammar.tool.errMgr.grammarError(ErrorType.RANGE_PROBABLY_CONTAINS_NOT_IMPLIED_CHARACTERS, grammar.fileName, tree.getToken(), (char) from, (char) to, notImpliedCharacters.toString()); } } return new RangeBorderCharactersData(lowerFrom, upperFrom, lowerTo, upperTo, mixOfLowerAndUpperCharCase); } public boolean isSingleRange() { return lowerFrom == upperFrom && lowerTo == upperTo || mixOfLowerAndUpperCharCase || lowerTo - lowerFrom != upperTo - upperFrom; } }
⏎ org/antlr/v4/automata/RangeBorderCharactersData.java
Or download all of them as a single archive file:
File name: antlr-tool-4.10.1-sources.jar File size: 347718 bytes Release date: 2022-04-15 Download
2022-04-24, 27324👍, 0💬
Popular Posts:
How to download and install ojdbc11.jar for Oracle 21c? ojdbc11.jar for Oracle 21c is a Java JDBC Dr...
commons-io-2.6-sources.j aris the source JAR file for Apache Commons IO 2.6, which is a library of u...
Java Cryptography Extension 1.6 JAR File Size and Download Location: File name: jce.jar, jce-1.6.jar...
Apache Axis2 is the core engine for Web services. It is a complete re-design and re-write of the wid...
commons-collections4-4.4 -sources.jaris the source JAR file for Apache Commons Collections 4.2, whic...