This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This is a parser for the precedence climbing grammar: | |
* | |
* E --> Exp(0) | |
* Exp(p) --> P {B Exp(q)} | |
* P --> U Exp(q) | "(" E ")" | v | |
* B --> "+" | "-" | "*" |"/" | "^" | "||" | "&&" | "=" | |
* U --> "-" | |
* | |
* Where successive B are selected according to the precedence p of the parameterized expression Exp(p). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
- 6425 a19c 0001 0003 0000 0000 5554 0500 d%??........UT.. | |
- 011c 2f38 53 ../8S |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>ASCII to Binary</title> | |
<style> | |
body { | |
background-color: black; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.util.Comparator; | |
import java.util.List; | |
import java.util.Objects; | |
import java.util.Stack; | |
import java.util.regex.Pattern; | |
public class Day15 { |