2/22/23
Grammar : Syntax; formats; etc...
Parsing
- Non-deterministic - essentially, doesn't end (the file parsing we did)
- Deterministic - Fixed format
| function main(workbook: ExcelScript.Workbook) | |
| { | |
| const days = workbook.getWorksheet("days"); | |
| const out = workbook.getWorksheet("out"); | |
| const dayRange: ExcelScript.Range = days.getRange("A2:B71"); // first sem | |
| const outRange: ExcelScript.Range = out.getRange(); // whole sheet | |
| let outIndex = 1; | |
| import java.io.*; | |
| /** | |
| * @author John Godman | |
| * Simple file token parser. | |
| */ | |
| public class Main | |
| { | |
| public static final int BUF_SIZE = 80, |
| #!/bin/bash | |
| FILE="${FILE:-"/etc/login.defs"}" | |
| sed -i "s/^[^#]*PASS_MAX_DAYS.*$/PASS_MAX_DAYS 90/" "${FILE}" | |
| sed -i "s/^[^#]*PASS_MIN_DAYS.*$/PASS_MIN_DAYS 7/" "${FILE}" | |
| sed -i "s/^[^#]*PASS_WARN_AGE.*$/PASS_WARN_AGE 14/" "${FILE}" |
| /** | |
| * STRAZZA Pd. 8 | |
| * PGM 4 | |
| * @author john | |
| * @see Coffee | |
| */ | |
| public class Barista | |
| { /** | |
| * Input of coffee orders in an array. Graded data from Strazza. | |
| */ |
| public class PrimeyTimey | |
| { | |
| /* John Godman - Program 2 | |
| * Strazza Pd. 8 | |
| */ | |
| // configuration constants | |
| public static final int START = 2, | |
| END = 250; |