My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
Configuration  
Updated Jan 11, 2007 by sam...@gmail.com

Configuration Settings for JasminCC Namespace Configuration Before running JasminCC, the namespace should be configured ahead to match the grammar files in your local file system. Please take a look at file namespaceManager.xml, which is part of the Spring Framework configuration. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "spring-beans-2.0.dtd">

<beans>
<bean id="namespaceManager"
class="org.tigris.jasmincc.framework.namespace.implementation.SimpleNamespaceManager">
<constructor-arg>
<value>
C:\Documents and Settings\zhisen.huang\jasmincc-workspace\JasminCC\test\resources\
</value>
</constructor-arg>
<property name="grammarBases">
<map>
<entry key="grammars.expression"
value="C:\Documents and Settings\zhisen.huang\jasmincc-workspace\JasminCC\test\resources\"/>
<entry key="grammars.language"
value="C:\Documents and Settings\zhisen.huang\jasmincc-workspace\JasminCC\test\resources\"/>
</map>
</property>

Unknown end tag for </bean>

</beans>
The value of constructor-arg is the path for default grammar base. If any grammars cannot find out their file in file system, they will be tired using the default grammar base set here. The directory for each namespace is the root directory; JasminCC will simply map the namespace name to the end of the grammar base to find the actual grammar file. For example, grammars.expression is in the directory of C:\Documents and Settings\zhisen.huang\jasmincc-workspace\JasminCC\test\resources\grammars\expression\, so the file system path is C:\Documents and Settings\zhisen.huang\jasmincc-workspace\JasminCC\test\resources\ rather than C:\Documents and Settings\zhisen.huang\jasmincc-workspace\JasminCC\test\resources\grammars\expression\. Initialized File Set The following files are for configuration purpose, please place in the same directory as jasmincc.jar is. File name Description jasmincc-spring.xml Spring Framework configuration file namespaceManager.xml Namespace configuration file, this file is extracted from the above file intended for easily manages namespaces. messages.properties Informative messages

Powered by Google Project Hosting