https://github.com/caged/pine
Basic arithmetic language for woodworking in imperial units.
https://github.com/caged/pine
Last synced: 12 months ago
JSON representation
Basic arithmetic language for woodworking in imperial units.
- Host: GitHub
- URL: https://github.com/caged/pine
- Owner: caged
- Created: 2023-09-26T19:24:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-22T20:19:08.000Z (over 2 years ago)
- Last Synced: 2025-03-13T15:19:15.410Z (over 1 year ago)
- Language: JavaScript
- Size: 162 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
List of expressions we should parse
### Individual values
- [x] 1
- [x] 1"
- [x] 1'
- [ ]
- [x] 1/2
- [x] 1/2"
- [ ] 1/2'
- [ ]
- [ ]
- [x] 1 1/2
- [x] 1 1/2"
- [x] 1 1/2'
- [ ] 1" 1/2 ??
- [x] 1' 1/2
- [x] 1' 1/2"
- [x] 1' 1"
### Assumed inches
```
1 = 1 inch
1/2 = 1/2 inch
2 1/2 = 2 1/2 inches
```
### Prime marks
```
1' = 1 foot
4 1/2" = 4 1/2 inches
4 1/2' = 4 1/2 feet
2' 6" = 2 feet 6 inches
2' 3" = 2 feet 3 inches
```
### Arithmetic
```
1/2 + 1/2 = 1 inch
3' + 3' = 6 feet
3' + 3" = 3 feet 3 inches
3 1/2' + 3 1/2' = 7 feet
3 1/2' + 2 1/2" = 3 feet 8 1/2 inches
```