()
| 1748 | } |
| 1749 | |
| 1750 | function parse_Quantifier() { |
| 1751 | var result0, result1; |
| 1752 | var pos0; |
| 1753 | |
| 1754 | reportFailures++; |
| 1755 | pos0 = pos; |
| 1756 | if (input.charCodeAt(pos) === 32) { |
| 1757 | result0 = " "; |
| 1758 | pos++; |
| 1759 | } else { |
| 1760 | result0 = null; |
| 1761 | if (reportFailures === 0) { |
| 1762 | matchFailed("\" \""); |
| 1763 | } |
| 1764 | } |
| 1765 | if (result0 !== null) { |
| 1766 | if (input.substr(pos, 2).toLowerCase() === "an") { |
| 1767 | result1 = input.substr(pos, 2); |
| 1768 | pos += 2; |
| 1769 | } else { |
| 1770 | result1 = null; |
| 1771 | if (reportFailures === 0) { |
| 1772 | matchFailed("\"an\""); |
| 1773 | } |
| 1774 | } |
| 1775 | if (result1 === null) { |
| 1776 | if (input.substr(pos, 1).toLowerCase() === "a") { |
| 1777 | result1 = input.substr(pos, 1); |
| 1778 | pos++; |
| 1779 | } else { |
| 1780 | result1 = null; |
| 1781 | if (reportFailures === 0) { |
| 1782 | matchFailed("\"a\""); |
| 1783 | } |
| 1784 | } |
| 1785 | if (result1 === null) { |
| 1786 | if (input.substr(pos, 3).toLowerCase() === "the") { |
| 1787 | result1 = input.substr(pos, 3); |
| 1788 | pos += 3; |
| 1789 | } else { |
| 1790 | result1 = null; |
| 1791 | if (reportFailures === 0) { |
| 1792 | matchFailed("\"the\""); |
| 1793 | } |
| 1794 | } |
| 1795 | } |
| 1796 | } |
| 1797 | if (result1 !== null) { |
| 1798 | result0 = [result0, result1]; |
| 1799 | } else { |
| 1800 | result0 = null; |
| 1801 | pos = pos0; |
| 1802 | } |
| 1803 | } else { |
| 1804 | result0 = null; |
| 1805 | pos = pos0; |
| 1806 | } |
| 1807 | reportFailures--; |
no test coverage detected