2020-12-09 01:30:21 +00:00
|
|
|
# Titan Robotics Team 2022: Expression submodule
|
|
|
|
# Written by Arthur Lu
|
|
|
|
# Notes:
|
|
|
|
# this should be imported as a python module using 'from tra_analysis.Equation import parser'
|
|
|
|
# setup:
|
|
|
|
|
|
|
|
__version__ = "0.0.4-alpha"
|
|
|
|
|
|
|
|
__changelog__ = """changelog:
|
|
|
|
0.0.4-alpha:
|
2020-12-09 03:56:22 +00:00
|
|
|
- moved individual parsers to their own files
|
2020-12-09 01:30:21 +00:00
|
|
|
0.0.3-alpha:
|
|
|
|
- readded old regex based parser as RegexInplaceParser
|
|
|
|
0.0.2-alpha:
|
|
|
|
- wrote BNF using pyparsing and uses a BNF metasyntax
|
|
|
|
- renamed this submodule parser
|
|
|
|
0.0.1-alpha:
|
|
|
|
- took items from equation.ipynb and ported here
|
|
|
|
"""
|
|
|
|
|
|
|
|
__author__ = (
|
|
|
|
"Arthur Lu <learthurgo@gmail.com>",
|
|
|
|
)
|
|
|
|
|
|
|
|
__all__ = {
|
|
|
|
"BNF",
|
2020-12-09 03:56:22 +00:00
|
|
|
"RegexInplaceParser",
|
|
|
|
"HybridExpressionParser"
|
2020-12-09 01:30:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
from .BNF import BNF as BNF
|
2020-12-09 03:56:22 +00:00
|
|
|
from .RegexInplaceParser import RegexInplaceParser as RegexInplaceParser
|
|
|
|
from .Hybrid import HybridExpressionParser
|
|
|
|
from .Hybrid_Utils import equation_base, Core
|