You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by jb...@apache.org on 2009/04/01 23:03:00 UTC
svn commit: r761059 -
/incubator/cassandra/trunk/src/org/apache/cassandra/cli/Cli.g
Author: jbellis
Date: Wed Apr 1 21:02:59 2009
New Revision: 761059
URL: http://svn.apache.org/viewvc?rev=761059&view=rev
Log:
Adds possibility to use IP-address when invoking "connect" from the command line client. patch by Per Mellqvist for #41
Modified:
incubator/cassandra/trunk/src/org/apache/cassandra/cli/Cli.g
Modified: incubator/cassandra/trunk/src/org/apache/cassandra/cli/Cli.g
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/src/org/apache/cassandra/cli/Cli.g?rev=761059&r1=761058&r2=761059&view=diff
==============================================================================
--- incubator/cassandra/trunk/src/org/apache/cassandra/cli/Cli.g (original)
+++ incubator/cassandra/trunk/src/org/apache/cassandra/cli/Cli.g Wed Apr 1 21:02:59 2009
@@ -58,11 +58,11 @@
}
@parser::header {
-package com.facebook.infrastructure.cli;
+package org.apache.cassandra.cli;
}
@lexer::header {
-package com.facebook.infrastructure.cli;
+package org.apache.cassandra.cli;
}
//
@@ -85,6 +85,7 @@
connectStmt
: K_CONNECT host SLASH port -> ^(NODE_CONNECT host port)
+ | K_CONNECT ip SLASH port -> ^(NODE_CONNECT ip port)
;
helpStmt
@@ -151,6 +152,8 @@
host: id+=Identifier (id+=DOT id+=Identifier)* -> ^(NODE_ID_LIST $id+);
+ip: id+=IntegerLiteral id+=DOT id+=IntegerLiteral id+=DOT id+=IntegerLiteral id+=DOT id+=IntegerLiteral -> ^(NODE_ID_LIST $id+);
+
port: IntegerLiteral;
//