home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 005 / dmsppe1a.zip / CMDLINE.PPE (.txt) next >
PCBoard Programming Language Executable  |  1994-11-14  |  1KB  |  114 lines

  1. ;------------------------------------------------------------------------------
  2. ;                                                   .ss.
  3. ;                                                   `²²'
  4. ;             .,sS$Ss,,s$  .,sS$$$Ss.  .,sS$Ss,,s$ .ss.  .sSs.
  5. ;           .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
  6. ;           $$$'   .$$$' $$$²Sçsµ²' .$$$'   .$$$'.$$$' .$$$'  `$$b.
  7. ;           $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$'    ;$$$
  8. ;           `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
  9. ;                                    .sS²°$$$²²°"'       d²°'
  10. ;                                  .$$²  .$$'
  11. ;                                  $$$.,d$$'
  12. ;                                  `²S$$S²'
  13. ;------------------------------------------------------------------------------
  14. ; P.P.L.X. 2.OO                          (C)1996 - Lone Runner / AEGiS CoRP'96 
  15. ;------------------------------------------------------------------------------
  16. ; PPE 2.OO (plain) - Analysis ON - Postprocessing ON
  17. ;------------------------------------------------------------------------------
  18.  
  19.     String   STRING001
  20.     String   STRING002
  21.     Int      INT001
  22.  
  23. ;------------------------------------------------------------------------------
  24.  
  25.     INT001 = 0
  26.     STRING001 = ""
  27.     STRING002 = ""
  28.     PrintLn "(@X0C@MINLEFT@@X0E min. left) @X0C[ @INCONF@]@X0E"
  29.     Print " @X0ACommand @X03(? = Help) @X0A-> "
  30.     Color 3
  31.     INT001 = 0
  32.     :LABEL001
  33.     If (INT001 == 13) Goto LABEL002
  34.     STRING001 = ""
  35.     While (STRING001 == "") Do
  36.         STRING001 = Inkey()
  37.     EndWhile
  38.     INT001 = Asc(STRING001)
  39.     If (Len(STRING001) > 1) Then
  40.         INT001 = 0
  41.     ElseIf (INT001 == 9) Then
  42.         INT001 = 0
  43.     ElseIf ((INT001 == 13) && (Len(STRING002) == 0)) Then
  44.         INT001 = 0
  45.     ElseIf ((INT001 == 8) && (Len(STRING002) == 0)) Then
  46.         INT001 = 0
  47.     ElseIf ((INT001 == 32) && (Len(STRING002) == 0)) Then
  48.         INT001 = 0
  49.     ElseIf (INT001 == 8) Then
  50.         Backup 1
  51.         Print Space(1)
  52.         Backup 1
  53.         STRING002 = Left(STRING002, Len(STRING002) - 1)
  54.         INT001 = 0
  55.     Else
  56.         Print STRING001
  57.         STRING002 = STRING002 + STRING001
  58.     Endif
  59.     Goto LABEL001
  60.     :LABEL002
  61.     Color 7
  62.     Newline
  63.     KbdStuff STRING002
  64.     End
  65.  
  66. ;------------------------------------------------------------------------------
  67. ;
  68. ; Usage report (before postprocessing)
  69. ;
  70. ; ■ Statements used :
  71. ;
  72. ;    1       End
  73. ;    2       Color 
  74. ;    16      Goto 
  75. ;    15      Let 
  76. ;    3       Print 
  77. ;    1       PrintLn 
  78. ;    8       If 
  79. ;    1       Newline
  80. ;    1       KbdStuff 
  81. ;    2       Backup 
  82. ;
  83. ;
  84. ; ■ Functions used :
  85. ;
  86. ;    1       +
  87. ;    1       -
  88. ;    10      ==
  89. ;    1       >
  90. ;    8       !
  91. ;    3       &&
  92. ;    5       Len(
  93. ;    1       Left()
  94. ;    1       Space()
  95. ;    1       Asc()
  96. ;    1       Inkey()
  97. ;
  98. ;------------------------------------------------------------------------------
  99. ;
  100. ; Analysis flags : No flag
  101. ;
  102. ;------------------------------------------------------------------------------
  103. ;
  104. ; Postprocessing report
  105. ;
  106. ;    0       For/Next
  107. ;    1       While/EndWhile
  108. ;    6       If/Then or If/Then/Else
  109. ;    0       Select Case
  110. ;
  111. ;------------------------------------------------------------------------------
  112. ;                 AEGiS Corp - Break the routines, code against the machines!
  113. ;------------------------------------------------------------------------------
  114.