funcdefs
This commit is contained in:
Generated
+6
@@ -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>
|
||||
Generated
+8
@@ -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
@@ -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
@@ -179,13 +179,35 @@ public class Parser {
|
||||
|
||||
}// <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
|
||||
private void errorCheck( Token token, String kind, String details ) {
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user