- Notifications
You must be signed in to change notification settings - Fork28
Go Language Microsoft Excel™ Formula Parser
License
NotificationsYou must be signed in to change notification settings
xuri/efp
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Using EFP (Excel Formula Parser) you can get an Abstract Syntax Tree (AST) from Excel formula.
go get github.com/xuri/efp
package mainimport"github.com/xuri/efp"funcmain() {ps:=efp.ExcelParser()ps.Parse("=SUM(A3+B9*2)/2")println(ps.PrettyPrint())}
Get AST
SUM <Function> <Start> A3 <Operand> <Range> + <OperatorInfix> <Math> B9 <Operand> <Range> * <OperatorInfix> <Math> 2 <Operand> <Number> <Function> <Stop>/ <OperatorInfix> <Math>2 <Operand> <Number>
Contributions are welcome! Open a pull request to fix a bug, or open an issue to discuss a new feature or change.
EFP (Excel Formula Parser) is a Go language port of E. W. Bachtal's Excel formula parser.
This program is under the terms of the BSD 3-Clause License. Seehttps://opensource.org/licenses/BSD-3-Clause.
About
Go Language Microsoft Excel™ Formula Parser
Topics
Resources
License
Code of conduct
Security policy
Stars
Watchers
Forks
Releases
No releases published