ParseWarning.st
author Claus Gittinger <cg@exept.de>
Wed, 12 Dec 2018 19:11:17 +0100
changeset 4321 53f494b890c1
parent 4311 ca85799f3fa7
child 4349 3cbb3f48bcd0
permissions -rw-r--r--
*** empty log message ***
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4311
ca85799f3fa7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4102
diff changeset
     1
"{ Encoding: utf8 }"
ca85799f3fa7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4102
diff changeset
     2
3065
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
     3
"
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
     4
 COPYRIGHT (c) 1989 by Claus Gittinger
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
     5
              All Rights Reserved
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
     6
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
     7
 This software is furnished under a license and may be used
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
     8
 only in accordance with the terms of that license and with the
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
     9
 inclusion of the above copyright notice.   This software may not
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
    10
 be provided or otherwise made available to, or used by, any
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
    11
 other person.  No title to or ownership of the software is
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
    12
 hereby transferred.
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
    13
"
3061
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
"{ Package: 'stx:libcomp' }"
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
4102
b12adacf8da4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3065
diff changeset
    16
"{ NameSpace: Smalltalk }"
b12adacf8da4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3065
diff changeset
    17
3061
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
Notification subclass:#ParseWarning
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	instanceVariableNames:'errorMessage startPosition endPosition lineNumber'
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	classVariableNames:''
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
	poolDictionaries:''
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
	category:'System-Compiler'
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
!
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
3065
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
    25
!ParseWarning class methodsFor:'documentation'!
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
    26
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
    27
copyright
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
    28
"
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
    29
 COPYRIGHT (c) 1989 by Claus Gittinger
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
    30
              All Rights Reserved
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
    31
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
    32
 This software is furnished under a license and may be used
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
    33
 only in accordance with the terms of that license and with the
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
    34
 inclusion of the above copyright notice.   This software may not
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
    35
 be provided or otherwise made available to, or used by, any
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
    36
 other person.  No title to or ownership of the software is
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
    37
 hereby transferred.
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
    38
"
4311
ca85799f3fa7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4102
diff changeset
    39
!
ca85799f3fa7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4102
diff changeset
    40
ca85799f3fa7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4102
diff changeset
    41
documentation
ca85799f3fa7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4102
diff changeset
    42
"
ca85799f3fa7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4102
diff changeset
    43
    Warnings generated by parsers (eg. the Smalltalk code parser).
ca85799f3fa7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4102
diff changeset
    44
    In unhandled, a message is sent to the Transcript and the compilation proceeds.
ca85799f3fa7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4102
diff changeset
    45
ca85799f3fa7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4102
diff changeset
    46
    [author:]
ca85799f3fa7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4102
diff changeset
    47
        Claus Gittinger
ca85799f3fa7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4102
diff changeset
    48
ca85799f3fa7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4102
diff changeset
    49
    [instance variables:]
ca85799f3fa7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4102
diff changeset
    50
ca85799f3fa7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4102
diff changeset
    51
    [class variables:]
ca85799f3fa7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4102
diff changeset
    52
ca85799f3fa7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4102
diff changeset
    53
    [see also:]
ca85799f3fa7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4102
diff changeset
    54
ca85799f3fa7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4102
diff changeset
    55
"
3065
6128bec16783 class: ParseWarning
Claus Gittinger <cg@exept.de>
parents: 3061
diff changeset
    56
! !
3061
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
!ParseWarning methodsFor:'accessing'!
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
endPosition
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
    ^ endPosition
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
!
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
endPosition:something
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
    endPosition := something.
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
!
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
errorMessage
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
    ^ errorMessage
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
!
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
errorMessage:something
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
    errorMessage := something.
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
!
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
lineNumber
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
    ^ lineNumber
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
!
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
lineNumber:something
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
    lineNumber := something.
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
!
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
startPosition
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
    ^ startPosition
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
!
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
startPosition:something
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
    startPosition := something.
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
! !
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
4102
b12adacf8da4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3065
diff changeset
    92
!ParseWarning methodsFor:'default action'!
b12adacf8da4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3065
diff changeset
    93
b12adacf8da4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3065
diff changeset
    94
defaultResumeValue
b12adacf8da4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3065
diff changeset
    95
    Logger warning:('Parser Warning: ',(self errorMessage ? self description)).
b12adacf8da4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3065
diff changeset
    96
    ^ super defaultResumeValue
b12adacf8da4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3065
diff changeset
    97
! !
b12adacf8da4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3065
diff changeset
    98
3061
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
!ParseWarning class methodsFor:'documentation'!
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
version
4102
b12adacf8da4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3065
diff changeset
   102
    ^ '$Header$'
3061
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
!
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
version_CVS
4102
b12adacf8da4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3065
diff changeset
   106
    ^ '$Header$'
3061
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
! !
c15acf373ee6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108