Coder Social home page Coder Social logo

formulortranslator's Introduction

FormulorTranslator

数学公式排版语言:参照 MathJax 及 Latex

一、 符号集

小写字母:a..z,A..Z

数字:0..9

特殊符号:\、(、)、{、}、_、^、$

分隔符:空格、换行

二、 记号定义

标识符:由字母开始,由字母和数字组成,显示为斜体

数字:无符号整型数,显示为普通字体

三、 语言规则

  1. 句子: $α$

  2. 上下标: 上标^{α},下标_{α},上下标同时有用_^{α}{β}其中 α 是下标,β 是上标。

  3. 括号: 仅使用()嵌套。

  4. 空格: \blank

  5. 大型运算: 积分:\int{α}{β}{γ} 累加:\sum{α}{β}{γ} 其中 α 是下限,β 是上限,γ 是运算内容。

四、 基础文法

S -> $B$

B -> BB

B-> B_^{B}{B}

B -> B^{B}

B -> B_{B}

B- > \int{B}{B}{B}

B -> \sum{B}{B}{B}

B -> id | num | \blank | (B)

五、 输入输出

输入:文本文件,一个输入文件中仅包含一个公式。 样例文件文件名:sample??.txt, 测试文件文件名:test??.txt

输出:超文本标记语言文件。 样例文件文件名:sample??.html, 测试文件文件名:test??.html

formulortranslator's People

Contributors

climber1605 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.