mirror of
git://projects.qi-hardware.com/fped.git
synced 2025-04-21 12:27:27 +03:00
Added debugging directives to the fped language. They're describe at the end
of README.
- fpd.l, fpd.y, README: added debugging directives %del, %move, %print, %dump,
and %exit
- obj.h, fpd.y (find_obj, find_label, new_obj): objects can now be labeled
- obj.c (obj_anchors), inst.c (inst_anchors): gathering the list of anchors is
now a per-object function, not an instance "method". inst_anchors implements
the vector vs. object switch.
- inst.h, inst.c: removed all *_op_anchors functions
- expr.c (str_unit): in the past, we returned a malloc'ed string, but these
times are long gone. Thus, don't stralloc("").
git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5919 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
11
fpd.l
11
fpd.l
@@ -121,6 +121,17 @@ SP [\t ]*
|
||||
<INITIAL>"unit" { BEGIN(NOKEYWORD);
|
||||
return TOK_UNIT; }
|
||||
|
||||
<INITIAL>"%del" { BEGIN(NOKEYWORD);
|
||||
return TOK_DBG_DEL; }
|
||||
<INITIAL>"%move" { BEGIN(NOKEYWORD);
|
||||
return TOK_DBG_MOVE; }
|
||||
<INITIAL>"%print" { BEGIN(NOKEYWORD);
|
||||
return TOK_DBG_PRINT; }
|
||||
<INITIAL>"%dump" { BEGIN(NOKEYWORD);
|
||||
return TOK_DBG_DUMP; }
|
||||
<INITIAL>"%exit" { BEGIN(NOKEYWORD);
|
||||
return TOK_DBG_EXIT; }
|
||||
|
||||
<INITIAL>[a-zA-Z_][a-zA-Z_0-9]*: { *strchr(yytext, ':') = 0;
|
||||
yylval.id = unique(yytext);
|
||||
return LABEL; }
|
||||
|
||||
Reference in New Issue
Block a user