repo oops
This commit is contained in:
parent
8faa02f7f7
commit
d38f53208b
4 changed files with 40 additions and 26 deletions
37
pkg/shsh/parsers.go
Normal file
37
pkg/shsh/parsers.go
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
// TODO: think about package names
|
||||
// Should we have one for all our code?
|
||||
package shsh
|
||||
|
||||
import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
/*
|
||||
* LIST: a list of elements
|
||||
* OPERAND: a string or number
|
||||
* OPERATOR: an entry in a symtable
|
||||
* OPERATION: a list starting with an operator
|
||||
*/
|
||||
type parse_tag int
|
||||
const (
|
||||
LIST_T parse_tag = iota
|
||||
OPERAND_T parse_tag = iota
|
||||
OPERATOR_T parse_tag = iota
|
||||
OPERATION_T parse_tag = iota
|
||||
)
|
||||
|
||||
func Parse(arg *Token) {
|
||||
|
||||
}
|
||||
|
||||
func string_delimiters_valid(arg string) bool {
|
||||
|
||||
}
|
||||
|
||||
func list_is_operation(arg *Token) bool {
|
||||
|
||||
}
|
||||
|
||||
func string_is_operator(arg string) bool {
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue