Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 166d26471a
Fetching contributors…

Cannot retrieve contributors at this time

57 lines (48 sloc) 0.925 kb
%include {
#include <stdio.h>
#include <assert.h>
}
%token_type {const char*}
%syntax_error
{
fprintf(stderr, "Error parsing command\n");
}
start ::= in .
in ::= .
in ::= in commandList EOL .
{
printf("start ::= commandList .\n");
printf("> ");
}
commandList ::= command PIPE commandList .
{
printf("commandList ::= command PIPE commandList .\n");
}
commandList ::= command .
{
printf("commandList ::= command .\n");
}
command ::= FILENAME argumentList .
{
printf("command ::= FILENAME argumentList .\n");
}
command ::= FILENAME .
{
printf("command ::= FILENAME .\n");
}
argumentList ::= argument argumentList .
{
printf("argumentList ::= argument argumentList .\n");
}
argumentList ::= argument .
{
printf("argumentList ::= argument .\n");
}
argument ::= ARGUMENT .
{
printf("argument ::= ARGUMENT .\n");
}
argument ::= FILENAME .
{
printf("argument ::= FILENAME .\n");
}
Jump to Line
Something went wrong with that request. Please try again.