From: ian Date: Wed, 30 Jan 2008 22:53:22 +0000 (+0000) Subject: clearer ordering and allow trains called "has" (!) X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=0053559ead90e04d8a97c8e0f650c42bc77302f3;p=trains.git clearer ordering and allow trains called "has" (!) --- diff --git a/hostside/record-y.y b/hostside/record-y.y index 5ba3d1c..ff906fc 100644 --- a/hostside/record-y.y +++ b/hostside/record-y.y @@ -12,7 +12,7 @@ int num; } -%token TRAIN SEG IS AT HAS STEP END IDENT +%token TRAIN SEG IS AT HAS STEP END IDENT %token NL %token NUM @@ -51,7 +51,7 @@ line: /* empty */ backwards: /* empty */ { return 0; } | '-' { return 1; } -ident: IDENT | TRAIN | SEG | IS | AT | STEP | END +ident: TRAIN | SEG | IS | AT | HAS | STEP | END | IDENT seg: ident { $$= record_pname2seg($1); } train: ident { $$= record_pname2train($1); }