Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.daisy.pipeline.css.sass.impl.SassPostProcessLexer Maven / Gradle / Ivy
// $ANTLR 3.5.2 org/daisy/pipeline/css/sass/impl/SassPostProcess.g 2024-10-11 18:54:39
package org.daisy.pipeline.css.sass.impl;
import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
@SuppressWarnings("all")
public class SassPostProcessLexer extends Lexer {
public static final int EOF=-1;
public static final int ANY=4;
public static final int APOS=5;
public static final int ASTERISK=6;
public static final int AT=7;
public static final int BAR=8;
public static final int COLON=9;
public static final int COMMA=10;
public static final int COMMENT=11;
public static final int COMMENT_MACR=12;
public static final int ESCAPE_CHAR=13;
public static final int GREATER=14;
public static final int HAS=15;
public static final int HASH=16;
public static final int IDENT=17;
public static final int IDENT_START=18;
public static final int LBRACE=19;
public static final int LCURLY=20;
public static final int LPAREN=21;
public static final int MEDIA=22;
public static final int NAME=23;
public static final int NAME_CHAR=24;
public static final int NEWLINE_CHAR=25;
public static final int NON_ASCII=26;
public static final int NOT=27;
public static final int PERIOD=28;
public static final int PLUS=29;
public static final int QUOT=30;
public static final int RBRACE=31;
public static final int RCURLY=32;
public static final int RPAREN=33;
public static final int SEMICOLON=34;
public static final int SPACE=35;
public static final int SPACE_CHAR=36;
public static final int STRING=37;
public static final int STRING_CHAR=38;
public static final int STRING_MACR=39;
public static final int TILDE=40;
public static final int XML_COMMENT_CLOSE=41;
public static final int XML_COMMENT_OPEN=42;
// delegates
// delegators
public Lexer[] getDelegates() {
return new Lexer[] {};
}
public SassPostProcessLexer() {}
public SassPostProcessLexer(CharStream input) {
this(input, new RecognizerSharedState());
}
public SassPostProcessLexer(CharStream input, RecognizerSharedState state) {
super(input,state);
}
@Override public String getGrammarFileName() { return "org/daisy/pipeline/css/sass/impl/SassPostProcess.g"; }
// $ANTLR start "XML_COMMENT_OPEN"
public final void mXML_COMMENT_OPEN() throws RecognitionException {
try {
int _type = XML_COMMENT_OPEN;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:479:18: ( '' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:481:21: '-->'
{
match("-->"); if (state.failed) return;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "XML_COMMENT_CLOSE"
// $ANTLR start "COMMENT"
public final void mCOMMENT() throws RecognitionException {
try {
int _type = COMMENT;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:484:5: ( COMMENT_MACR )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:484:7: COMMENT_MACR
{
mCOMMENT_MACR(); if (state.failed) return;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "COMMENT"
// $ANTLR start "SPACE"
public final void mSPACE() throws RecognitionException {
try {
int _type = SPACE;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:488:5: ( ( SPACE_CHAR )+ )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:488:7: ( SPACE_CHAR )+
{
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:488:7: ( SPACE_CHAR )+
int cnt1=0;
loop1:
while (true) {
int alt1=2;
int LA1_0 = input.LA(1);
if ( ((LA1_0 >= '\t' && LA1_0 <= '\r')||LA1_0==' ') ) {
alt1=1;
}
switch (alt1) {
case 1 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:
{
if ( (input.LA(1) >= '\t' && input.LA(1) <= '\r')||input.LA(1)==' ' ) {
input.consume();
state.failed=false;
}
else {
if (state.backtracking>0) {state.failed=true; return;}
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
default :
if ( cnt1 >= 1 ) break loop1;
if (state.backtracking>0) {state.failed=true; return;}
EarlyExitException eee = new EarlyExitException(1, input);
throw eee;
}
cnt1++;
}
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "SPACE"
// $ANTLR start "STRING"
public final void mSTRING() throws RecognitionException {
try {
int _type = STRING;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:492:5: ( STRING_MACR )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:492:7: STRING_MACR
{
mSTRING_MACR(); if (state.failed) return;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "STRING"
// $ANTLR start "IDENT"
public final void mIDENT() throws RecognitionException {
try {
int _type = IDENT;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:496:5: ( IDENT_START ( NAME_CHAR )* )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:496:7: IDENT_START ( NAME_CHAR )*
{
mIDENT_START(); if (state.failed) return;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:496:19: ( NAME_CHAR )*
loop2:
while (true) {
int alt2=2;
int LA2_0 = input.LA(1);
if ( (LA2_0=='-'||(LA2_0 >= '0' && LA2_0 <= '9')||(LA2_0 >= 'A' && LA2_0 <= 'Z')||LA2_0=='\\'||LA2_0=='_'||(LA2_0 >= 'a' && LA2_0 <= 'z')||(LA2_0 >= '\u0080' && LA2_0 <= '\uD7FF')||(LA2_0 >= '\uE000' && LA2_0 <= '\uFFFD')) ) {
alt2=1;
}
switch (alt2) {
case 1 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:496:19: NAME_CHAR
{
mNAME_CHAR(); if (state.failed) return;
}
break;
default :
break loop2;
}
}
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "IDENT"
// $ANTLR start "NAME"
public final void mNAME() throws RecognitionException {
try {
int _type = NAME;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:500:5: ( ( NAME_CHAR )+ )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:500:7: ( NAME_CHAR )+
{
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:500:7: ( NAME_CHAR )+
int cnt3=0;
loop3:
while (true) {
int alt3=2;
int LA3_0 = input.LA(1);
if ( (LA3_0=='-'||(LA3_0 >= '0' && LA3_0 <= '9')||(LA3_0 >= 'A' && LA3_0 <= 'Z')||LA3_0=='\\'||LA3_0=='_'||(LA3_0 >= 'a' && LA3_0 <= 'z')||(LA3_0 >= '\u0080' && LA3_0 <= '\uD7FF')||(LA3_0 >= '\uE000' && LA3_0 <= '\uFFFD')) ) {
alt3=1;
}
switch (alt3) {
case 1 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:500:7: NAME_CHAR
{
mNAME_CHAR(); if (state.failed) return;
}
break;
default :
if ( cnt3 >= 1 ) break loop3;
if (state.backtracking>0) {state.failed=true; return;}
EarlyExitException eee = new EarlyExitException(3, input);
throw eee;
}
cnt3++;
}
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "NAME"
// $ANTLR start "APOS"
public final void mAPOS() throws RecognitionException {
try {
int _type = APOS;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:503:6: ( '\\'' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:503:8: '\\''
{
match('\''); if (state.failed) return;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "APOS"
// $ANTLR start "QUOT"
public final void mQUOT() throws RecognitionException {
try {
int _type = QUOT;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:505:6: ( '\"' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:505:8: '\"'
{
match('\"'); if (state.failed) return;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "QUOT"
// $ANTLR start "LCURLY"
public final void mLCURLY() throws RecognitionException {
try {
int _type = LCURLY;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:507:8: ( '{' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:507:10: '{'
{
match('{'); if (state.failed) return;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "LCURLY"
// $ANTLR start "RCURLY"
public final void mRCURLY() throws RecognitionException {
try {
int _type = RCURLY;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:509:8: ( '}' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:509:10: '}'
{
match('}'); if (state.failed) return;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "RCURLY"
// $ANTLR start "LBRACE"
public final void mLBRACE() throws RecognitionException {
try {
int _type = LBRACE;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:511:8: ( '[' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:511:10: '['
{
match('['); if (state.failed) return;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "LBRACE"
// $ANTLR start "RBRACE"
public final void mRBRACE() throws RecognitionException {
try {
int _type = RBRACE;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:513:8: ( ']' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:513:10: ']'
{
match(']'); if (state.failed) return;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "RBRACE"
// $ANTLR start "LPAREN"
public final void mLPAREN() throws RecognitionException {
try {
int _type = LPAREN;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:515:8: ( '(' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:515:10: '('
{
match('('); if (state.failed) return;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "LPAREN"
// $ANTLR start "RPAREN"
public final void mRPAREN() throws RecognitionException {
try {
int _type = RPAREN;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:517:8: ( ')' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:517:10: ')'
{
match(')'); if (state.failed) return;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "RPAREN"
// $ANTLR start "MEDIA"
public final void mMEDIA() throws RecognitionException {
try {
int _type = MEDIA;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:519:7: ( '@media' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:519:9: '@media'
{
match("@media"); if (state.failed) return;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "MEDIA"
// $ANTLR start "AT"
public final void mAT() throws RecognitionException {
try {
int _type = AT;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:521:4: ( '@' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:521:6: '@'
{
match('@'); if (state.failed) return;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "AT"
// $ANTLR start "PERIOD"
public final void mPERIOD() throws RecognitionException {
try {
int _type = PERIOD;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:523:8: ( '.' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:523:10: '.'
{
match('.'); if (state.failed) return;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "PERIOD"
// $ANTLR start "HASH"
public final void mHASH() throws RecognitionException {
try {
int _type = HASH;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:525:6: ( '#' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:525:8: '#'
{
match('#'); if (state.failed) return;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "HASH"
// $ANTLR start "BAR"
public final void mBAR() throws RecognitionException {
try {
int _type = BAR;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:527:5: ( '|' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:527:7: '|'
{
match('|'); if (state.failed) return;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "BAR"
// $ANTLR start "ASTERISK"
public final void mASTERISK() throws RecognitionException {
try {
int _type = ASTERISK;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:529:10: ( '*' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:529:12: '*'
{
match('*'); if (state.failed) return;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "ASTERISK"
// $ANTLR start "COLON"
public final void mCOLON() throws RecognitionException {
try {
int _type = COLON;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:532:5: ( ':' ( ( ( 'not(' )=> 'not(' ) | ( ( 'has(' )=> 'has(' ) )? )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:532:7: ':' ( ( ( 'not(' )=> 'not(' ) | ( ( 'has(' )=> 'has(' ) )?
{
match(':'); if (state.failed) return;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:533:5: ( ( ( 'not(' )=> 'not(' ) | ( ( 'has(' )=> 'has(' ) )?
int alt4=3;
int LA4_0 = input.LA(1);
if ( (LA4_0=='n') && (synpred1_SassPostProcess())) {
alt4=1;
}
else if ( (LA4_0=='h') && (synpred2_SassPostProcess())) {
alt4=2;
}
switch (alt4) {
case 1 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:533:7: ( ( 'not(' )=> 'not(' )
{
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:533:7: ( ( 'not(' )=> 'not(' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:533:8: ( 'not(' )=> 'not('
{
match("not("); if (state.failed) return;
if ( state.backtracking==0 ) { _type = NOT; }
}
}
break;
case 2 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:534:7: ( ( 'has(' )=> 'has(' )
{
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:534:7: ( ( 'has(' )=> 'has(' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:534:8: ( 'has(' )=> 'has('
{
match("has("); if (state.failed) return;
if ( state.backtracking==0 ) { _type = HAS; }
}
}
break;
}
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "COLON"
// $ANTLR start "NOT"
public final void mNOT() throws RecognitionException {
try {
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:538:14: ()
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:538:16:
{
}
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "NOT"
// $ANTLR start "HAS"
public final void mHAS() throws RecognitionException {
try {
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:539:14: ()
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:539:16:
{
}
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "HAS"
// $ANTLR start "SEMICOLON"
public final void mSEMICOLON() throws RecognitionException {
try {
int _type = SEMICOLON;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:541:11: ( ';' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:541:13: ';'
{
match(';'); if (state.failed) return;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "SEMICOLON"
// $ANTLR start "GREATER"
public final void mGREATER() throws RecognitionException {
try {
int _type = GREATER;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:543:9: ( '>' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:543:11: '>'
{
match('>'); if (state.failed) return;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "GREATER"
// $ANTLR start "PLUS"
public final void mPLUS() throws RecognitionException {
try {
int _type = PLUS;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:545:6: ( '+' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:545:8: '+'
{
match('+'); if (state.failed) return;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "PLUS"
// $ANTLR start "TILDE"
public final void mTILDE() throws RecognitionException {
try {
int _type = TILDE;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:547:7: ( '~' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:547:9: '~'
{
match('~'); if (state.failed) return;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "TILDE"
// $ANTLR start "COMMA"
public final void mCOMMA() throws RecognitionException {
try {
int _type = COMMA;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:549:7: ( ',' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:549:9: ','
{
match(','); if (state.failed) return;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "COMMA"
// $ANTLR start "ANY"
public final void mANY() throws RecognitionException {
try {
int _type = ANY;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:552:5: ( . )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:552:7: .
{
matchAny(); if (state.failed) return;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "ANY"
// $ANTLR start "SPACE_CHAR"
public final void mSPACE_CHAR() throws RecognitionException {
try {
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:561:5: ( '\\u0009' | '\\u000A' | '\\u000B' | '\\u000C' | '\\u000D' | '\\u0020' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:
{
if ( (input.LA(1) >= '\t' && input.LA(1) <= '\r')||input.LA(1)==' ' ) {
input.consume();
state.failed=false;
}
else {
if (state.backtracking>0) {state.failed=true; return;}
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "SPACE_CHAR"
// $ANTLR start "NEWLINE_CHAR"
public final void mNEWLINE_CHAR() throws RecognitionException {
try {
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:571:5: ( '\\u000A' | '\\u000D' '\\u000A' | '\\u000D' | '\\u000C' )
int alt5=4;
switch ( input.LA(1) ) {
case '\n':
{
alt5=1;
}
break;
case '\r':
{
int LA5_2 = input.LA(2);
if ( (LA5_2=='\n') ) {
alt5=2;
}
else {
alt5=3;
}
}
break;
case '\f':
{
alt5=4;
}
break;
default:
if (state.backtracking>0) {state.failed=true; return;}
NoViableAltException nvae =
new NoViableAltException("", 5, 0, input);
throw nvae;
}
switch (alt5) {
case 1 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:571:7: '\\u000A'
{
match('\n'); if (state.failed) return;
}
break;
case 2 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:572:7: '\\u000D' '\\u000A'
{
match('\r'); if (state.failed) return;
match('\n'); if (state.failed) return;
}
break;
case 3 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:573:7: '\\u000D'
{
match('\r'); if (state.failed) return;
}
break;
case 4 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:574:7: '\\u000C'
{
match('\f'); if (state.failed) return;
}
break;
}
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "NEWLINE_CHAR"
// $ANTLR start "COMMENT_MACR"
public final void mCOMMENT_MACR() throws RecognitionException {
try {
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:579:5: ( '/*' ( '*' ~ '/' |~ '*' )* '*/' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:579:7: '/*' ( '*' ~ '/' |~ '*' )* '*/'
{
match("/*"); if (state.failed) return;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:579:12: ( '*' ~ '/' |~ '*' )*
loop6:
while (true) {
int alt6=3;
int LA6_0 = input.LA(1);
if ( (LA6_0=='*') ) {
int LA6_1 = input.LA(2);
if ( ((LA6_1 >= '\u0000' && LA6_1 <= '.')||(LA6_1 >= '0' && LA6_1 <= '\uFFFF')) ) {
alt6=1;
}
}
else if ( ((LA6_0 >= '\u0000' && LA6_0 <= ')')||(LA6_0 >= '+' && LA6_0 <= '\uFFFF')) ) {
alt6=2;
}
switch (alt6) {
case 1 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:579:13: '*' ~ '/'
{
match('*'); if (state.failed) return;
if ( (input.LA(1) >= '\u0000' && input.LA(1) <= '.')||(input.LA(1) >= '0' && input.LA(1) <= '\uFFFF') ) {
input.consume();
state.failed=false;
}
else {
if (state.backtracking>0) {state.failed=true; return;}
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
case 2 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:579:21: ~ '*'
{
if ( (input.LA(1) >= '\u0000' && input.LA(1) <= ')')||(input.LA(1) >= '+' && input.LA(1) <= '\uFFFF') ) {
input.consume();
state.failed=false;
}
else {
if (state.backtracking>0) {state.failed=true; return;}
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
default :
break loop6;
}
}
match("*/"); if (state.failed) return;
}
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "COMMENT_MACR"
// $ANTLR start "STRING_MACR"
public final void mSTRING_MACR() throws RecognitionException {
try {
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:584:5: ( QUOT ( STRING_CHAR | APOS )* QUOT | APOS ( STRING_CHAR | QUOT )* APOS )
int alt9=2;
int LA9_0 = input.LA(1);
if ( (LA9_0=='\"') ) {
alt9=1;
}
else if ( (LA9_0=='\'') ) {
alt9=2;
}
else {
if (state.backtracking>0) {state.failed=true; return;}
NoViableAltException nvae =
new NoViableAltException("", 9, 0, input);
throw nvae;
}
switch (alt9) {
case 1 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:584:7: QUOT ( STRING_CHAR | APOS )* QUOT
{
mQUOT(); if (state.failed) return;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:584:12: ( STRING_CHAR | APOS )*
loop7:
while (true) {
int alt7=3;
int LA7_0 = input.LA(1);
if ( (LA7_0=='\t'||(LA7_0 >= ' ' && LA7_0 <= '!')||(LA7_0 >= '#' && LA7_0 <= '&')||(LA7_0 >= '(' && LA7_0 <= '~')||(LA7_0 >= '\u0080' && LA7_0 <= '\uD7FF')||(LA7_0 >= '\uE000' && LA7_0 <= '\uFFFD')) ) {
alt7=1;
}
else if ( (LA7_0=='\'') ) {
alt7=2;
}
switch (alt7) {
case 1 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:584:13: STRING_CHAR
{
mSTRING_CHAR(); if (state.failed) return;
}
break;
case 2 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:584:25: APOS
{
mAPOS(); if (state.failed) return;
}
break;
default :
break loop7;
}
}
mQUOT(); if (state.failed) return;
}
break;
case 2 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:585:7: APOS ( STRING_CHAR | QUOT )* APOS
{
mAPOS(); if (state.failed) return;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:585:12: ( STRING_CHAR | QUOT )*
loop8:
while (true) {
int alt8=3;
int LA8_0 = input.LA(1);
if ( (LA8_0=='\t'||(LA8_0 >= ' ' && LA8_0 <= '!')||(LA8_0 >= '#' && LA8_0 <= '&')||(LA8_0 >= '(' && LA8_0 <= '~')||(LA8_0 >= '\u0080' && LA8_0 <= '\uD7FF')||(LA8_0 >= '\uE000' && LA8_0 <= '\uFFFD')) ) {
alt8=1;
}
else if ( (LA8_0=='\"') ) {
alt8=2;
}
switch (alt8) {
case 1 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:585:13: STRING_CHAR
{
mSTRING_CHAR(); if (state.failed) return;
}
break;
case 2 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:585:25: QUOT
{
mQUOT(); if (state.failed) return;
}
break;
default :
break loop8;
}
}
mAPOS(); if (state.failed) return;
}
break;
}
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "STRING_MACR"
// $ANTLR start "NAME_CHAR"
public final void mNAME_CHAR() throws RecognitionException {
try {
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:590:5: ( ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '-' | '_' | NON_ASCII | ESCAPE_CHAR ) )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:590:7: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '-' | '_' | NON_ASCII | ESCAPE_CHAR )
{
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:590:7: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '-' | '_' | NON_ASCII | ESCAPE_CHAR )
int alt10=7;
int LA10_0 = input.LA(1);
if ( ((LA10_0 >= 'a' && LA10_0 <= 'z')) ) {
alt10=1;
}
else if ( ((LA10_0 >= 'A' && LA10_0 <= 'Z')) ) {
alt10=2;
}
else if ( ((LA10_0 >= '0' && LA10_0 <= '9')) ) {
alt10=3;
}
else if ( (LA10_0=='-') ) {
alt10=4;
}
else if ( (LA10_0=='_') ) {
alt10=5;
}
else if ( ((LA10_0 >= '\u0080' && LA10_0 <= '\uD7FF')||(LA10_0 >= '\uE000' && LA10_0 <= '\uFFFD')) ) {
alt10=6;
}
else if ( (LA10_0=='\\') ) {
alt10=7;
}
else {
if (state.backtracking>0) {state.failed=true; return;}
NoViableAltException nvae =
new NoViableAltException("", 10, 0, input);
throw nvae;
}
switch (alt10) {
case 1 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:590:8: 'a' .. 'z'
{
matchRange('a','z'); if (state.failed) return;
}
break;
case 2 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:590:19: 'A' .. 'Z'
{
matchRange('A','Z'); if (state.failed) return;
}
break;
case 3 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:590:30: '0' .. '9'
{
matchRange('0','9'); if (state.failed) return;
}
break;
case 4 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:590:41: '-'
{
match('-'); if (state.failed) return;
}
break;
case 5 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:590:47: '_'
{
match('_'); if (state.failed) return;
}
break;
case 6 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:590:53: NON_ASCII
{
mNON_ASCII(); if (state.failed) return;
}
break;
case 7 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:590:65: ESCAPE_CHAR
{
mESCAPE_CHAR(); if (state.failed) return;
}
break;
}
}
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "NAME_CHAR"
// $ANTLR start "IDENT_START"
public final void mIDENT_START() throws RecognitionException {
try {
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:595:5: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' | NON_ASCII | ESCAPE_CHAR ) )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:595:7: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | NON_ASCII | ESCAPE_CHAR )
{
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:595:7: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | NON_ASCII | ESCAPE_CHAR )
int alt11=5;
int LA11_0 = input.LA(1);
if ( ((LA11_0 >= 'a' && LA11_0 <= 'z')) ) {
alt11=1;
}
else if ( ((LA11_0 >= 'A' && LA11_0 <= 'Z')) ) {
alt11=2;
}
else if ( (LA11_0=='_') ) {
alt11=3;
}
else if ( ((LA11_0 >= '\u0080' && LA11_0 <= '\uD7FF')||(LA11_0 >= '\uE000' && LA11_0 <= '\uFFFD')) ) {
alt11=4;
}
else if ( (LA11_0=='\\') ) {
alt11=5;
}
else {
if (state.backtracking>0) {state.failed=true; return;}
NoViableAltException nvae =
new NoViableAltException("", 11, 0, input);
throw nvae;
}
switch (alt11) {
case 1 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:595:8: 'a' .. 'z'
{
matchRange('a','z'); if (state.failed) return;
}
break;
case 2 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:595:19: 'A' .. 'Z'
{
matchRange('A','Z'); if (state.failed) return;
}
break;
case 3 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:595:30: '_'
{
match('_'); if (state.failed) return;
}
break;
case 4 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:595:36: NON_ASCII
{
mNON_ASCII(); if (state.failed) return;
}
break;
case 5 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:595:48: ESCAPE_CHAR
{
mESCAPE_CHAR(); if (state.failed) return;
}
break;
}
}
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "IDENT_START"
// $ANTLR start "NON_ASCII"
public final void mNON_ASCII() throws RecognitionException {
try {
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:600:5: ( '\\u0080' .. '\\uD7FF' | '\\uE000' .. '\\uFFFD' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:
{
if ( (input.LA(1) >= '\u0080' && input.LA(1) <= '\uD7FF')||(input.LA(1) >= '\uE000' && input.LA(1) <= '\uFFFD') ) {
input.consume();
state.failed=false;
}
else {
if (state.backtracking>0) {state.failed=true; return;}
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "NON_ASCII"
// $ANTLR start "ESCAPE_CHAR"
public final void mESCAPE_CHAR() throws RecognitionException {
try {
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:605:5: ( '\\\\' ( ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ | '\\u0020' .. '\\u002F' | '\\u003A' .. '\\u0040' | '\\u0047' .. '\\u0060' | '\\u0067' .. '\\u007E' | '\\u0080' .. '\\uD7FF' | '\\uE000' .. '\\uFFFD' ) )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:605:7: '\\\\' ( ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ | '\\u0020' .. '\\u002F' | '\\u003A' .. '\\u0040' | '\\u0047' .. '\\u0060' | '\\u0067' .. '\\u007E' | '\\u0080' .. '\\uD7FF' | '\\uE000' .. '\\uFFFD' )
{
match('\\'); if (state.failed) return;
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:605:12: ( ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ | '\\u0020' .. '\\u002F' | '\\u003A' .. '\\u0040' | '\\u0047' .. '\\u0060' | '\\u0067' .. '\\u007E' | '\\u0080' .. '\\uD7FF' | '\\uE000' .. '\\uFFFD' )
int alt13=7;
int LA13_0 = input.LA(1);
if ( ((LA13_0 >= '0' && LA13_0 <= '9')||(LA13_0 >= 'A' && LA13_0 <= 'F')||(LA13_0 >= 'a' && LA13_0 <= 'f')) ) {
alt13=1;
}
else if ( ((LA13_0 >= ' ' && LA13_0 <= '/')) ) {
alt13=2;
}
else if ( ((LA13_0 >= ':' && LA13_0 <= '@')) ) {
alt13=3;
}
else if ( ((LA13_0 >= 'G' && LA13_0 <= '`')) ) {
alt13=4;
}
else if ( ((LA13_0 >= 'g' && LA13_0 <= '~')) ) {
alt13=5;
}
else if ( ((LA13_0 >= '\u0080' && LA13_0 <= '\uD7FF')) ) {
alt13=6;
}
else if ( ((LA13_0 >= '\uE000' && LA13_0 <= '\uFFFD')) ) {
alt13=7;
}
else {
if (state.backtracking>0) {state.failed=true; return;}
NoViableAltException nvae =
new NoViableAltException("", 13, 0, input);
throw nvae;
}
switch (alt13) {
case 1 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:606:9: ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+
{
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:606:9: ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+
int cnt12=0;
loop12:
while (true) {
int alt12=2;
int LA12_0 = input.LA(1);
if ( ((LA12_0 >= '0' && LA12_0 <= '9')||(LA12_0 >= 'A' && LA12_0 <= 'F')||(LA12_0 >= 'a' && LA12_0 <= 'f')) ) {
alt12=1;
}
switch (alt12) {
case 1 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9')||(input.LA(1) >= 'A' && input.LA(1) <= 'F')||(input.LA(1) >= 'a' && input.LA(1) <= 'f') ) {
input.consume();
state.failed=false;
}
else {
if (state.backtracking>0) {state.failed=true; return;}
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
default :
if ( cnt12 >= 1 ) break loop12;
if (state.backtracking>0) {state.failed=true; return;}
EarlyExitException eee = new EarlyExitException(12, input);
throw eee;
}
cnt12++;
}
}
break;
case 2 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:607:11: '\\u0020' .. '\\u002F'
{
matchRange(' ','/'); if (state.failed) return;
}
break;
case 3 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:608:11: '\\u003A' .. '\\u0040'
{
matchRange(':','@'); if (state.failed) return;
}
break;
case 4 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:609:11: '\\u0047' .. '\\u0060'
{
matchRange('G','`'); if (state.failed) return;
}
break;
case 5 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:610:11: '\\u0067' .. '\\u007E'
{
matchRange('g','~'); if (state.failed) return;
}
break;
case 6 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:611:11: '\\u0080' .. '\\uD7FF'
{
matchRange('\u0080','\uD7FF'); if (state.failed) return;
}
break;
case 7 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:612:11: '\\uE000' .. '\\uFFFD'
{
matchRange('\uE000','\uFFFD'); if (state.failed) return;
}
break;
}
}
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "ESCAPE_CHAR"
// $ANTLR start "STRING_CHAR"
public final void mSTRING_CHAR() throws RecognitionException {
try {
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:618:5: ( ESCAPE_CHAR | '\\\\' NEWLINE_CHAR | '\\u0009' | '\\u0020' .. '\\u0021' | '\\u0023' .. '\\u0026' | '\\u0028' .. '\\u007E' | NON_ASCII )
int alt14=7;
int LA14_0 = input.LA(1);
if ( (LA14_0=='\\') ) {
int LA14_1 = input.LA(2);
if ( ((LA14_1 >= ' ' && LA14_1 <= '~')||(LA14_1 >= '\u0080' && LA14_1 <= '\uD7FF')||(LA14_1 >= '\uE000' && LA14_1 <= '\uFFFD')) ) {
alt14=1;
}
else if ( (LA14_1=='\n'||(LA14_1 >= '\f' && LA14_1 <= '\r')) ) {
alt14=2;
}
else {
alt14=6;
}
}
else if ( (LA14_0=='\t') ) {
alt14=3;
}
else if ( ((LA14_0 >= ' ' && LA14_0 <= '!')) ) {
alt14=4;
}
else if ( ((LA14_0 >= '#' && LA14_0 <= '&')) ) {
alt14=5;
}
else if ( ((LA14_0 >= '(' && LA14_0 <= '[')||(LA14_0 >= ']' && LA14_0 <= '~')) ) {
alt14=6;
}
else if ( ((LA14_0 >= '\u0080' && LA14_0 <= '\uD7FF')||(LA14_0 >= '\uE000' && LA14_0 <= '\uFFFD')) ) {
alt14=7;
}
else {
if (state.backtracking>0) {state.failed=true; return;}
NoViableAltException nvae =
new NoViableAltException("", 14, 0, input);
throw nvae;
}
switch (alt14) {
case 1 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:618:7: ESCAPE_CHAR
{
mESCAPE_CHAR(); if (state.failed) return;
}
break;
case 2 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:619:7: '\\\\' NEWLINE_CHAR
{
match('\\'); if (state.failed) return;
mNEWLINE_CHAR(); if (state.failed) return;
}
break;
case 3 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:620:7: '\\u0009'
{
match('\t'); if (state.failed) return;
}
break;
case 4 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:621:7: '\\u0020' .. '\\u0021'
{
matchRange(' ','!'); if (state.failed) return;
}
break;
case 5 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:623:7: '\\u0023' .. '\\u0026'
{
matchRange('#','&'); if (state.failed) return;
}
break;
case 6 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:625:7: '\\u0028' .. '\\u007E'
{
matchRange('(','~'); if (state.failed) return;
}
break;
case 7 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:626:7: NON_ASCII
{
mNON_ASCII(); if (state.failed) return;
}
break;
}
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "STRING_CHAR"
@Override
public void mTokens() throws RecognitionException {
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:8: ( XML_COMMENT_OPEN | XML_COMMENT_CLOSE | COMMENT | SPACE | STRING | IDENT | NAME | APOS | QUOT | LCURLY | RCURLY | LBRACE | RBRACE | LPAREN | RPAREN | MEDIA | AT | PERIOD | HASH | BAR | ASTERISK | COLON | SEMICOLON | GREATER | PLUS | TILDE | COMMA | ANY )
int alt15=28;
alt15 = dfa15.predict(input);
switch (alt15) {
case 1 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:10: XML_COMMENT_OPEN
{
mXML_COMMENT_OPEN(); if (state.failed) return;
}
break;
case 2 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:27: XML_COMMENT_CLOSE
{
mXML_COMMENT_CLOSE(); if (state.failed) return;
}
break;
case 3 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:45: COMMENT
{
mCOMMENT(); if (state.failed) return;
}
break;
case 4 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:53: SPACE
{
mSPACE(); if (state.failed) return;
}
break;
case 5 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:59: STRING
{
mSTRING(); if (state.failed) return;
}
break;
case 6 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:66: IDENT
{
mIDENT(); if (state.failed) return;
}
break;
case 7 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:72: NAME
{
mNAME(); if (state.failed) return;
}
break;
case 8 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:77: APOS
{
mAPOS(); if (state.failed) return;
}
break;
case 9 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:82: QUOT
{
mQUOT(); if (state.failed) return;
}
break;
case 10 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:87: LCURLY
{
mLCURLY(); if (state.failed) return;
}
break;
case 11 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:94: RCURLY
{
mRCURLY(); if (state.failed) return;
}
break;
case 12 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:101: LBRACE
{
mLBRACE(); if (state.failed) return;
}
break;
case 13 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:108: RBRACE
{
mRBRACE(); if (state.failed) return;
}
break;
case 14 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:115: LPAREN
{
mLPAREN(); if (state.failed) return;
}
break;
case 15 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:122: RPAREN
{
mRPAREN(); if (state.failed) return;
}
break;
case 16 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:129: MEDIA
{
mMEDIA(); if (state.failed) return;
}
break;
case 17 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:135: AT
{
mAT(); if (state.failed) return;
}
break;
case 18 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:138: PERIOD
{
mPERIOD(); if (state.failed) return;
}
break;
case 19 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:145: HASH
{
mHASH(); if (state.failed) return;
}
break;
case 20 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:150: BAR
{
mBAR(); if (state.failed) return;
}
break;
case 21 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:154: ASTERISK
{
mASTERISK(); if (state.failed) return;
}
break;
case 22 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:163: COLON
{
mCOLON(); if (state.failed) return;
}
break;
case 23 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:169: SEMICOLON
{
mSEMICOLON(); if (state.failed) return;
}
break;
case 24 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:179: GREATER
{
mGREATER(); if (state.failed) return;
}
break;
case 25 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:187: PLUS
{
mPLUS(); if (state.failed) return;
}
break;
case 26 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:192: TILDE
{
mTILDE(); if (state.failed) return;
}
break;
case 27 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:198: COMMA
{
mCOMMA(); if (state.failed) return;
}
break;
case 28 :
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:1:204: ANY
{
mANY(); if (state.failed) return;
}
break;
}
}
// $ANTLR start synpred1_SassPostProcess
public final void synpred1_SassPostProcess_fragment() throws RecognitionException {
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:533:8: ( 'not(' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:533:9: 'not('
{
match("not("); if (state.failed) return;
}
}
// $ANTLR end synpred1_SassPostProcess
// $ANTLR start synpred2_SassPostProcess
public final void synpred2_SassPostProcess_fragment() throws RecognitionException {
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:534:8: ( 'has(' )
// org/daisy/pipeline/css/sass/impl/SassPostProcess.g:534:9: 'has('
{
match("has("); if (state.failed) return;
}
}
// $ANTLR end synpred2_SassPostProcess
public final boolean synpred2_SassPostProcess() {
state.backtracking++;
int start = input.mark();
try {
synpred2_SassPostProcess_fragment(); // can never throw exception
} catch (RecognitionException re) {
System.err.println("impossible: "+re);
}
boolean success = !state.failed;
input.rewind(start);
state.backtracking--;
state.failed=false;
return success;
}
public final boolean synpred1_SassPostProcess() {
state.backtracking++;
int start = input.mark();
try {
synpred1_SassPostProcess_fragment(); // can never throw exception
} catch (RecognitionException re) {
System.err.println("impossible: "+re);
}
boolean success = !state.failed;
input.rewind(start);
state.backtracking--;
state.failed=false;
return success;
}
protected DFA15 dfa15 = new DFA15(this);
static final String DFA15_eotS =
"\1\uffff\1\36\1\41\1\36\1\uffff\1\44\1\46\4\47\1\36\7\uffff\1\75\14\uffff"+
"\1\41\7\uffff\6\47\1\uffff\7\47\23\uffff\15\47";
static final String DFA15_eofS =
"\126\uffff";
static final String DFA15_minS =
"\1\0\1\41\1\55\1\52\1\uffff\2\11\4\55\1\40\7\uffff\1\155\14\uffff\1\76"+
"\7\uffff\6\55\1\40\7\55\23\uffff\15\55";
static final String DFA15_maxS =
"\1\uffff\1\41\1\55\1\52\1\uffff\7\ufffd\7\uffff\1\155\14\uffff\1\76\7"+
"\uffff\16\ufffd\23\uffff\15\ufffd";
static final String DFA15_acceptS =
"\4\uffff\1\4\7\uffff\1\7\1\12\1\13\1\14\1\15\1\16\1\17\1\uffff\1\22\1"+
"\23\1\24\1\25\1\26\1\27\1\30\1\31\1\32\1\33\1\34\1\1\1\uffff\1\7\1\3\1"+
"\4\1\11\1\5\1\10\1\6\16\uffff\1\12\1\13\1\14\1\15\1\16\1\17\1\20\1\21"+
"\1\22\1\23\1\24\1\25\1\26\1\27\1\30\1\31\1\32\1\33\1\2\15\uffff";
static final String DFA15_specialS =
"\1\0\125\uffff}>";
static final String[] DFA15_transitionS = {
"\11\36\5\4\22\36\1\4\1\36\1\5\1\25\3\36\1\6\1\21\1\22\1\27\1\33\1\35"+
"\1\2\1\24\1\3\12\14\1\30\1\31\1\1\1\36\1\32\1\36\1\23\32\10\1\17\1\13"+
"\1\20\1\36\1\11\1\36\32\7\1\15\1\26\1\16\1\34\1\36\ud780\12\u0800\36"+
"\u1ffe\12\2\36",
"\1\37",
"\1\40",
"\1\42",
"",
"\1\45\26\uffff\137\45\1\uffff\ud780\45\u0800\uffff\u1ffe\45",
"\1\45\26\uffff\137\45\1\uffff\ud780\45\u0800\uffff\u1ffe\45",
"\1\53\2\uffff\12\52\7\uffff\32\51\1\uffff\1\56\2\uffff\1\54\1\uffff"+
"\32\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\52\7\uffff\32\51\1\uffff\1\56\2\uffff\1\54\1\uffff"+
"\32\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\52\7\uffff\32\51\1\uffff\1\56\2\uffff\1\54\1\uffff"+
"\32\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\52\7\uffff\32\51\1\uffff\1\56\2\uffff\1\54\1\uffff"+
"\32\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\20\60\12\57\7\61\6\57\32\62\6\57\30\63\1\uffff\ud780\64\u0800\uffff"+
"\u1ffe\65",
"",
"",
"",
"",
"",
"",
"",
"\1\74",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"\1\110",
"",
"",
"",
"",
"",
"",
"",
"\1\53\2\uffff\12\52\7\uffff\32\51\1\uffff\1\56\2\uffff\1\54\1\uffff"+
"\32\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\52\7\uffff\32\51\1\uffff\1\56\2\uffff\1\54\1\uffff"+
"\32\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\52\7\uffff\32\51\1\uffff\1\56\2\uffff\1\54\1\uffff"+
"\32\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\52\7\uffff\32\51\1\uffff\1\56\2\uffff\1\54\1\uffff"+
"\32\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\52\7\uffff\32\51\1\uffff\1\56\2\uffff\1\54\1\uffff"+
"\32\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\52\7\uffff\32\51\1\uffff\1\56\2\uffff\1\54\1\uffff"+
"\32\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\20\112\12\111\7\113\6\111\32\114\6\111\30\115\1\uffff\ud780\116\u0800"+
"\uffff\u1ffe\117",
"\1\53\2\uffff\12\122\7\uffff\6\121\24\51\1\uffff\1\56\2\uffff\1\54\1"+
"\uffff\6\120\24\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\52\7\uffff\32\51\1\uffff\1\56\2\uffff\1\54\1\uffff"+
"\32\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\52\7\uffff\32\51\1\uffff\1\56\2\uffff\1\54\1\uffff"+
"\32\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\52\7\uffff\32\51\1\uffff\1\56\2\uffff\1\54\1\uffff"+
"\32\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\52\7\uffff\32\51\1\uffff\1\56\2\uffff\1\54\1\uffff"+
"\32\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\52\7\uffff\32\51\1\uffff\1\56\2\uffff\1\54\1\uffff"+
"\32\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\52\7\uffff\32\51\1\uffff\1\56\2\uffff\1\54\1\uffff"+
"\32\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"\1\53\2\uffff\12\125\7\uffff\6\124\24\51\1\uffff\1\56\2\uffff\1\54\1"+
"\uffff\6\123\24\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\52\7\uffff\32\51\1\uffff\1\56\2\uffff\1\54\1\uffff"+
"\32\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\52\7\uffff\32\51\1\uffff\1\56\2\uffff\1\54\1\uffff"+
"\32\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\52\7\uffff\32\51\1\uffff\1\56\2\uffff\1\54\1\uffff"+
"\32\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\52\7\uffff\32\51\1\uffff\1\56\2\uffff\1\54\1\uffff"+
"\32\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\52\7\uffff\32\51\1\uffff\1\56\2\uffff\1\54\1\uffff"+
"\32\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\52\7\uffff\32\51\1\uffff\1\56\2\uffff\1\54\1\uffff"+
"\32\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\122\7\uffff\6\121\24\51\1\uffff\1\56\2\uffff\1\54\1"+
"\uffff\6\120\24\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\122\7\uffff\6\121\24\51\1\uffff\1\56\2\uffff\1\54\1"+
"\uffff\6\120\24\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\122\7\uffff\6\121\24\51\1\uffff\1\56\2\uffff\1\54\1"+
"\uffff\6\120\24\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\125\7\uffff\6\124\24\51\1\uffff\1\56\2\uffff\1\54\1"+
"\uffff\6\123\24\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\125\7\uffff\6\124\24\51\1\uffff\1\56\2\uffff\1\54\1"+
"\uffff\6\123\24\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55",
"\1\53\2\uffff\12\125\7\uffff\6\124\24\51\1\uffff\1\56\2\uffff\1\54\1"+
"\uffff\6\123\24\50\5\uffff\ud780\55\u0800\uffff\u1ffe\55"
};
static final short[] DFA15_eot = DFA.unpackEncodedString(DFA15_eotS);
static final short[] DFA15_eof = DFA.unpackEncodedString(DFA15_eofS);
static final char[] DFA15_min = DFA.unpackEncodedStringToUnsignedChars(DFA15_minS);
static final char[] DFA15_max = DFA.unpackEncodedStringToUnsignedChars(DFA15_maxS);
static final short[] DFA15_accept = DFA.unpackEncodedString(DFA15_acceptS);
static final short[] DFA15_special = DFA.unpackEncodedString(DFA15_specialS);
static final short[][] DFA15_transition;
static {
int numStates = DFA15_transitionS.length;
DFA15_transition = new short[numStates][];
for (int i=0; i= '\t' && LA15_0 <= '\r')||LA15_0==' ') ) {s = 4;}
else if ( (LA15_0=='\"') ) {s = 5;}
else if ( (LA15_0=='\'') ) {s = 6;}
else if ( ((LA15_0 >= 'a' && LA15_0 <= 'z')) ) {s = 7;}
else if ( ((LA15_0 >= 'A' && LA15_0 <= 'Z')) ) {s = 8;}
else if ( (LA15_0=='_') ) {s = 9;}
else if ( ((LA15_0 >= '\u0080' && LA15_0 <= '\uD7FF')||(LA15_0 >= '\uE000' && LA15_0 <= '\uFFFD')) ) {s = 10;}
else if ( (LA15_0=='\\') ) {s = 11;}
else if ( ((LA15_0 >= '0' && LA15_0 <= '9')) ) {s = 12;}
else if ( (LA15_0=='{') ) {s = 13;}
else if ( (LA15_0=='}') ) {s = 14;}
else if ( (LA15_0=='[') ) {s = 15;}
else if ( (LA15_0==']') ) {s = 16;}
else if ( (LA15_0=='(') ) {s = 17;}
else if ( (LA15_0==')') ) {s = 18;}
else if ( (LA15_0=='@') ) {s = 19;}
else if ( (LA15_0=='.') ) {s = 20;}
else if ( (LA15_0=='#') ) {s = 21;}
else if ( (LA15_0=='|') ) {s = 22;}
else if ( (LA15_0=='*') ) {s = 23;}
else if ( (LA15_0==':') ) {s = 24;}
else if ( (LA15_0==';') ) {s = 25;}
else if ( (LA15_0=='>') ) {s = 26;}
else if ( (LA15_0=='+') ) {s = 27;}
else if ( (LA15_0=='~') ) {s = 28;}
else if ( (LA15_0==',') ) {s = 29;}
else if ( ((LA15_0 >= '\u0000' && LA15_0 <= '\b')||(LA15_0 >= '\u000E' && LA15_0 <= '\u001F')||LA15_0=='!'||(LA15_0 >= '$' && LA15_0 <= '&')||LA15_0=='='||LA15_0=='?'||LA15_0=='^'||LA15_0=='`'||LA15_0=='\u007F'||(LA15_0 >= '\uD800' && LA15_0 <= '\uDFFF')||(LA15_0 >= '\uFFFE' && LA15_0 <= '\uFFFF')) ) {s = 30;}
if ( s>=0 ) return s;
break;
}
if (state.backtracking>0) {state.failed=true; return -1;}
NoViableAltException nvae =
new NoViableAltException(getDescription(), 15, _s, input);
error(nvae);
throw nvae;
}
}
}