Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,6 @@ jobs:
- name: Build
run: go build -v .

- name: Build on ARM and RISC-V
if: runner.os == 'Linux'
run: |
GOARCH=arm GOARM=5 go build .
GOARCH=arm GOARM=6 go build .
GOARCH=arm GOARM=7 go build .
GOARCH=arm64 go build .
GOARCH=arm64 GOOS=android go build .
GOARCH=riscv64 go build .

- name: Test
run: go test -v -race -coverprofile='coverage.txt' -covermode=atomic ./...

Expand Down
6 changes: 5 additions & 1 deletion efp.go
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,11 @@ func (ps *Parser) getTokens() Tokens {

if (token.TType == TokenTypeOperatorInfix) && (len(token.TValue) == 1 && token.TValue[0] == '+') {
if tokens2.BOF() {
token.TType = TokenTypeNoop
if tokens2.EOF() {
token.TType = TokenTypeNoop
} else {
token.TSubType = TokenSubTypeMath
}
} else if (tokens2.previous().TType == TokenTypeFunction) && (tokens2.previous().TSubType == TokenSubTypeStop) || ((tokens2.previous().TType == TokenTypeSubexpression) && (tokens2.previous().TSubType == TokenSubTypeStop) || (tokens2.previous().TType == TokenTypeOperatorPostfix) || (tokens2.previous().TType == TokenTypeOperand)) {
token.TSubType = TokenSubTypeMath
} else {
Expand Down
1 change: 1 addition & 0 deletions efp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func TestEFP(t *testing.T) {
`=1 ''`,
`=10*2^(2*(1+1))% (=10.28114; % has greater precedence than ^)`,
`=2+(10*2^(2*(1+1)+SUM(A2)))*3 (who knows, but you'll push and pop here multiple times)`,
`'C:\Docs\Book[A-B.XLS]C-D'!$BC14`,
// E. W. Bachtal's test formulae
`=IF(P5=1.0,"NA",IF(P5=2.0,"A",IF(P5=3.0,"B",IF(P5=4.0,"C",IF(P5=5.0,"D",IF(P5=6.0,"E",IF(P5=7.0,"F",IF(P5=8.0,"G"))))))))`,
`={SUM(B2:D2*B3:D3)}`,
Expand Down