com.sonar.sslr.api.RecognitionException: Parse error at line 4 column 10: 2: puts ( "1,\"x\",int" ); 3: puts ( "\"x\"" ); --> puts ( ; 5: 6: EOF

GitHub | Bertk | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    C++11 preprocessor syntax not supported

    GitHub | 5 months ago | Bertk
    com.sonar.sslr.api.RecognitionException: Parse error at line 4 column 10: 2: puts ( "1,\"x\",int" ); 3: puts ( "\"x\"" ); --> puts ( ; 5: 6: EOF
  2. 0

    GitHub comment 838#213902448

    GitHub | 10 months ago | Bertk
    com.sonar.sslr.api.RecognitionException: Parse error at line 3 column 9: --> int main() { 4: printf ( "hello, world\n" , ); 5: }EOF
  3. 0

    GitHub comment 838#213907775

    GitHub | 10 months ago | jmecosta
    com.sonar.sslr.api.RecognitionException: Parse error at line 3 column 9: --> int main() { 4: printf ( "hello, world\n" , ); 5: }EOF
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 838#213908500

    GitHub | 10 months ago | guwirth
    com.sonar.sslr.api.RecognitionException: Parse error at line 3 column 9: --> int main() { 4: printf ( "hello, world\n" , ); 5: }EOF
  6. 0

    An argument called "final" generates a parsing error

    GitHub | 2 years ago | iwill80
    com.sonar.sslr.api.RecognitionException: Parse error at line 715 column 8 failed to match all of: templateName templateName enumName typedefName originalNamespaceName namespaceAlias decltypeSpecifier templateName templateName enumName typedefName originalNamespaceName namespaceAlias decltypeSpecifier templateName templateName templateName enumName typedefName originalNamespaceName namespaceAlias decltypeSpecifier templateName operatorFunctionId literalOperatorId operatorFunctionId conversionFunctionId literalOperatorId ptrDeclarator templateName templateName enumName typedefName originalNamespaceName namespaceAlias decltypeSpecifier templateName templateName enumName typedefName originalNamespaceName namespaceAlias decltypeSpecifier templateName templateName templateName enumName typedefName originalNamespaceName namespaceAlias decltypeSpecifier templateName operatorFunctionId literalOperatorId operatorFunctionId conversionFunctionId literalOperatorId declarator functionDefinition templateName templateName enumName typedefName originalNamespaceName namespaceAlias decltypeSpecifier templateName templateName enumName typedefName originalNamespaceName namespaceAlias decltypeSpecifier templateName templateName templateName enumName typedefName originalNamespaceName namespaceAlias decltypeSpecifier templateName operatorFunctionId literalOperatorId operatorFunctionId conversionFunctionId literalOperatorId ptrDeclarator templateName templateName enumName typedefName originalNamespaceName namespaceAlias decltypeSpecifier templateName templateName enumName typedefName originalNamespaceName namespaceAlias decltypeSpecifier templateName templateName templateName enumName typedefName originalNamespaceName namespaceAlias decltypeSpecifier templateName operatorFunctionId literalOperatorId operatorFunctionId conversionFunctionId literalOperatorId declarator initDeclarator initDeclaratorList ... 714: --> int foo(int final); 716: ... Failed at rules: /-templateName /-simpleTemplateId | /-templateName | /-simpleTemplateId +-className +-enumName +-typedefName /-typeName | /-originalNamespaceName | +-namespaceAlias +-namespaceName +-decltypeSpecifier /-nestedNameSpecifier /-ptrOperator | /-templateName | /-simpleTemplateId | | /-templateName | | /-simpleTemplateId | +-className | +-enumName | +-typedefName | /-typeName | | /-originalNamespaceName | | +-namespaceAlias | +-namespaceName | +-decltypeSpecifier | /-nestedNameSpecifier | | /-templateName | | /-simpleTemplateId | +-className | | /-templateName | | /-simpleTemplateId | | | /-templateName | | | /-simpleTemplateId | | +-className | | +-enumName | | +-typedefName | | /-typeName | | | /-originalNamespaceName | | | +-namespaceAlias | | +-namespaceName | | +-decltypeSpecifier | | /-nestedNameSpecifier | | /-qualifiedId | | | /-templateName | | | /-simpleTemplateId | | | +-operatorFunctionId | | | +-literalOperatorId | | | /-templateId | | | +-operatorFunctionId | | | +-conversionFunctionId | | | +-literalOperatorId | | +-unqualifiedId | +-idExpression | /-declaratorId +-noptrDeclarator /-ptrDeclarator /-noptrDeclarator consumed from (715, 7) to (715, 8): ( /-ptrDeclarator +-ptrDeclarator consumed from (715, 7) to (715, 8): ( | /-templateName | /-simpleTemplateId | | /-templateName | | /-simpleTemplateId | +-className | +-enumName | +-typedefName | /-typeName | | /-originalNamespaceName | | +-namespaceAlias | +-namespaceName | +-decltypeSpecifier | /-nestedNameSpecifier | /-ptrOperator | | /-templateName | | /-simpleTemplateId | | | /-templateName | | | /-simpleTemplateId | | +-className | | +-enumName | | +-typedefName | | /-typeName | | | /-originalNamespaceName | | | +-namespaceAlias | | +-namespaceName | | +-decltypeSpecifier | | /-nestedNameSpecifier | | | /-templateName | | | /-simpleTemplateId | | +-className | | | /-templateName | | | /-simpleTemplateId | | | | /-templateName | | | | /-simpleTemplateId | | | +-className | | | +-enumName | | | +-typedefName | | | /-typeName | | | | /-originalNamespaceName | | | | +-namespaceAlias | | | +-namespaceName | | | +-decltypeSpecifier | | | /-nestedNameSpecifier | | | /-qualifiedId | | | | /-templateName | | | | /-simpleTemplateId | | | | +-operatorFunctionId | | | | +-literalOperatorId | | | | /-templateId | | | | +-operatorFunctionId | | | | +-conversionFunctionId | | | | +-literalOperatorId | | | +-unqualifiedId | | +-idExpression | | /-declaratorId | +-noptrDeclarator | /-ptrDeclarator +-noptrDeclarator consumed from (715, 7) to (715, 8): ( /-declarator +-declarator consumed from (715, 7) to (715, 8): ( /-functionDefinition consumed from (715, 0) to (715, 7): int foo +-functionDefinition consumed from (715, 0) to (715, 8): int foo ( | /-templateName | /-simpleTemplateId | | /-templateName | | /-simpleTemplateId | +-className | +-enumName | +-typedefName | /-typeName | | /-originalNamespaceName | | +-namespaceAlias | +-namespaceName | +-decltypeSpecifier | /-nestedNameSpecifier | /-ptrOperator | | /-templateName | | /-simpleTemplateId | | | /-templateName | | | /-simpleTemplateId | | +-className | | +-enumName | | +-typedefName | | /-typeName | | | /-originalNamespaceName | | | +-namespaceAlias | | +-namespaceName | | +-decltypeSpecifier | | /-nestedNameSpecifier | | | /-templateName | | | /-simpleTemplateId | | +-className | | | /-templateName | | | /-simpleTemplateId | | | | /-templateName | | | | /-simpleTemplateId | | | +-className | | | +-enumName | | | +-typedefName | | | /-typeName | | | | /-originalNamespaceName | | | | +-namespaceAlias | | | +-namespaceName | | | +-decltypeSpecifier | | | /-nestedNameSpecifier | | | /-qualifiedId | | | | /-templateName | | | | /-simpleTemplateId | | | | +-operatorFunctionId | | | | +-literalOperatorId | | | | /-templateId | | | | +-operatorFunctionId | | | | +-conversionFunctionId | | | | +-literalOperatorId | | | +-unqualifiedId | | +-idExpression | | /-declaratorId | +-noptrDeclarator | /-ptrDeclarator | /-noptrDeclarator consumed from (715, 7) to (715, 8): ( | /-ptrDeclarator | +-ptrDeclarator consumed from (715, 7) to (715, 8): ( | | /-templateName | | /-simpleTemplateId | | | /-templateName | | | /-simpleTemplateId | | +-className | | +-enumName | | +-typedefName | | /-typeName | | | /-originalNamespaceName | | | +-namespaceAlias | | +-namespaceName | | +-decltypeSpecifier | | /-nestedNameSpecifier | | /-ptrOperator | | | /-templateName | | | /-simpleTemplateId | | | | /-templateName | | | | /-simpleTemplateId | | | +-className | | | +-enumName | | | +-typedefName | | | /-typeName | | | | /-originalNamespaceName | | | | +-namespaceAlias | | | +-namespaceName | | | +-decltypeSpecifier | | | /-nestedNameSpecifier | | | | /-templateName | | | | /-simpleTemplateId | | | +-className | | | | /-templateName | | | | /-simpleTemplateId | | | | | /-templateName | | | | | /-simpleTemplateId | | | | +-className | | | | +-enumName | | | | +-typedefName | | | | /-typeName | | | | | /-originalNamespaceName | | | | | +-namespaceAlias | | | | +-namespaceName | | | | +-decltypeSpecifier | | | | /-nestedNameSpecifier | | | | /-qualifiedId | | | | | /-templateName | | | | | /-simpleTemplateId | | | | | +-operatorFunctionId | | | | | +-literalOperatorId | | | | | /-templateId | | | | | +-operatorFunctionId | | | | | +-conversionFunctionId | | | | | +-literalOperatorId | | | | +-unqualifiedId | | | +-idExpression | | | /-declaratorId | | +-noptrDeclarator | | /-ptrDeclarator | +-noptrDeclarator consumed from (715, 7) to (715, 8): ( | /-declarator | +-declarator consumed from (715, 7) to (715, 8): ( | /-initDeclarator | +-initDeclarator consumed from (715, 7) to (715, 8): ( | /-initDeclaratorList | +-initDeclaratorList consumed from (715, 7) to (715, 8): ( | /-simpleDeclaration consumed from (715, 0) to (715, 7): int foo +-blockDeclaration /-declaration declarationSeq consumed from (115, 0) to (713, 19): ... , hpn_timestamp_t * f , const char flag ) ; linkageSpecification consumed from (108, 3) to (108, 15): extern \"C\" { declaration translationUnit

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.sonar.sslr.api.RecognitionException

      Parse error at line 4 column 10: 2: puts ( "1,\"x\",int" ); 3: puts ( "\"x\"" ); --> puts ( ; 5: 6: EOF

      at org.sonar.sslr.internal.vm.Machine.parse()
    2. SonarSource :: Language Recognizer :: Core
      Parser.parse
      1. org.sonar.sslr.internal.vm.Machine.parse(Machine.java:74)
      2. com.sonar.sslr.impl.Parser.parse(Parser.java:87)
      3. com.sonar.sslr.impl.Parser.parse(Parser.java:81)
      3 frames
    3. org.sonar.sslr
      ToolkitViewImpl$5.actionPerformed
      1. org.sonar.sslr.internal.toolkit.SourceCodeModel.setSourceCode(SourceCodeModel.java:62)
      2. org.sonar.sslr.internal.toolkit.ToolkitPresenter.onSourceCodeParseButtonClick(ToolkitPresenter.java:124)
      3. org.sonar.sslr.internal.toolkit.ToolkitViewImpl$5.actionPerformed(ToolkitViewImpl.java:203)
      3 frames
    4. Java RT
      EventDispatchThread.run
      1. javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      2. javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      4. javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
      6. java.awt.Component.processMouseEvent(Unknown Source)
      7. javax.swing.JComponent.processMouseEvent(Unknown Source)
      8. java.awt.Component.processEvent(Unknown Source)
      9. java.awt.Container.processEvent(Unknown Source)
      10. java.awt.Component.dispatchEventImpl(Unknown Source)
      11. java.awt.Container.dispatchEventImpl(Unknown Source)
      12. java.awt.Component.dispatchEvent(Unknown Source)
      13. java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      14. java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      15. java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      16. java.awt.Container.dispatchEventImpl(Unknown Source)
      17. java.awt.Window.dispatchEventImpl(Unknown Source)
      18. java.awt.Component.dispatchEvent(Unknown Source)
      19. java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      20. java.awt.EventQueue.access$500(Unknown Source)
      21. java.awt.EventQueue$3.run(Unknown Source)
      22. java.awt.EventQueue$3.run(Unknown Source)
      23. java.security.AccessController.doPrivileged(Native Method)
      24. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      25. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      26. java.awt.EventQueue$4.run(Unknown Source)
      27. java.awt.EventQueue$4.run(Unknown Source)
      28. java.security.AccessController.doPrivileged(Native Method)
      29. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      30. java.awt.EventQueue.dispatchEvent(Unknown Source)
      31. java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      32. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      33. java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      34. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      35. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      36. java.awt.EventDispatchThread.run(Unknown Source)
      36 frames