hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zheng Shao <zsh...@gmail.com>
Subject Re: Need help on Hive.g and parser!
Date Wed, 18 Feb 2009 06:01:03 GMT
We are using antlr.

Basically, the rule checks the timestamp of HiveParser.java. If it's newer
than Hive.g, then we don't need to regenerate HiveParse.java from Hive.g
again.

Zheng

On Tue, Feb 17, 2009 at 12:15 PM, Shyam Sarkar <shyam_sarkar@yahoo.com>wrote:

> Hello,
>
> Someone please explain the following build.xml spec for grammar build
> (required and not required) ::
>
> ===================================================================
>
> <uptodate property="grammarBuild.notRequired">
>    <srcfiles dir= "${src.dir}/org/apache/hadoop/hive/ql/parse"
> includes="**/*.g"/>
>    <mapper type="merge"
> to="${build.dir.hive}/ql/gen-java/org/apache/hadoop/hive/ql/parse/HiveParser.java"/>
>  </uptodate>
>
>  <target name="build-grammar" unless="grammarBuild.notRequired">
>    <echo>Building Grammar ${src.dir}/org/apache/hadoop/hive/ql/parse/Hive.g
>  ....</echo>
>    <java classname="org.antlr.Tool" classpathref="classpath" fork="true">
>       <arg value="-fo" />
>       <arg
> value="${build.dir.hive}/ql/gen-java/org/apache/hadoop/hive/ql/parse" />
>       <arg value="${src.dir}/org/apache/hadoop/hive/ql/parse/Hive.g" />
>    </java>
>  </target>
> =============================================================
>
> Also can someone tell me which parser generator is used? I used JavaCC
> in the past.
>
> Thanks,
> shyam_sarkar@yahoo.com
>
>
>
>
>


-- 
Yours,
Zheng

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message