/itexToMML

To download this project, use:
bzr branch http://golem.ph.utexas.edu/~distler/code/itexToMML/

« back to all changes in this revision

Viewing changes to itex-src/itex2MML.l

  • Committer: Jacques Distler
  • Date: 2011-10-28 05:23:00 UTC
  • Revision ID: distler@golem.ph.utexas.edu-20111028052300-jl4774z4aq66jr38
Tags: 1.4.9
itex2MML 1.4.9: improved optarg parsing

Thanks to Andrew Stacey

Show diffs side-by-side

added added

removed removed

1
 
/*             itex2MML 1.4.8
2
 
 *   itex2MML.l last modified 9/21/2011
 
1
/*             itex2MML 1.4.9
 
2
 *   itex2MML.l last modified 10/27/2011
3
3
 */
4
4
 
5
5
%{
936
936
 
937
937
<OPTARG>{
938
938
"[" {if(itex2MML_optarg_ind < itex2MML_optarg_depth - 1 && itex2MML_inoptarg[itex2MML_optarg_ind] !=1 ){itex2MML_optarg_ind++; itex2MML_inoptarg[itex2MML_optarg_ind]=1;}; BEGIN(MATH); return OPTARGOPEN;}
 
939
[\n\r\t ]+    ;
939
940
.   {BEGIN(MATH); unput(yytext[0]);}
940
941
}
941
942