ylex example
Posted to
tcl
by colin at Thu Jan 03 07:48:09 GMT 2013
view raw
$sg
add {
[0-9]+ {
return
[
list
NUMBER
$yytext
] }
{\+} {
return
PLUS }
{-} {
return
MINUS }
{\*} {
return
MULTIPLY }
{/} {
return
DIVIDE }
{\(} {
return
OPEN }
{\)} {
return
CLOSE }
}
Recent Posts
tcl by arjen
3 days ago
tcl by cgm
13 days ago
tcl by cgm
13 days ago
tcl by alan
20 days ago
tcl by mookie
42 days ago
tcl by mookie
42 days ago
tcl by mookie
42 days ago
tcl by schelte
44 days ago
tcl by oldlaptop
56 days ago
tcl by oldlaptop
60 days ago
Submit
New paste
Documentation
From Jabber