This commit is contained in:
Ernesto Estrada
2018-10-22 12:53:56 -06:00
parent 13efc3fd81
commit c6f37284a0
5 changed files with 59 additions and 4 deletions
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_10" project-jdk-name="10" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/PPL-Fall-2018.iml" filepath="$PROJECT_DIR$/PPL-Fall-2018.iml" />
</modules>
</component>
</project>
Generated
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
+26 -4
View File
@@ -179,13 +179,35 @@ public class Parser {
}// <factor> }// <factor>
//private Node parseFuncDefs() {} private Node parseFuncDefs() {
System.out.println("-----> parsing <funcDefs>");
//private Node parseFuncDef() {} Node first = parseFuncDef();
//private Node parseParams() {} // look ahead to see if there are more function's
Token token = lex.getNextToken();
//private Node parseArgs() {} if ( token.isKind("eof") ) {
return new Node( "stmts", first, null, null );
}
else {
lex.putBackToken( token );
Node second = parseFuncDefs();
return new Node( "stmts", first, second, null );
}
}
private Node parseFuncDef() {
System.out.println("-----> parsing <funcDef>");
}
private Node parseParams() {
System.out.println("-----> parsing <params>");
}
private Node parseArgs() {
System.out.println("-----> parsing <args>");
}
// check whether token is correct kind and details // check whether token is correct kind and details
private void errorCheck( Token token, String kind, String details ) { private void errorCheck( Token token, String kind, String details ) {
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/Corgi" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/Jive" />
<excludeFolder url="file://$MODULE_DIR$/VPL" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>