Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /trunk/src/compiler/parser/diderot.lex
ViewVC logotype

Diff of /trunk/src/compiler/parser/diderot.lex

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2355, Sun Apr 7 11:35:08 2013 UTC revision 2356, Sun Apr 7 14:45:25 2013 UTC
# Line 75  Line 75 
75    
76  %states INITIAL STRING COM1 COM2;  %states INITIAL STRING COM1 COM2;
77    
 %let letter = [a-zA-Z];  
78  %let dig = [0-9];  %let dig = [0-9];
79  %let num = {dig}+;  %let num = {dig}+;
80  %let hexdigit = [0-9a-fA-F];  %let hexdigit = [0-9a-fA-F];
81  %let hexnum = "0x"{hexdigit}+;  %let hexnum = "0x"{hexdigit}+;
82    %let greek = [αβγζηθλμξπρστφψω];
83    %let letter = [a-zA-Z]|{greek};
84  %let idchar = {letter}|{dig}|"_"|"'";  %let idchar = {letter}|{dig}|"_"|"'";
85  %let id = {letter}{idchar}*;  %let id = {letter}{idchar}*;
86  %let ws = " "|[\t\n\v\f\r];  %let ws = " "|[\t\n\v\f\r];
# Line 108  Line 109 
109  <INITIAL> "∇•"              => (T.OP_Ddot);         (* u2207, u2022 *)  <INITIAL> "∇•"              => (T.OP_Ddot);         (* u2207, u2022 *)
110  <INITIAL> "∇⋅"              => (T.OP_Ddot);         (* u2207, u22c5 *)  <INITIAL> "∇⋅"              => (T.OP_Ddot);         (* u2207, u22c5 *)
111  <INITIAL> "∇⊗"              => (T.OP_Dotimes);      (* u2207, u2297 *)  <INITIAL> "∇⊗"              => (T.OP_Dotimes);      (* u2207, u2297 *)
112  <INITIAL> "∇×"               => (T.OP_Dtimes);       (* u2207, u00d7 *)  <INITIAL> "∇×"          => (T.OP_curl);         (* u2207, u00d7 *)
113  <INITIAL> "∇"         => (T.OP_D);            (* u2207 *)  <INITIAL> "∇"         => (T.OP_D);            (* u2207 *)
114  <INITIAL> "•"         => (T.OP_dot);          (* u2022 *)  <INITIAL> "•"         => (T.OP_dot);          (* u2022 *)
115  <INITIAL> "⋅"         => (T.OP_dot);          (* u22c5 *)  <INITIAL> "⋅"         => (T.OP_dot);          (* u22c5 *)

Legend:
Removed from v.2355  
changed lines
  Added in v.2356

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0