Re: [Tutor] Splitting strings into blocks

2006-05-01 Thread Kent Johnson
Kent Johnson wrote: > For a general parser of LaTex expressions you will want to use a parsing > package. I have found pyparsing to be pretty easy to use but there are > many others. Someone may have solved this problem already. Googling 'python latex parser' gives some interesting hits includin

Re: [Tutor] Splitting strings into blocks

2006-05-01 Thread Kent Johnson
Daniel Watkins wrote: > Hi list, > I'm currently working on a program to parse LaTeX style maths expressions and > provide an answer. For example, I have the expression "2^\frac{1}{2}". I'm > trying to work out a way to split this into it's most basic blocks of LaTeX > (i.e. 2^ and \frac{1}{2})

Re: [Tutor] Splitting strings into blocks

2006-04-30 Thread Danny Yoo
On Sun, 30 Apr 2006, Daniel Watkins wrote: > I'm currently working on a program to parse LaTeX style maths > expressions and provide an answer. For example, I have the expression > "2^\frac{1}{2}". I'm trying to work out a way to split this into it's > most basic blocks of LaTeX (i.e. 2^ and

[Tutor] Splitting strings into blocks

2006-04-30 Thread Daniel Watkins
Hi list, I'm currently working on a program to parse LaTeX style maths expressions and provide an answer. For example, I have the expression "2^\frac{1}{2}". I'm trying to work out a way to split this into it's most basic blocks of LaTeX (i.e. 2^ and \frac{1}{2}) while maintaining a record of th