summaryrefslogtreecommitdiffstats
path: root/dev/a4-dance/simple_parser.h
diff options
context:
space:
mode:
authorKT <tran0563@umn.edu>2021-09-06 19:07:33 -0500
committerKT <tran0563@umn.edu>2021-09-06 19:07:33 -0500
commitcccd3186305915d92b1751dc616979d64116a4aa (patch)
tree5dd4834daef547cd45fc0b643f44a10b581de0ad /dev/a4-dance/simple_parser.h
parentAdded missing images for the A6 worksheet (diff)
downloadcsci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar
csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.gz
csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.bz2
csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.lz
csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.xz
csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.zst
csci4611-cccd3186305915d92b1751dc616979d64116a4aa.zip
Upload a1
Diffstat (limited to 'dev/a4-dance/simple_parser.h')
-rw-r--r--dev/a4-dance/simple_parser.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/dev/a4-dance/simple_parser.h b/dev/a4-dance/simple_parser.h
deleted file mode 100644
index b077b43..0000000
--- a/dev/a4-dance/simple_parser.h
+++ /dev/null
@@ -1,42 +0,0 @@
-#ifndef SIMPLE_PARSER_H_
-#define SIMPLE_PARSER_H_
-
-#include <fstream>
-#include <string>
-
-/** Helper class for parsing text input. */
-class SimpleParser {
-public:
- SimpleParser(std::istream *i);
-
- bool Expect(std::string s);
-
- bool Peek(std::string s);
-
- void SwallowWhitespace();
-
- void SwallowLine();
-
- bool ReadFloat(float &f);
-
- bool ReadInt(int &i);
-
- bool ReadToken(std::string &s);
-
- bool Good();
-
- bool ReadLine(std::string &line);
-
- bool UpcomingInt();
-
-protected:
- bool FloatChar(char c);
-
- bool IntChar(char c);
-
- bool TokenChar(char c);
-
- std::istream *in_;
-};
-
-#endif