Difference between revisions of "Sum Scan With Pattern Matching Assignment"

From CSE425S Wiki
Jump to navigation Jump to search
(Created page with "Sum_Scan_Assignment")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Sum_Scan_Assignment]]
+
Reimplement [[Sum_Scan_Assignment|Sum Scan]] with pattern matching.
 +
 
 +
=Code to Implement=
 +
{{SMLToImplement|sum_scan_pattern|sum_scan|warmup_sum_scan_pattern}}
 +
 
 +
=Test=
 +
{{SMLUnitTesting|run_sum_scan_pattern_testing|warmup_sum_scan_pattern}}

Latest revision as of 03:56, 5 September 2022

Reimplement Sum Scan with pattern matching.

Code to Implement

file: src/main/sml/warmup_sum_scan_pattern/sum_scan_pattern.sml Smlnj-logo.png
functions: sum_scan

Test

source folder: src/test/sml/warmup_sum_scan_pattern
how to run with CM.make verbosity off: sml -Ccm.verbose=false run_sum_scan_pattern_testing.sml
how to run with CM.make verbosity on: sml run_sum_scan_pattern_testing.sml

note: ensure that you have removed all printing to receive credit for any assignment.

SML Error Messages