docs: public final EObject ruleXStringLiteral() throws RecognitionException {
          EObject current = null;
  
          EObject this_SimpleStringLiteral_0 = null;
  
          EObject this_RichString_1 = null;
  
  
  
          	enterRule();
  
          try {
              // InternalSARL.g:10488:2: ( (this_SimpleStringLiteral_0= ruleSimpleStringLiteral | this_RichString_1= ruleRichString ) )
              // InternalSARL.g:10489:2: (this_SimpleStringLiteral_0= ruleSimpleStringLiteral | this_RichString_1= ruleRichString )
              {
              // InternalSARL.g:10489:2: (this_SimpleStringLiteral_0= ruleSimpleStringLiteral | this_RichString_1= ruleRichString )
              int alt268=2;
              int LA268_0 = input.LA(1);
  
              if ( (LA268_0==RULE_STRING) ) {
                  alt268=1;
              }
              else if ( ((LA268_0>=RULE_RICH_TEXT && LA268_0<=RULE_RICH_TEXT_START)) ) {
                  alt268=2;
              }
              else {
                  if (state.backtracking>0) {state.failed=true; return current;}
                  NoViableAltException nvae =
                      new NoViableAltException("", 268, 0, input);
  
                  throw nvae;
              }
              switch (alt268) {
                  case 1 :
                      // InternalSARL.g:10490:3: this_SimpleStringLiteral_0= ruleSimpleStringLiteral
                      {
                      if ( state.backtracking==0 ) {
  
                        			newCompositeNode(grammarAccess.getXStringLiteralAccess().getSimpleStringLiteralParserRuleCall_0());
                        		
                      }
                      pushFollow(FOLLOW_2);
                      this_SimpleStringLiteral_0=ruleSimpleStringLiteral();
  
                      state._fsp--;
                      if (state.failed) return current;
                      if ( state.backtracking==0 ) {
  
                        			current = this_SimpleStringLiteral_0;
                        			afterParserOrEnumRuleCall();
                        		
                      }
  
                      }
                      break;
                  case 2 :
                      // InternalSARL.g:10499:3: this_RichString_1= ruleRichString
                      {
                      if ( state.backtracking==0 ) {
  
                        			newCompositeNode(grammarAccess.getXStringLiteralAccess().getRichStringParserRuleCall_1());
                        		
                      }
                      pushFollow(FOLLOW_2);
                      this_RichString_1=ruleRichString();
  
                      state._fsp--;
                      if (state.failed) return current;
                      if ( state.backtracking==0 ) {
  
                        			current = this_RichString_1;
                        			afterParserOrEnumRuleCall();
                        		
                      }
  
                      }
                      break;
  
              }
  
  
              }
  
              if ( state.backtracking==0 ) {
  
                	leaveRule();
  
              }
          }
  
              catch (RecognitionException re) {
                  recover(input,re);
                  appendSkippedTokens();
              }
          finally {
          }
          return current;
      }