Rewrite dining parser in TypeScript #21

Merged
hdavidethan merged 19 commits from dchwang/rewrite-parser into master 2022-07-19 05:58:00 +00:00
hdavidethan commented 2022-07-19 05:26:47 +00:00 (Migrated from github.com)

Rewrote the entire parser in TypeScript and fixed the parsing issues introduced in the summer.

image
Rewrote the entire parser in TypeScript and fixed the parsing issues introduced in the summer. <img width="1389" alt="image" src="https://user-images.githubusercontent.com/17174688/179671829-3432c7fa-e6ee-4d05-80d2-b00a90759517.png">
gramliu (Migrated from github.com) requested changes 2022-07-19 05:42:33 +00:00
@ -0,0 +30,4 @@
/**
* For building the location data structure
*/
export default class LocationBuilder {
gramliu (Migrated from github.com) commented 2022-07-19 05:30:49 +00:00

Can you add a brief high-level description of what each class is for?

Can you add a brief high-level description of what each class is for?
@ -0,0 +50,4 @@
this.conceptId = conceptId;
}
setName(name: string): LocationBuilder {
gramliu (Migrated from github.com) commented 2022-07-19 05:29:28 +00:00

Excellent use of the Builder pattern 😎

Excellent use of the Builder pattern 😎
@ -0,0 +1,63 @@
import ParsedTimeBase from "./parsedTimeBase";
gramliu (Migrated from github.com) commented 2022-07-19 05:35:04 +00:00

Maybe replace this with property getters

Maybe replace this with [property getters](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get)
@ -0,0 +1,15 @@
import type { TimeInfoType } from "../../utils/timeUtils";
gramliu (Migrated from github.com) commented 2022-07-19 05:39:38 +00:00

getter here

getter here
@ -0,0 +1,41 @@
import {
gramliu (Migrated from github.com) commented 2022-07-19 05:39:45 +00:00

getter here

getter here
gramliu (Migrated from github.com) approved these changes 2022-07-19 05:57:30 +00:00
gramliu (Migrated from github.com) left a comment

image

![image](https://user-images.githubusercontent.com/24856195/179676032-c8291730-8064-4ca4-9359-f08e4d3d18eb.png)
Sign in to join this conversation.
No description provided.