33 STACKS, QUEUES, AND REAL-WORLD OBJECTS

In this chapter, I’ll build two more Batch data structures from scratch: stacks and queues. Both hold a finite set of ordered values, with the only difference being that stacks fit the last-in-first-out paradigm, while queues are first-in-first-out. I’ll detail both data structures in general and demonstrate how to build their unique functionalities. And of course, you’ll learn applications of these new tools, even a Batch pseudo-compiler of other bat files.

However, this chapter is as much about real-world Batch objects as it’s about stacks and queues. I’ll also use what you learned in the previous ...

Get The Book of Batch Scripting now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.