fix -n flag

This commit is contained in:
NunoSempere 2024-08-09 11:33:14 -04:00
parent b665262e33
commit 0fb2e7acb3
2 changed files with 3 additions and 1 deletions

View File

@ -173,6 +173,8 @@ Done:
To (possibly) do:
- [ ] Add flag to repeat input lines (useful when reading from files)
- [ ] Make -n flag work
- [ ] Add functions. Now easier to do with an explicit representation of the stakc
- [ ] Think about how to draw a histogram from samples
- [ ] Dump samples to file

View File

@ -411,9 +411,9 @@ replForLoop:
func main() {
num_samples_flag := flag.Int("n", N_SAMPLES, "Specifies the number of samples to draw when using samples")
N_SAMPLES = *num_samples_flag
filename := flag.String("f", "", "Specifies a file with a model to run")
flag.Parse()
N_SAMPLES = *num_samples_flag
var reader *bufio.Reader = nil
if *filename != "" {