简体   繁体   中英

Apache POI or Excel formula grammar

Is there somewhere a formal definition of the grammar of the formulas parsed by Apache POI, or by Excel? If there isn't, I would be content with a list of all the operators supported by Apache POI. This question here how to get the excel workbook mathematical operators using apache poi 3.6? contains a list of all the supported functions (which is great, I also need that intel), but what I'm asking is about the operators (you know, +, -, and what else?)... and anything else that can appear in the formula (parenthesis, curly braces, commas, semicolons, etc).

But if anyone can provide a formal definition of the grammar (BNF, maybe), it would be awesome.

Promoting a comment to an answer...

Your best bet is probably Chapter 3 (Formulas) of the OpenOffice guide to the Excel file format

Alternately, you could look at section 2.2.2 (Formulas) of the Microsoft .xls file format doc ( pdf ), but the Microsoft docs don't seem to be as helpfully laid out for what you're after

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM