Skip to content

Commit f5f7505

Browse files
committed
Display tweaks
1 parent 2256b39 commit f5f7505

4 files changed

Lines changed: 17 additions & 31 deletions

File tree

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="utf-8">
5-
<link rel="stylesheet" href="web/styles.css"></link>
5+
<link rel="stylesheet" href="web/styles.css"/>
66
<script src="valence.lexicon.js"></script>
77
<script src="valence.scanner.js"></script>
88
<script src="valence.parser.js"></script>

readme.md

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ There is no single line of Valence that isn't valid; any combination of the sign
1212

1313
## Project Status
1414

15-
The parser is functional but not finalized. While testing continues, the grammar may change.
15+
Feel free to open issues or add failing tests for anything not already there. Here are the major things still in progress.
1616

1717
IN PROGRESS:
18-
* Support for queue type in interpreter
18+
* INPUT (currently non-functional)
1919
* Support for TRADE OPERATION in the interpreter
20-
* Some valid readings are not generated by the Parser, mostly with heavy use of brackets
21-
* Bug fixes for casting
20+
* Full testing of Queue and casting
21+
* Some display fixes
2222

2323
## Instructions
2424

@@ -35,47 +35,45 @@ symbol | typed as | interpretation | type | params
3535
| | | add_assign | cmd | 2 (var, exp)
3636
𐆇 | w | 1 | octal digit | 0
3737
| | | 𐆇 | var | 0
38-
| | | to_int | exp | 1 (digit)
39-
| | | sub | exp | 2 (exp, exp)
38+
| | | read_as_digit | exp | 1 (digit)
39+
| | | subtract | exp | 2 (exp, exp)
4040
| | | if | cmd | 1 (exp)
41-
| | | sub_assign | cmd | 2 (var, exp)
41+
| | | while_queue | cmd | 2 (var, exp)
4242
𐅾 | e | 2 | octal digit | 0
4343
| | | 𐅾 | var | 0
44-
| | | ratio | type | 0
4544
| | | read_as_var | exp | 1 (var)
4645
| | | div | exp | 2 (exp, exp)
4746
| | | end block | cmd | 0
4847
| | | goto | cmd | 1 (exp)
49-
| | | randomize | cmd | 2 (var, range)
48+
| | | trade_op | cmd | 2 (var, range): CURRENTLY IN PROGRESS
5049
𐆋 | a | 3 | octal digit | 0
5150
| | | 𐆋 | var | 0
52-
| | | to_str | exp | 1 (exp)
51+
| | | queue | type | 0
5352
| | | equals | exp | 2 (exp, exp)
5453
| | | print | cmd | 1 (exp)
55-
| | | for | cmd | 2 (var, range)
5654
𐆉 | s | 4 | octal digit | 0
5755
| | | string | type | 0
58-
| | | null | exp | 0
5956
| | | int_or_floor | exp | 1 (exp)
60-
| | | value | exp | 2 (type, exp)
57+
| | | cast | exp | 2 (type, exp)
6158
| | | label | cmd | 1 (var)
6259
| | | assign | cmd | 2 (var, exp)
6360
𐅻 | d | 5 | octal digit | 0
6461
| | | 𐅻 | var | 0
6562
| | | char | type | 0
66-
| | | mod | exp | 2 (exp, exp)
63+
| | | mult_by_eight | exp | 1 (exp)
64+
| | | get_element (from queue) | exp | 2 (exp, exp)
6765
| | | jump | cmd | 1 (exp)
6866
| | | append | cmd | 2 (var, exp)
6967
𐆊 | z | 6 | octal digit | 0
7068
| | | 𐆊 | var | 0
71-
| | | greater_zero | exp | 1 (exp)
69+
| | | bool | type | 0
7270
| | | or | exp | 2 (exp, exp)
7371
| | | else | cmd | 0
7472
| | | else_if | cmd | 1 (exp)
75-
| | | assign | cmd | 2 (var, exp)
7673
𐆁 | x | 7 | octal digit | 0
7774
| | | 𐆁 | var | 0
78-
| | | random | exp | 1 (range)
75+
| | | ratio | type | 0
76+
| | | dequeue | var | 1
7977
| | | mul | exp | 2 (exp, exp)
8078
| | | input | cmd | 1 (var)
8179
| | | mul_assign | cmd | 2 (var, exp)

valence.lexicon.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,6 @@ Valence.lexicon = {
174174
type: "cmd",
175175
params: [{type: "exp"}],
176176
js: "print({exp})"
177-
// },
178-
// {
179-
// name: "queue_value",
180-
// type: "cmd",
181-
// params: [{type: "var"},{type: "exp"}],
182-
// js: "{var} QUEUE {exp}"
183177
}
184178
],
185179
'𐆉': [
@@ -294,13 +288,6 @@ Valence.lexicon = {
294288
params: [],
295289
js: "bool"
296290
},
297-
298-
// {
299-
// name: "get_element",
300-
// type: "exp",
301-
// params: [{type: "exp"}],
302-
// js: "get_z_element({exp})"
303-
// },
304291
{
305292
name: "or",
306293
type: "exp",

web/styles.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ body {
108108
}
109109
.status-item-var {
110110
color: var(--var);
111+
font-family: "Symbola";
111112
}
112113

113114
/* .status-item-value-changed */

0 commit comments

Comments
 (0)