Documentation
¶
Index ¶
- Variables
- func ANDMatcher(group string, subgroups []string) interface{}
- func ChoiceMatcher(group string, subgroups []string) interface{}
- func ConsentMatcher(group string, subgroups []string) interface{}
- func CoreCompletionMatcher(group string, subgroups []string) interface{}
- func CoreMatcher(group string, subgroups []string) interface{}
- func CourseMatcher(group string, subgroups []string) interface{}
- func CourseMinGradeMatcher(group string, subgroups []string) interface{}
- func GPAMatcher(group string, subgroups []string) interface{}
- func GroupTagMatcher(group string, subgroups []string) interface{}
- func LimitMatcher(group string, subgroups []string) interface{}
- func MajorMatcher(group string, subgroups []string) interface{}
- func MajorMinorMatcher(group string, subgroups []string) interface{}
- func MinorMatcher(group string, subgroups []string) interface{}
- func ORMatcher(group string, subgroups []string) interface{}
- func OtherMatcher(group string, subgroups []string) interface{}
- func Parse(inDir string, outDir string, csvPath string, skipValidation bool)
- func ParseAstra(inDir string, outDir string)
- func ParseMazevo(inDir string, outDir string)
- func SubstitutionMatcher(parseFnc func(string, []string) interface{}) func(string, []string) interface{}
- func ThrowawayMatcher(group string, subgroups []string) interface{}
- type InputData
- type Matcher
- type SourceData
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Sections dictionary for mapping UUIDs to a *schema.Section Sections = make(map[primitive.ObjectID]*schema.Section) // Courses dictionary for keys (Internal_course_number + Catalog_year) to a *schema.Course Courses = make(map[string]*schema.Course) // Professors dictionary for keys (First_name + Last_name) to a *schema.Professor Professors = make(map[string]*schema.Professor) //CourseIDMap auxiliary dictionary for mapping UUIDs to a *schema.Course CourseIDMap = make(map[primitive.ObjectID]string) //ProfessorIDMap auxiliary dictionary for mapping UUIDs to a *schema.Professor ProfessorIDMap = make(map[primitive.ObjectID]string) // ReqParsers dictionary mapping course UUIDs to the func() that parsers its Reqs ReqParsers = make(map[primitive.ObjectID]func()) // GradeMap mappings for section grade distributions, mapping is MAP[SEMESTER] -> MAP[SUBJECT + NUMBER + SECTION] -> GRADE DISTRIBUTION GradeMap map[string]map[string][]int )
View Source
var ANDRegex = regexp.MustCompile(`(?i)\s+and\s+`)
View Source
var Matchers []Matcher
Matcher container, matchers must be in order of precedence NOTE: PARENTHESES ARE OF HIGHEST PRECEDENCE! (This is due to groupParens() handling grouping of parenthesized text before parsing begins)
View Source
var ORRegex = regexp.MustCompile(`(?i)\s+or\s+`)
Functions ¶
func ANDMatcher ¶
func ChoiceMatcher ¶
func ConsentMatcher ¶
func CoreCompletionMatcher ¶
func CoreMatcher ¶
func CourseMatcher ¶
func CourseMinGradeMatcher ¶
func GPAMatcher ¶
func GroupTagMatcher ¶
func LimitMatcher ¶
func MajorMatcher ¶
func MajorMinorMatcher ¶
func MinorMatcher ¶
func OtherMatcher ¶
func ParseAstra ¶
func ParseMazevo ¶
func SubstitutionMatcher ¶
func ThrowawayMatcher ¶
Types ¶
type InputData ¶
type InputData struct { Fields string `json:"fields"` Data [][]interface{} `json:"data"` }
type SourceData ¶
type SourceData struct {
Bookings []map[string]interface{} `json:"bookings"`
}
Click to show internal directories.
Click to hide internal directories.