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 egavilan
8 days ago
tcl by bch
14 days ago
tcl by Bradipo
14 days ago
tcl by aspect
14 days ago
tcl by Bradipo
14 days ago
tcl by Bradipo
14 days ago
tcl by Bradipo
14 days ago
lilypond by Bradipo
15 days ago
tcl by cgm
26 days ago
tcl by dandyn
34 days ago
Submit
New paste
Documentation
From Jabber