Announcement

Collapse
No announcement yet.

Regular Expression Error Parser for CDT

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Regular Expression Error Parser for CDT

    Ich versuche grade den "Regular Expression Error Parser for CDT von iSYSTEM" für folgenden Compiler-Output zu benutzen.

    L:\soft_src\Eclipse\31_MATCH\env\ttc\build\make.ex e -f ttc_make.mak all
    compiling: src/main_ttc.c
    c166 E208: ["src/main_ttc.c" 68/5] syntax error - token ";" inserted before "ubyte1"
    1 errors, 0 warnings
    make: *** [_debug\TTC90\src/main_ttc.obj] Error 1

    Die Regel die ich in Benutzung habe ist wie folgt:
    error = 1, 2, 3:c[0-9]+ E[0-9]+: \[\"(.*?)\" ([0-9]+)/[0-9]+\] syntax (.+)

    Aber leider klappt das nicht - hat jemand eine Idee. Vielen Dank in voraus.

  • #2
    "Klappt nicht" ist kein Fehler

    Der Ausdruck

    c[0-9]+ E[0-9]+: \[\"(.*?)\" ([0-9]+)/[0-9]+\] syntax (.+)

    matcht

    c166 E208: ["src/main_ttc.c" 68/5] syntax error - token ";" inserted before "ubyte1"
    Christian

    Comment


    • #3
      Vielen Danke für die schnelle Antwort.
      Aber leider verstehe ich das nicht. Ich muss den Paser doch sagen.
      Erste Gruppe ist die Datei, dann der Line, dann das Kommentar. Oder ?

      Habe es aber auch ohne error = 1, 2, 3 probiert. Also nur
      c[0-9]+ E[0-9]+: \[\"(.*?)\" ([0-9]+)/[0-9]+\] syntax (.+)
      aber geklappt hat es leider nicht.

      RegExErrorParser: No match found for line: 'L:\soft_src\Eclipse\31_MATCH\env\ttc\build\make.e xe -f ttc_make.mak all'
      RegExErrorParser: No match found for line: 'L:\soft_src\Eclipse\31_MATCH\env\ttc\build\make.e xe -f ttc_make.mak all'
      RegExErrorParser: No match found for line: 'L:\soft_src\Eclipse\31_MATCH\env\ttc\build\make.e xe -f ttc_make.mak all'
      RegExErrorParser: No match found for line: 'compiling: src/main_ttc.c'
      RegExErrorParser: No match found for line: 'compiling: src/main_ttc.c'
      RegExErrorParser: No match found for line: 'compiling: src/main_ttc.c'
      RegExErrorParser: No match found for line: 'c166 E208: ["src/main_ttc.c" 68/5] syntax error - token ";" inserted before "ubyte1"'
      RegExErrorParser: No match found for line: 'c166 E208: ["src/main_ttc.c" 68/5] syntax error - token ";" inserted before "ubyte1"'
      RegExErrorParser: No match found for line: 'c166 E208: ["src/main_ttc.c" 68/5] syntax error - token ";" inserted before "ubyte1"'
      RegExErrorParser: No match found for line: '1 errors, 0 warnings'
      RegExErrorParser: No match found for line: '1 errors, 0 warnings'
      RegExErrorParser: No match found for line: '1 errors, 0 warnings'
      RegExErrorParser: No match found for line: 'make: *** [_debug\TTC90\src/main_ttc.obj] Error 1'
      RegExErrorParser: No match found for line: 'make: *** [_debug\TTC90\src/main_ttc.obj] Error 1'
      RegExErrorParser: No match found for line: 'make: *** [_debug\TTC90\src/main_ttc.obj] Error 1'

      Comment


      • #4
        Für diese Zeile

        L:\soft_src\Eclipse\31_MATCH\env\ttc\build\make.e xe -f t

        wird der Ausdruck nicht matchen. Der Ausdruck erwartet ein c mit folgenden Ziffern
        Christian

        Comment

        Working...
        X