Look at the chapter in the Basic Stamp Syntax and Reference Manual on the SHIFTOUT statement. It has all the information you need to send data to a shift register like the 74LS174. There are further examples in the StampWorks Manual based on other shift registers.
The BS2 can interface directly to a parallel LCD like the one you've shown and there are examples in the Nuts and Volts Columns of how to do so, but you are on your own in using a shift register to save I/O pins. It's not much more complicated to use a shift register, but you'll have to work it out yourself using existing LCD code as a basis. There are no ready-to-go examples.
Comments
The BS2 can interface directly to a parallel LCD like the one you've shown and there are examples in the Nuts and Volts Columns of how to do so, but you are on your own in using a shift register to save I/O pins. It's not much more complicated to use a shift register, but you'll have to work it out yourself using existing LCD code as a basis. There are no ready-to-go examples.