From 54e35e2b89ce44c15a3b5e13128ccbc22a9a6792 Mon Sep 17 00:00:00 2001 From: "github-classroom[bot]" <66690702+github-classroom[bot]@users.noreply.github.com> Date: Tue, 9 Feb 2021 10:56:17 +0000 Subject: [PATCH 01/52] Initial commit --- .gitignore | 149 +++++ LICENSE | 26 + README.md | 24 + chocopy-ref.jar | Bin 0 -> 144764 bytes pom.xml | 330 ++++++++++ src/main/cup/chocopy/pa1/ChocoPy.cup | 214 ++++++ src/main/java/chocopy/common/Utils.java | 64 ++ .../chocopy/common/analysis/NodeAnalyzer.java | 100 +++ .../chocopy/common/astnodes/AssignStmt.java | 36 + .../chocopy/common/astnodes/BinaryExpr.java | 40 ++ .../common/astnodes/BooleanLiteral.java | 29 + .../chocopy/common/astnodes/CallExpr.java | 36 + .../chocopy/common/astnodes/ClassDef.java | 50 ++ .../chocopy/common/astnodes/ClassType.java | 28 + .../common/astnodes/CompilerError.java | 64 ++ .../chocopy/common/astnodes/Declaration.java | 23 + .../java/chocopy/common/astnodes/Errors.java | 90 +++ .../java/chocopy/common/astnodes/Expr.java | 22 + .../chocopy/common/astnodes/ExprStmt.java | 29 + .../java/chocopy/common/astnodes/ForStmt.java | 43 ++ .../java/chocopy/common/astnodes/FuncDef.java | 61 ++ .../chocopy/common/astnodes/GlobalDecl.java | 34 + .../chocopy/common/astnodes/Identifier.java | 29 + .../java/chocopy/common/astnodes/IfExpr.java | 40 ++ .../java/chocopy/common/astnodes/IfStmt.java | 45 ++ .../chocopy/common/astnodes/IndexExpr.java | 35 + .../common/astnodes/IntegerLiteral.java | 29 + .../chocopy/common/astnodes/ListExpr.java | 32 + .../chocopy/common/astnodes/ListType.java | 30 + .../java/chocopy/common/astnodes/Literal.java | 18 + .../chocopy/common/astnodes/MemberExpr.java | 36 + .../common/astnodes/MethodCallExpr.java | 38 ++ .../java/chocopy/common/astnodes/Node.java | 204 ++++++ .../chocopy/common/astnodes/NonLocalDecl.java | 34 + .../chocopy/common/astnodes/NoneLiteral.java | 21 + .../java/chocopy/common/astnodes/Program.java | 70 ++ .../chocopy/common/astnodes/ReturnStmt.java | 30 + .../java/chocopy/common/astnodes/Stmt.java | 21 + .../common/astnodes/StringLiteral.java | 29 + .../common/astnodes/TypeAnnotation.java | 16 + .../chocopy/common/astnodes/TypedVar.java | 36 + .../chocopy/common/astnodes/UnaryExpr.java | 36 + .../java/chocopy/common/astnodes/VarDef.java | 42 ++ .../chocopy/common/astnodes/WhileStmt.java | 39 ++ src/main/java/chocopy/pa1/StudentParser.java | 25 + src/main/jflex/chocopy/pa1/ChocoPy.jflex | 82 +++ src/test/data/pa1/sample/bad_assign_expr1.py | 1 + .../data/pa1/sample/bad_assign_expr1.py.ast | 16 + src/test/data/pa1/sample/bad_assign_expr2.py | 1 + .../data/pa1/sample/bad_assign_expr2.py.ast | 16 + src/test/data/pa1/sample/bad_func_def.py | 6 + src/test/data/pa1/sample/bad_func_def.py.ast | 64 ++ src/test/data/pa1/sample/bad_indentation.py | 3 + .../data/pa1/sample/bad_indentation.py.ast | 47 ++ src/test/data/pa1/sample/bad_stmt.py | 4 + src/test/data/pa1/sample/bad_stmt.py.ast | 65 ++ .../pa1/sample/chained_mixed_assignments.py | 2 + .../sample/chained_mixed_assignments.py.ast | 85 +++ .../pa1/sample/chained_var_assignments.py | 1 + .../pa1/sample/chained_var_assignments.py.ast | 32 + src/test/data/pa1/sample/class_attr.py | 4 + src/test/data/pa1/sample/class_attr.py.ast | 65 ++ src/test/data/pa1/sample/class_attr_get.py | 5 + .../data/pa1/sample/class_attr_get.py.ast | 91 +++ src/test/data/pa1/sample/class_attr_set.py | 5 + .../data/pa1/sample/class_attr_set.py.ast | 87 +++ src/test/data/pa1/sample/class_constructor.py | 8 + .../data/pa1/sample/class_constructor.py.ast | 159 +++++ src/test/data/pa1/sample/class_method.py | 9 + src/test/data/pa1/sample/class_method.py.ast | 181 ++++++ src/test/data/pa1/sample/coverage.py | 38 ++ src/test/data/pa1/sample/coverage.py.ast | 613 ++++++++++++++++++ src/test/data/pa1/sample/def_func.py | 4 + src/test/data/pa1/sample/def_func.py.ast | 48 ++ src/test/data/pa1/sample/def_func_args.py | 4 + src/test/data/pa1/sample/def_func_args.py.ast | 92 +++ src/test/data/pa1/sample/def_func_global.py | 7 + .../data/pa1/sample/def_func_global.py.ast | 105 +++ src/test/data/pa1/sample/def_func_nested.py | 10 + .../data/pa1/sample/def_func_nested.py.ast | 187 ++++++ src/test/data/pa1/sample/def_func_nonlocal.py | 11 + .../data/pa1/sample/def_func_nonlocal.py.ast | 186 ++++++ src/test/data/pa1/sample/expr_if.py | 1 + src/test/data/pa1/sample/expr_if.py.ast | 43 ++ src/test/data/pa1/sample/expr_if_chained.py | 1 + .../data/pa1/sample/expr_if_chained.py.ast | 67 ++ src/test/data/pa1/sample/expr_index.py | 1 + src/test/data/pa1/sample/expr_index.py.ast | 47 ++ src/test/data/pa1/sample/expr_plus.py | 1 + src/test/data/pa1/sample/expr_plus.py.ast | 39 ++ src/test/data/pa1/sample/expr_unary.py | 1 + src/test/data/pa1/sample/expr_unary.py.ast | 24 + src/test/data/pa1/sample/global.py | 5 + src/test/data/pa1/sample/global.py.ast | 63 ++ src/test/data/pa1/sample/literals.py | 7 + src/test/data/pa1/sample/literals.py.ast | 70 ++ src/test/data/pa1/sample/stmt_call.py | 1 + src/test/data/pa1/sample/stmt_call.py.ast | 28 + src/test/data/pa1/sample/stmt_for.py | 4 + src/test/data/pa1/sample/stmt_for.py.ast | 76 +++ src/test/data/pa1/sample/stmt_if.py | 3 + src/test/data/pa1/sample/stmt_if.py.ast | 29 + src/test/data/pa1/sample/stmt_if_elif.py | 6 + src/test/data/pa1/sample/stmt_if_elif.py.ast | 112 ++++ src/test/data/pa1/sample/stmt_if_elif_else.py | 8 + .../data/pa1/sample/stmt_if_elif_else.py.ast | 129 ++++ src/test/data/pa1/sample/stmt_ifelse.py | 5 + src/test/data/pa1/sample/stmt_ifelse.py.ast | 37 ++ src/test/data/pa1/sample/stmt_list_assign.py | 4 + .../data/pa1/sample/stmt_list_assign.py.ast | 88 +++ src/test/data/pa1/sample/stmt_while.py | 3 + src/test/data/pa1/sample/stmt_while.py.ast | 20 + src/test/data/pa1/student_contributed/bad.py | 1 + src/test/data/pa1/student_contributed/good.py | 1 + 114 files changed, 5696 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md create mode 100644 chocopy-ref.jar create mode 100644 pom.xml create mode 100644 src/main/cup/chocopy/pa1/ChocoPy.cup create mode 100644 src/main/java/chocopy/common/Utils.java create mode 100644 src/main/java/chocopy/common/analysis/NodeAnalyzer.java create mode 100644 src/main/java/chocopy/common/astnodes/AssignStmt.java create mode 100644 src/main/java/chocopy/common/astnodes/BinaryExpr.java create mode 100644 src/main/java/chocopy/common/astnodes/BooleanLiteral.java create mode 100644 src/main/java/chocopy/common/astnodes/CallExpr.java create mode 100644 src/main/java/chocopy/common/astnodes/ClassDef.java create mode 100644 src/main/java/chocopy/common/astnodes/ClassType.java create mode 100644 src/main/java/chocopy/common/astnodes/CompilerError.java create mode 100644 src/main/java/chocopy/common/astnodes/Declaration.java create mode 100644 src/main/java/chocopy/common/astnodes/Errors.java create mode 100644 src/main/java/chocopy/common/astnodes/Expr.java create mode 100644 src/main/java/chocopy/common/astnodes/ExprStmt.java create mode 100644 src/main/java/chocopy/common/astnodes/ForStmt.java create mode 100644 src/main/java/chocopy/common/astnodes/FuncDef.java create mode 100644 src/main/java/chocopy/common/astnodes/GlobalDecl.java create mode 100644 src/main/java/chocopy/common/astnodes/Identifier.java create mode 100644 src/main/java/chocopy/common/astnodes/IfExpr.java create mode 100644 src/main/java/chocopy/common/astnodes/IfStmt.java create mode 100644 src/main/java/chocopy/common/astnodes/IndexExpr.java create mode 100644 src/main/java/chocopy/common/astnodes/IntegerLiteral.java create mode 100644 src/main/java/chocopy/common/astnodes/ListExpr.java create mode 100644 src/main/java/chocopy/common/astnodes/ListType.java create mode 100644 src/main/java/chocopy/common/astnodes/Literal.java create mode 100644 src/main/java/chocopy/common/astnodes/MemberExpr.java create mode 100644 src/main/java/chocopy/common/astnodes/MethodCallExpr.java create mode 100644 src/main/java/chocopy/common/astnodes/Node.java create mode 100644 src/main/java/chocopy/common/astnodes/NonLocalDecl.java create mode 100644 src/main/java/chocopy/common/astnodes/NoneLiteral.java create mode 100644 src/main/java/chocopy/common/astnodes/Program.java create mode 100644 src/main/java/chocopy/common/astnodes/ReturnStmt.java create mode 100644 src/main/java/chocopy/common/astnodes/Stmt.java create mode 100644 src/main/java/chocopy/common/astnodes/StringLiteral.java create mode 100644 src/main/java/chocopy/common/astnodes/TypeAnnotation.java create mode 100644 src/main/java/chocopy/common/astnodes/TypedVar.java create mode 100644 src/main/java/chocopy/common/astnodes/UnaryExpr.java create mode 100644 src/main/java/chocopy/common/astnodes/VarDef.java create mode 100644 src/main/java/chocopy/common/astnodes/WhileStmt.java create mode 100644 src/main/java/chocopy/pa1/StudentParser.java create mode 100644 src/main/jflex/chocopy/pa1/ChocoPy.jflex create mode 100644 src/test/data/pa1/sample/bad_assign_expr1.py create mode 100644 src/test/data/pa1/sample/bad_assign_expr1.py.ast create mode 100644 src/test/data/pa1/sample/bad_assign_expr2.py create mode 100644 src/test/data/pa1/sample/bad_assign_expr2.py.ast create mode 100644 src/test/data/pa1/sample/bad_func_def.py create mode 100644 src/test/data/pa1/sample/bad_func_def.py.ast create mode 100644 src/test/data/pa1/sample/bad_indentation.py create mode 100644 src/test/data/pa1/sample/bad_indentation.py.ast create mode 100644 src/test/data/pa1/sample/bad_stmt.py create mode 100644 src/test/data/pa1/sample/bad_stmt.py.ast create mode 100644 src/test/data/pa1/sample/chained_mixed_assignments.py create mode 100644 src/test/data/pa1/sample/chained_mixed_assignments.py.ast create mode 100644 src/test/data/pa1/sample/chained_var_assignments.py create mode 100644 src/test/data/pa1/sample/chained_var_assignments.py.ast create mode 100644 src/test/data/pa1/sample/class_attr.py create mode 100644 src/test/data/pa1/sample/class_attr.py.ast create mode 100644 src/test/data/pa1/sample/class_attr_get.py create mode 100644 src/test/data/pa1/sample/class_attr_get.py.ast create mode 100644 src/test/data/pa1/sample/class_attr_set.py create mode 100644 src/test/data/pa1/sample/class_attr_set.py.ast create mode 100644 src/test/data/pa1/sample/class_constructor.py create mode 100644 src/test/data/pa1/sample/class_constructor.py.ast create mode 100644 src/test/data/pa1/sample/class_method.py create mode 100644 src/test/data/pa1/sample/class_method.py.ast create mode 100644 src/test/data/pa1/sample/coverage.py create mode 100644 src/test/data/pa1/sample/coverage.py.ast create mode 100644 src/test/data/pa1/sample/def_func.py create mode 100644 src/test/data/pa1/sample/def_func.py.ast create mode 100644 src/test/data/pa1/sample/def_func_args.py create mode 100644 src/test/data/pa1/sample/def_func_args.py.ast create mode 100644 src/test/data/pa1/sample/def_func_global.py create mode 100644 src/test/data/pa1/sample/def_func_global.py.ast create mode 100644 src/test/data/pa1/sample/def_func_nested.py create mode 100644 src/test/data/pa1/sample/def_func_nested.py.ast create mode 100644 src/test/data/pa1/sample/def_func_nonlocal.py create mode 100644 src/test/data/pa1/sample/def_func_nonlocal.py.ast create mode 100644 src/test/data/pa1/sample/expr_if.py create mode 100644 src/test/data/pa1/sample/expr_if.py.ast create mode 100644 src/test/data/pa1/sample/expr_if_chained.py create mode 100644 src/test/data/pa1/sample/expr_if_chained.py.ast create mode 100644 src/test/data/pa1/sample/expr_index.py create mode 100644 src/test/data/pa1/sample/expr_index.py.ast create mode 100644 src/test/data/pa1/sample/expr_plus.py create mode 100644 src/test/data/pa1/sample/expr_plus.py.ast create mode 100644 src/test/data/pa1/sample/expr_unary.py create mode 100644 src/test/data/pa1/sample/expr_unary.py.ast create mode 100644 src/test/data/pa1/sample/global.py create mode 100644 src/test/data/pa1/sample/global.py.ast create mode 100644 src/test/data/pa1/sample/literals.py create mode 100644 src/test/data/pa1/sample/literals.py.ast create mode 100644 src/test/data/pa1/sample/stmt_call.py create mode 100644 src/test/data/pa1/sample/stmt_call.py.ast create mode 100644 src/test/data/pa1/sample/stmt_for.py create mode 100644 src/test/data/pa1/sample/stmt_for.py.ast create mode 100644 src/test/data/pa1/sample/stmt_if.py create mode 100644 src/test/data/pa1/sample/stmt_if.py.ast create mode 100644 src/test/data/pa1/sample/stmt_if_elif.py create mode 100644 src/test/data/pa1/sample/stmt_if_elif.py.ast create mode 100644 src/test/data/pa1/sample/stmt_if_elif_else.py create mode 100644 src/test/data/pa1/sample/stmt_if_elif_else.py.ast create mode 100644 src/test/data/pa1/sample/stmt_ifelse.py create mode 100644 src/test/data/pa1/sample/stmt_ifelse.py.ast create mode 100644 src/test/data/pa1/sample/stmt_list_assign.py create mode 100644 src/test/data/pa1/sample/stmt_list_assign.py.ast create mode 100644 src/test/data/pa1/sample/stmt_while.py create mode 100644 src/test/data/pa1/sample/stmt_while.py.ast create mode 100644 src/test/data/pa1/student_contributed/bad.py create mode 100644 src/test/data/pa1/student_contributed/good.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..21cc758 --- /dev/null +++ b/.gitignore @@ -0,0 +1,149 @@ +.DS_Store +__pycache__ +target + +# Created by https://www.gitignore.io/api/java,eclipse,intellij,emacs,vim + +### Java ### +*.class + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + + +### Eclipse ### +*.pydevproject +.metadata +.gradle +bin/ +tmp/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.settings/ +.loadpath + +# Eclipse Core +.project + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# CDT-specific +.cproject + +# JDT-specific (Eclipse Java Development Tools) +.classpath + +# Java annotation processor (APT) +.factorypath + +# PDT-specific +.buildpath + +# sbteclipse plugin +.target + +# TeXlipse plugin +.texlipse + + +### Intellij ### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio + +*.iml + +## Directory-based project format: +.idea/ +# if you remove the above rule, at least ignore the following: + +# User-specific stuff: +# .idea/workspace.xml +# .idea/tasks.xml +# .idea/dictionaries + +# Sensitive or high-churn files: +# .idea/dataSources.ids +# .idea/dataSources.xml +# .idea/sqlDataSources.xml +# .idea/dynamic.xml +# .idea/uiDesigner.xml + +# Gradle: +# .idea/gradle.xml +# .idea/libraries + +# Mongo Explorer plugin: +# .idea/mongoSettings.xml + +## File-based project format: +*.ipr +*.iws + +## Plugin-specific files: + +# IntelliJ +/out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties + + +### Emacs ### +# -*- mode: gitignore; -*- +*~ +\#*\# +/.emacs.desktop +/.emacs.desktop.lock +*.elc +auto-save-list +tramp +.\#* + +# Org-mode +.org-id-locations +*_archive + +# flymake-mode +*_flymake.* + +# eshell files +/eshell/history +/eshell/lastdir + +# elpa packages +/elpa/ + +# reftex files +*.rel + +# AUCTeX auto folder +/auto/ + +# cask packages +.cask/ + + +### Vim ### +[._]*.s[a-w][a-z] +[._]s[a-w][a-z] +*.un~ +Session.vim +.netrwhist +*~ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..0808d4b --- /dev/null +++ b/LICENSE @@ -0,0 +1,26 @@ +Copyright (c) 2017-2018 The Regents of the University of California + +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..f6e4b4a --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# NYU Compiler Construction CSCI-GA.2130/Spring 2021: Programming Assignment 1 + +This assignment is adapted from https://github.com/cs164berkeley/pa1-chocopy-parser/ with the authors' permission. + +See the PA1 document on Piazza for a detailed specification. + +## Quickstart + +Run the following commands to generate and compile your parser and run the tests: +``` +mvn clean package +java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy \ + --pass=s --test --dir src/test/data/pa1/sample/ +``` + +`--pass=s` uses your parser (`s` for `student`), and with the starter code, only one test should pass. +`--pass=r` uses the reference parser (`r` for `reference`), which should pass all tests. + +In addition to running in test mode with `--test`, you can also observe the actual output +of your (or reference) parser with: +``` +java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy \ + --pass=s src/test/data/pa1/sample/expr_plus.py +``` diff --git a/chocopy-ref.jar b/chocopy-ref.jar new file mode 100644 index 0000000000000000000000000000000000000000..31646a6ca4588df335c5496d7972482855979b76 GIT binary patch literal 144764 zcmaG{V|1ilx(zxV+qP||W7~Erw$ieKtMpCK-d#q6~bZebF@Ey8GjzM&m$+MDnu_OFU}|@Brhc{rlQIqCw?n8 zHYzJa&oB)yLr*g?Hd&|4G{?HN@5CT2M<*pW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;Sg0ZY{Y!t~9h zX2{_Ckpkvs7Qk|j)n7{wciT}dAyMHV;9^)n=%e_T6#=ueus^`RqsqV63GT+u;?K|k zOO#+Cz~{*g?DzOTu;$vvdO9}L8X8yYV;UNNj?Y2|qr)A5X*B_+b#vD3k#J4>cPs!| zn*y2Q9RoDw`;&t?R4}kGQ7|y-8-l${z8j?r>=A-!ZVu3QH~RLa+1L02V43{4onDLi zkIVmah4$@K`Syjr*F;@lfcX#NeQUF~?pV6!J^gYQ4`}tjZ(O=9-tCKhu5mv*uW@&~ z{Qr@~-@g9k8co~tC;GR~|23PvKakwMOXM2L3hc@LR_AYde?$L$v&d}?+`f0>nyB7? zKk>#b6t|JLEB;?2S%&^V{`N?L>*?{`wt2e-#5L7J->GdyZt);HPG|$F5vIB0^q-!`}bPiJqu$0-Z%iF+rOUPqr3QjzOsE=1-IYG zzDCj?-$ne#!T)(b`!@0RtIgL$4q)y2w?$qnRp5^oon^$KfOQmLo(BALKm_a}pa6jq G?EeF4FMZnp literal 0 HcmV?d00001 diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..1766e51 --- /dev/null +++ b/pom.xml @@ -0,0 +1,330 @@ + + 4.0.0 + chocopy + chocopy + jar + 2.2-SNAPSHOT + chocopy + http://maven.apache.org + + + + false + + + + + + + + de.jflex + jflex-maven-plugin + 1.6.1 + + + com.github.vbmacher + cup-maven-plugin + 11b-20160615 + + + maven-assembly-plugin + 3.1.0 + + + maven-jar-plugin + 3.1.0 + + + maven-site-plugin + 3.7.1 + + + + + + + maven-assembly-plugin + + + jar-with-dependencies + + assignment + false + + + + make-assembly + package + + single + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.0 + + UTF-8 + 1.8 + 1.8 + true + true + + + + + + + src/main/asm + + **/*.s + **/*.os + + + **/reference/*.s + + + + + + + + reference + + + + src/main/java/chocopy/reference/ + + + + + + + maven-jar-plugin + + + **/pa1/* + **/pa2/* + **/pa3/* + + + + + + maven-assembly-plugin + + + jar-with-dependencies + + chocopy-ref + false + + + + + de.jflex + jflex-maven-plugin + + + jflex-reference + + generate + + + + src/main/jflex/chocopy/reference/ChocoPy.jflex + + ${chocopy.debug} + true + + + + + + + com.github.vbmacher + cup-maven-plugin + + + cup-reference + + generate + + + src/main/cup/chocopy/reference/ChocoPy.cup + chocopy.reference + ChocoPyParser + ChocoPyTokens + ${chocopy.debug} + ${chocopy.debug} + ${chocopy.debug} + true + + + + + + + maven-compiler-plugin + + true + none + + + + + org.apache.maven.plugins + maven-dependency-plugin + 3.1.1 + + + copy-dependencies + package + + copy-dependencies + + + + + + + + + + pa1 + + + + src/main/java/chocopy/pa1 + + + + + + + de.jflex + jflex-maven-plugin + + + jflex-pa1 + + generate + + + + src/main/jflex/chocopy/pa1/ChocoPy.jflex + + ${chocopy.debug} + true + + + + + + + com.github.vbmacher + cup-maven-plugin + + + cup-pa1 + + generate + + + src/main/cup/chocopy/pa1/ChocoPy.cup + chocopy.pa1 + ChocoPyParser + ChocoPyTokens + ${chocopy.debug} + ${chocopy.debug} + ${chocopy.debug} + true + + + + + + + + + pa2 + + + + src/main/java/chocopy/pa2 + + + + + pa3 + + + + src/main/java/chocopy/pa3 + + + + + + + + + venus164-repo + Repository for Venus164 + https://raw.githubusercontent.com/chocopy/venus/maven-repository/ + + + + + + net.sourceforge.argparse4j + argparse4j + 0.8.1 + + + com.fasterxml.jackson.core + jackson-databind + [2.9.10.1,) + + + com.fasterxml.jackson.module + jackson-module-parameter-names + 2.9.10 + + + com.github.vbmacher + java-cup-runtime + 11b-20160615 + + + + de.jflex + jflex + 1.6.1 + + + org.jetbrains.kotlin + kotlin-stdlib + 1.2.71 + + + edu.berkeley.eecs.venus164 + venus164 + 0.2.4 + + + junit + junit + 4.12 + test + + + net.sf.proguard + proguard-base + 6.0.3 + + + diff --git a/src/main/cup/chocopy/pa1/ChocoPy.cup b/src/main/cup/chocopy/pa1/ChocoPy.cup new file mode 100644 index 0000000..d4ff444 --- /dev/null +++ b/src/main/cup/chocopy/pa1/ChocoPy.cup @@ -0,0 +1,214 @@ +import java.util.ArrayList; +import java.util.List; + +import java_cup.runtime.*; +import chocopy.common.astnodes.*; + +/* The following code section is copied verbatim to the generated + * parser class. */ +parser code {: + + /* The following fields and methods deal with error reporting + * Avoid changing these unless you know what you are doing. */ + + /** Node that accumulates error messages to be added to the Program + * node produced as a result. */ + public final Errors errors = new Errors(new ArrayList<>()); + + /** Return the Program node that results from parsing the stream of + * tokens produced by lexical analysis. In the case of syntax errors, + * the program may be empty, but will have error messages. */ + public Program parseProgram(boolean debug) { + try { + Symbol result = debug ? debug_parse() : parse(); + if (result == null || !(result.value instanceof Program)) { + return new Program(new Location(0, 0), new Location(0, 0), + new ArrayList(), + new ArrayList(), + errors); + } else { + return (Program) result.value; + } + } catch (RuntimeException excp) { + throw excp; + } catch (Exception excp) { + String msg = + String.format("Internal parser error detected: %s%n", excp); + throw new AssertionError(msg); + } + } + + @Override + public SymbolFactory getSymbolFactory() { + return ((ChocoPyLexer) getScanner()).symbolFactory; + } + + @Override + public void syntax_error(Symbol cur_token) { + String token = symbl_name_from_id(cur_token.sym); + String text = ((ChocoPyLexer) getScanner()).yytext(); + errors.syntaxError( + ((ComplexSymbolFactory.ComplexSymbol) cur_token).xleft, + ((ComplexSymbolFactory.ComplexSymbol) cur_token).xright, + "Parse error near token %s: %s", token, text); + } + + @Override + public void unrecovered_syntax_error(Symbol cur_token) { + /* Do not die */ + } +:} + + +/************************************************************************** + * FEEL FREE TO MODIFY ANYTHING BELOW THIS LINE + * + * The rules provided below parse expressions of the form + + ... + * You can re-use these rules or edit them as you wish. The start rule + * should return a node of type Program. + * + * Tips: Production rules are usually followed by action code that will be + * copied to the generated parser to be executed immediately after a reduce + * operation; that is, when a production rule has been matched. You can name + * a nonterminal or terminal symbol in a production rule using the colon + * notation, e.g. expr_stmt ::= expr:e, to get the AST node for the matched + * expression. In the action code, `e` will be a variable of whatever type + * has been declared for the corresponding nonterminal, such as `Expr`. + * Therefore, you can construct an AST Node of type `ExprStmt` with `e` in the + * constructor: `new ExprStmt(exleft, exright, e)` + * + * The variables `exleft` and `exright` are automatically generated by CUP + * and contain Location objects for the start and end of the expression `e`. + * You can collect start and line number info for AST nodes by taking the + * location of the left end of the leftmost symbol in a rule and the + * location of the right end of the rightmost symbol. The auto-generated + * variables have names `xleft` and `xright`, where is the + * name given to the symbol using the colon notation. + * + * When you have nonterminals that are lists of things, e.g. List or + * List, it is helpful to get the leftmost and rightmost + * source location from within this list; we have provided some utility + * functions below to do just that. + **************************************************************************/ + + +/* The following code section is copied verbatim to the class that performs + * production-rule actions. */ +action code {: + + /** Return a mutable list initially containing the single value ITEM. */ + List single(T item) { + List list = new ArrayList<>(); + if (item != null) { + list.add(item); + } + return list; + } + + /** If ITEM is non-null, appends it to the end of LIST. Then returns + * LIST. */ + List combine(List list, T item) { + if (item != null) { + list.add(item); + } + return list; + } + + /** Return a mutable empty list. */ + List empty() { + return new ArrayList(); + } + + /** Return the leftmost non-whitespace location in NODES, or null if NODES + * is empty. Assumes that the nodes of NODES are ordered in increasing + * order of location, from left to right. */ + ComplexSymbolFactory.Location getLeft(List nodes) { + if (nodes.isEmpty()) { + return null; + } + Node first = nodes.get(0); + return new ComplexSymbolFactory.Location(first.getLocation()[0], + first.getLocation()[1]); + } + +:} + +/* Terminal symbols (tokens returned by the lexer). The declaration + * terminal , , ...; + * declares each as the denotation of a distinct type terminal + * symbol for use in the grammar. The declaration + * terminal , ...; + * does the same, and in addition indicates that the lexer supplies a + * semantic value of type for these symbols that may be referenced + * in actions ( {: ... :} ). + */ +terminal NEWLINE; +terminal String PLUS; +terminal Integer NUMBER; +/* Returned by the lexer for erroneous tokens. Since it does not appear in + * the grammar, it indicates a syntax error. */ +terminal UNRECOGNIZED; + +/* Nonterminal symbols (defined in production rules below). + * As for terminal symbols, + * non terminal , ..., ; + * defines the listed nonterminal identifier symbols to have semantic values + * of type . */ +non terminal Program program; +non terminal List program_head; +non terminal List stmt_list, opt_stmt_list; +non terminal Stmt stmt, expr_stmt; +non terminal Expr expr, binary_expr; + +/* Precedences (lowest to highest) for resolving what would otherwise be + * ambiguities in the form of shift/reduce conflicts.. */ +precedence left PLUS; + +/* The start symbol. */ +start with program; + + +/***** GRAMMAR RULES *****/ + +program ::= program_head:d opt_stmt_list:s + {: RESULT = new Program(d.isEmpty() ? getLeft(s) : getLeft(d), + sxright, d, s, errors); + :} + ; + +/* Initial list of declarations. */ +program_head ::= /* not implemented; currently matches empty string */ + {: RESULT = empty(); :} + ; + +opt_stmt_list ::= {: RESULT = empty(); :} + | stmt_list:s {: RESULT = s; :} + ; + +stmt_list ::= stmt:s {: RESULT = single(s); :} + | stmt_list:l stmt:s {: RESULT = combine(l, s); :} + | stmt_list:l error {: RESULT = l; :} + /* If there is a syntax error in the source, this says to discard + * symbols from the parsing stack and perform reductions until + * there is a stmt_list on top of the stack, and then to discard + * input symbols until it is possible to shift again, reporting + * a syntax error. */ + ; + +stmt ::= expr_stmt:s NEWLINE {: RESULT = s; :} + ; + +expr_stmt ::= expr:e {: RESULT = new ExprStmt(exleft, exright, e); :} + ; + +expr ::= binary_expr:e {: RESULT = e; :} + | NUMBER:n {: RESULT = new IntegerLiteral(nxleft, nxright, n); :} + ; + + +/* A binary expression, illustrating how to find the left and right + * source position of a phrase. */ +binary_expr ::= expr:e1 PLUS:op expr:e2 + {: RESULT = new BinaryExpr(e1xleft, e2xright, + e1, op, e2); :} + ; diff --git a/src/main/java/chocopy/common/Utils.java b/src/main/java/chocopy/common/Utils.java new file mode 100644 index 0000000..661dfd3 --- /dev/null +++ b/src/main/java/chocopy/common/Utils.java @@ -0,0 +1,64 @@ +package chocopy.common; + +import java.io.BufferedReader; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.nio.charset.StandardCharsets; +import java.util.stream.Collectors; + + +/** + * Utility functions for general use. + */ +public class Utils { + + /** + * Return resource file FILENAME's contents as a string. FILENAME + * can refer to a file within the class hierarchy, so that a text + * resource in file resource.txt in the chocopy.common.codegen + * package, for example, could be referred to with FILENAME + * chocopy/common/codegen/resource.txt. + *

+ * Credit: Lucio Paiva. + */ + public static String getResourceFileAsString(String fileName) { + InputStream is = + Utils.class.getClassLoader().getResourceAsStream(fileName); + if (is != null) { + BufferedReader reader = + new BufferedReader + (new InputStreamReader(is, StandardCharsets.UTF_8)); + return reader.lines().collect + (Collectors.joining(System.lineSeparator())); + } + return null; + } + + /** + * Return an exception signalling a fatal error having a message + * formed from MSGFORMAT and ARGS, as for String.format. + */ + public static Error fatal(String msgFormat, Object... args) { + return new Error(String.format(msgFormat, args)); + } + + /** + * Return the string S padded with FILL to TOLEN characters. Padding + * is on the left if PADONLEFT, and otherwise on the right. If S is + * already at least TOLEN characters, returns S. + */ + public static String pad(String s, Character fill, int toLen, + boolean padOnLeft) { + StringBuilder result = new StringBuilder(toLen); + if (!padOnLeft) { + result.append(s); + } + for (int n = s.length(); n < toLen; n += 1) { + result.append(fill); + } + if (padOnLeft) { + result.append(s); + } + return result.toString(); + } +} diff --git a/src/main/java/chocopy/common/analysis/NodeAnalyzer.java b/src/main/java/chocopy/common/analysis/NodeAnalyzer.java new file mode 100644 index 0000000..5ea8a6c --- /dev/null +++ b/src/main/java/chocopy/common/analysis/NodeAnalyzer.java @@ -0,0 +1,100 @@ +package chocopy.common.analysis; + +import chocopy.common.astnodes.*; + +/** + * This interface can be used to separate logic for various concrete + * classes in the AST class hierarchy. + *

+ * The idea is that a phase of the analysis is encapsulated in a class + * that implements this interface, and contains an overriding of the + * analyze method for each concrete Node class that needs something + * other than default processing. Each concrete node class, C, implements + * a generic dispatch method that takes a NodeAnalyzer argument and + * calls the overloading of analyze that takes an argument of type C. + * The effect is that anode.dispatch(anAnalyzer) executes the method + * anAnalyzer.analyze that is appropriate to aNode's dynamic type. + * As a result each NodeAnalyzer subtype encapsulates all + * implementations of a particular action on Nodes. Thus, it inverts + * the usual OO pattern in which the implementations of analysis A for + * each different class are scattered among the class bodies + * themselves as overridings of a method A on the Node class. + *

+ * The class AbstractNodeAnalyzer provides empty default + * implementations for these methods. + *

+ * The type T is the type of result returned by the encapsulated analysis. + */ +public interface NodeAnalyzer { + + T analyze(AssignStmt node); + + T analyze(BinaryExpr node); + + T analyze(BooleanLiteral node); + + T analyze(CallExpr node); + + T analyze(ClassDef node); + + T analyze(ClassType node); + + T analyze(CompilerError node); + + T analyze(Errors node); + + T analyze(ExprStmt node); + + T analyze(ForStmt node); + + T analyze(FuncDef node); + + T analyze(GlobalDecl node); + + T analyze(Identifier node); + + T analyze(IfExpr node); + + T analyze(IfStmt node); + + T analyze(IndexExpr node); + + T analyze(IntegerLiteral node); + + T analyze(ListExpr node); + + T analyze(ListType node); + + T analyze(MemberExpr node); + + T analyze(MethodCallExpr node); + + T analyze(NoneLiteral node); + + T analyze(NonLocalDecl node); + + T analyze(Program node); + + T analyze(ReturnStmt node); + + T analyze(StringLiteral node); + + T analyze(TypedVar node); + + T analyze(UnaryExpr node); + + T analyze(VarDef node); + + T analyze(WhileStmt node); + + /** + * Set the default value returned by calls to analyze that are not + * overridden to VALUE. By default, this is null. + */ + void setDefault(T value); + + /** + * Default value for non-overridden methods. + */ + T defaultAction(Node node); +} diff --git a/src/main/java/chocopy/common/astnodes/AssignStmt.java b/src/main/java/chocopy/common/astnodes/AssignStmt.java new file mode 100644 index 0000000..8b3f49c --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/AssignStmt.java @@ -0,0 +1,36 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +import java.util.List; + +/** + * Single and multiple assignments. + */ +public class AssignStmt extends Stmt { + /** + * List of left-hand sides. + */ + public final List targets; + /** + * Right-hand-side value to be assigned. + */ + public final Expr value; + + /** + * AST for TARGETS[0] = TARGETS[1] = ... = VALUE spanning source locations + * [LEFT..RIGHT]. + */ + public AssignStmt(Location left, Location right, + List targets, Expr value) { + super(left, right); + this.targets = targets; + this.value = value; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + +} diff --git a/src/main/java/chocopy/common/astnodes/BinaryExpr.java b/src/main/java/chocopy/common/astnodes/BinaryExpr.java new file mode 100644 index 0000000..3ef3d46 --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/BinaryExpr.java @@ -0,0 +1,40 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +/** + * . + */ +public class BinaryExpr extends Expr { + + /** + * Left operand. + */ + public final Expr left; + /** + * Operator name. + */ + public final String operator; + /** + * Right operand. + */ + public final Expr right; + + /** + * An AST for expressions of the form LEFTEXPR OP RIGHTEXPR + * from text in range [LEFTLOC..RIGHTLOC]. + */ + public BinaryExpr(Location leftLoc, Location rightLoc, Expr leftExpr, + String op, Expr rightExpr) { + super(leftLoc, rightLoc); + left = leftExpr; + operator = op; + right = rightExpr; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + +} diff --git a/src/main/java/chocopy/common/astnodes/BooleanLiteral.java b/src/main/java/chocopy/common/astnodes/BooleanLiteral.java new file mode 100644 index 0000000..bf13f08 --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/BooleanLiteral.java @@ -0,0 +1,29 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +/** + * Literals True or False. + */ +public final class BooleanLiteral extends Literal { + + /** + * True iff I represent True. + */ + public final boolean value; + + /** + * An AST for the token True or False at [LEFT..RIGHT], depending on + * VALUE. + */ + public BooleanLiteral(Location left, Location right, boolean value) { + super(left, right); + this.value = value; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + +} diff --git a/src/main/java/chocopy/common/astnodes/CallExpr.java b/src/main/java/chocopy/common/astnodes/CallExpr.java new file mode 100644 index 0000000..80272ee --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/CallExpr.java @@ -0,0 +1,36 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +import java.util.List; + +/** + * A function call. + */ +public class CallExpr extends Expr { + + /** + * The called function. + */ + public final Identifier function; + /** + * The actual parameter expressions. + */ + public final List args; + + /** + * AST for FUNCTION(ARGS) at [LEFT..RIGHT]. + */ + public CallExpr(Location left, Location right, Identifier function, + List args) { + super(left, right); + this.function = function; + this.args = args; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + +} diff --git a/src/main/java/chocopy/common/astnodes/ClassDef.java b/src/main/java/chocopy/common/astnodes/ClassDef.java new file mode 100644 index 0000000..982d128 --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/ClassDef.java @@ -0,0 +1,50 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +import java.util.List; + +/** + * A class definition. + */ +public class ClassDef extends Declaration { + + /** + * Name of the declared class. + */ + public final Identifier name; + /** + * Name of the parent class. + */ + public final Identifier superClass; + /** + * Body of the class. + */ + public final List declarations; + + /** + * An AST for class + * NAME(SUPERCLASS): + * DECLARATIONS. + * spanning source locations [LEFT..RIGHT]. + */ + public ClassDef(Location left, Location right, + Identifier name, Identifier superClass, + List declarations) { + super(left, right); + this.name = name; + this.superClass = superClass; + this.declarations = declarations; + } + + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + + @Override + public Identifier getIdentifier() { + return this.name; + } +} diff --git a/src/main/java/chocopy/common/astnodes/ClassType.java b/src/main/java/chocopy/common/astnodes/ClassType.java new file mode 100644 index 0000000..eab39af --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/ClassType.java @@ -0,0 +1,28 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +/** + * A simple class type name. + */ +public final class ClassType extends TypeAnnotation { + + /** + * The denotation of the class in source. + */ + public final String className; + + /** + * An AST denoting a type named CLASSNAME0 at [LEFT..RIGHT]. + */ + public ClassType(Location left, Location right, String className0) { + super(left, right); + className = className0; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + +} diff --git a/src/main/java/chocopy/common/astnodes/CompilerError.java b/src/main/java/chocopy/common/astnodes/CompilerError.java new file mode 100644 index 0000000..c61617e --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/CompilerError.java @@ -0,0 +1,64 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import com.fasterxml.jackson.annotation.JsonInclude; +import java_cup.runtime.ComplexSymbolFactory.Location; + +import java.util.Arrays; +import java.util.Objects; + +/** + * Represents a single error. Does not correspond to any Python source + * construct. + */ +public class CompilerError extends Node { + + /** + * Represents an error with message MESSAGE. Iff SYNTAX, it is a + * syntactic error. The error applies to source text at [LEFT..RIGHT]. + */ + public CompilerError(Location left, Location right, String message, + boolean syntax) { + super(left, right); + this.message = message; + this.syntax = syntax; + } + + @JsonInclude(JsonInclude.Include.NON_DEFAULT) + public boolean isSyntax() { + return syntax; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CompilerError that = (CompilerError) o; + return Objects.equals(message, that.message) + && Arrays.equals(getLocation(), that.getLocation()); + } + + @Override + public int hashCode() { + int result = Objects.hash(message); + result = 31 * result + Arrays.hashCode(getLocation()); + return result; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + + /** + * The error message. + */ + public final String message; + /** + * True if this is a syntax error. + */ + private final boolean syntax; +} diff --git a/src/main/java/chocopy/common/astnodes/Declaration.java b/src/main/java/chocopy/common/astnodes/Declaration.java new file mode 100644 index 0000000..769ece3 --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/Declaration.java @@ -0,0 +1,23 @@ +package chocopy.common.astnodes; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import java_cup.runtime.ComplexSymbolFactory.Location; + +/** + * Base of all AST nodes representing definitions or declarations. + */ +public abstract class Declaration extends Node { + + /** + * A definition or declaration spanning source locations [LEFT..RIGHT]. + */ + public Declaration(Location left, Location right) { + super(left, right); + } + + /** + * Return the identifier defined by this Declaration. + */ + @JsonIgnore + public abstract Identifier getIdentifier(); +} diff --git a/src/main/java/chocopy/common/astnodes/Errors.java b/src/main/java/chocopy/common/astnodes/Errors.java new file mode 100644 index 0000000..cea2c5b --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/Errors.java @@ -0,0 +1,90 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java_cup.runtime.ComplexSymbolFactory.Location; + +import java.util.List; + +/** + * Collects the error messages in a Program. There is exactly one per + * Program node. + */ +public class Errors extends Node { + + /** + * The accumulated error messages in the order added. + */ + public final List errors; + + /** + * True iff multiple semantic errors allowed on a node. + */ + @JsonIgnore + private boolean allowMultipleErrors; + + /** + * An Errors whose list of CompilerErrors is ERRORS. The list should be + * modified using this.add. + */ + @JsonCreator + public Errors(List errors) { + super(null, null); + this.errors = errors; + allowMultipleErrors = true; + } + + /** + * Return true iff there are any errors. + */ + public boolean hasErrors() { + return !this.errors.isEmpty(); + } + + /** + * Prevent multiple semantic errors on the same node. + */ + public void suppressMultipleErrors() { + allowMultipleErrors = false; + } + + /** + * Add a new semantic error message attributed to NODE, with message + * String.format(MESSAGEFORM, ARGS). + */ + public void semError(Node node, String messageForm, Object... args) { + if (allowMultipleErrors || !node.hasError()) { + String msg = String.format(messageForm, args); + CompilerError err = new CompilerError(null, null, msg, false); + err.setLocation(node.getLocation()); + add(err); + if (!node.hasError()) { + node.setErrorMsg(msg); + } + } + } + + /** + * Add a new syntax error message attributed to the source text + * between LEFT and RIGHT, and with message + * String.format(MESSAGEFORM, ARGS). + */ + public void syntaxError(Location left, Location right, + String messageForm, Object... args) { + add(new CompilerError(left, right, String.format(messageForm, args), + true)); + } + + /** + * Add ERR to the list of errors. + */ + public void add(CompilerError err) { + errors.add(err); + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + +} diff --git a/src/main/java/chocopy/common/astnodes/Expr.java b/src/main/java/chocopy/common/astnodes/Expr.java new file mode 100644 index 0000000..c5cb884 --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/Expr.java @@ -0,0 +1,22 @@ +package chocopy.common.astnodes; + +import java_cup.runtime.ComplexSymbolFactory.Location; + +/** + * Base of all AST nodes representing expressions. + *

+ * There is nothing in this class, but there will be many AST + * node types that have fields that are *any expression*. For those + * cases, having a field of this type will encompass all types of + * expressions such as binary expressions and literals that subclass + * this class. + */ +public abstract class Expr extends Node { + + /** + * A Python expression spanning source locations [LEFT..RIGHT]. + */ + public Expr(Location left, Location right) { + super(left, right); + } +} diff --git a/src/main/java/chocopy/common/astnodes/ExprStmt.java b/src/main/java/chocopy/common/astnodes/ExprStmt.java new file mode 100644 index 0000000..177c407 --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/ExprStmt.java @@ -0,0 +1,29 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +/** + * Statements consisting of expressions. + */ +public final class ExprStmt extends Stmt { + + /** + * The expression I evaluate. + */ + public final Expr expr; + + /** + * The AST for EXPR spanning source locations [LEFT..RIGHT] + * in a statement context. + */ + public ExprStmt(Location left, Location right, Expr expr) { + super(left, right); + this.expr = expr; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + +} diff --git a/src/main/java/chocopy/common/astnodes/ForStmt.java b/src/main/java/chocopy/common/astnodes/ForStmt.java new file mode 100644 index 0000000..8463da1 --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/ForStmt.java @@ -0,0 +1,43 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +import java.util.List; + +/** + * For statements. + */ +public class ForStmt extends Stmt { + /** + * Control variable. + */ + public final Identifier identifier; + /** + * Source of values of control statement. + */ + public final Expr iterable; + /** + * Repeated statements. + */ + public final List body; + + /** + * The AST for + * for IDENTIFIER in ITERABLE: + * BODY + * spanning source locations [LEFT..RIGHT]. + */ + public ForStmt(Location left, Location right, + Identifier identifier, Expr iterable, List body) { + super(left, right); + this.identifier = identifier; + this.iterable = iterable; + this.body = body; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + +} diff --git a/src/main/java/chocopy/common/astnodes/FuncDef.java b/src/main/java/chocopy/common/astnodes/FuncDef.java new file mode 100644 index 0000000..42f67bf --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/FuncDef.java @@ -0,0 +1,61 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +import java.util.List; + +/** + * Def statements. + */ +public class FuncDef extends Declaration { + + /** + * Defined name. + */ + public final Identifier name; + /** + * Formal parameters. + */ + public final List params; + /** + * Return type annotation. + */ + public final TypeAnnotation returnType; + /** + * Local-variable,inner-function, global, and nonlocal declarations. + */ + public final List declarations; + /** + * Other statements. + */ + public final List statements; + + /** + * The AST for + * def NAME(PARAMS) -> RETURNTYPE: + * DECLARATIONS + * STATEMENTS + * spanning source locations [LEFT..RIGHT]. + */ + public FuncDef(Location left, Location right, + Identifier name, List params, + TypeAnnotation returnType, + List declarations, List statements) { + super(left, right); + this.name = name; + this.params = params; + this.returnType = returnType; + this.declarations = declarations; + this.statements = statements; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + + @Override + public Identifier getIdentifier() { + return this.name; + } +} diff --git a/src/main/java/chocopy/common/astnodes/GlobalDecl.java b/src/main/java/chocopy/common/astnodes/GlobalDecl.java new file mode 100644 index 0000000..3bac547 --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/GlobalDecl.java @@ -0,0 +1,34 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +/** + * Declaration of global variable. + */ +public class GlobalDecl extends Declaration { + + /** + * The declared variable. + */ + public final Identifier variable; + + /** + * The AST for the declaration + * global VARIABLE + * spanning source locations [LEFT..RIGHT]. + */ + public GlobalDecl(Location left, Location right, Identifier variable) { + super(left, right); + this.variable = variable; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + + @Override + public Identifier getIdentifier() { + return this.variable; + } +} diff --git a/src/main/java/chocopy/common/astnodes/Identifier.java b/src/main/java/chocopy/common/astnodes/Identifier.java new file mode 100644 index 0000000..b1aeea5 --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/Identifier.java @@ -0,0 +1,29 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +/** + * A simple identifier. + */ +public class Identifier extends Expr { + + /** + * Text of the identifier. + */ + public final String name; + + /** + * An AST for the variable, method, or parameter named NAME, spanning + * source locations [LEFT..RIGHT]. + */ + public Identifier(Location left, Location right, String name) { + super(left, right); + this.name = name; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + +} diff --git a/src/main/java/chocopy/common/astnodes/IfExpr.java b/src/main/java/chocopy/common/astnodes/IfExpr.java new file mode 100644 index 0000000..67d5b13 --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/IfExpr.java @@ -0,0 +1,40 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +/** + * Conditional expressions. + */ +public class IfExpr extends Expr { + /** + * Boolean condition. + */ + public final Expr condition; + /** + * True branch. + */ + public final Expr thenExpr; + /** + * False branch. + */ + public final Expr elseExpr; + + /** + * The AST for + * THENEXPR if CONDITION else ELSEEXPR + * spanning source locations [LEFT..RIGHT]. + */ + public IfExpr(Location left, Location right, + Expr condition, Expr thenExpr, Expr elseExpr) { + super(left, right); + this.condition = condition; + this.thenExpr = thenExpr; + this.elseExpr = elseExpr; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + +} diff --git a/src/main/java/chocopy/common/astnodes/IfStmt.java b/src/main/java/chocopy/common/astnodes/IfStmt.java new file mode 100644 index 0000000..16da823 --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/IfStmt.java @@ -0,0 +1,45 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +import java.util.List; + +/** + * Conditional statement. + */ +public class IfStmt extends Stmt { + /** + * Test condition. + */ + public final Expr condition; + /** + * "True" branch. + */ + public final List thenBody; + /** + * "False" branch. + */ + public final List elseBody; + + /** + * The AST for + * if CONDITION: + * THENBODY + * else: + * ELSEBODY + * spanning source locations [LEFT..RIGHT]. + */ + public IfStmt(Location left, Location right, + Expr condition, List thenBody, List elseBody) { + super(left, right); + this.condition = condition; + this.thenBody = thenBody; + this.elseBody = elseBody; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + +} diff --git a/src/main/java/chocopy/common/astnodes/IndexExpr.java b/src/main/java/chocopy/common/astnodes/IndexExpr.java new file mode 100644 index 0000000..8038c3f --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/IndexExpr.java @@ -0,0 +1,35 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +/** + * List-indexing expression. + */ +public class IndexExpr extends Expr { + + /** + * Indexed list. + */ + public final Expr list; + /** + * Expression for index value. + */ + public final Expr index; + + /** + * The AST for + * LIST[INDEX]. + * spanning source locations [LEFT..RIGHT]. + */ + public IndexExpr(Location left, Location right, Expr list, Expr index) { + super(left, right); + this.list = list; + this.index = index; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + +} diff --git a/src/main/java/chocopy/common/astnodes/IntegerLiteral.java b/src/main/java/chocopy/common/astnodes/IntegerLiteral.java new file mode 100644 index 0000000..d383472 --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/IntegerLiteral.java @@ -0,0 +1,29 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +/** + * Integer numerals. + */ +public final class IntegerLiteral extends Literal { + + /** + * Value denoted. + */ + public final int value; + + /** + * The AST for the literal VALUE, spanning source + * locations [LEFT..RIGHT]. + */ + public IntegerLiteral(Location left, Location right, int value) { + super(left, right); + this.value = value; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + +} diff --git a/src/main/java/chocopy/common/astnodes/ListExpr.java b/src/main/java/chocopy/common/astnodes/ListExpr.java new file mode 100644 index 0000000..226d42b --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/ListExpr.java @@ -0,0 +1,32 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +import java.util.List; + +/** + * List displays. + */ +public final class ListExpr extends Expr { + + /** + * List of element expressions. + */ + public final List elements; + + /** + * The AST for + * [ ELEMENTS ]. + * spanning source locations [LEFT..RIGHT]. + */ + public ListExpr(Location left, Location right, List elements) { + super(left, right); + this.elements = elements; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + +} diff --git a/src/main/java/chocopy/common/astnodes/ListType.java b/src/main/java/chocopy/common/astnodes/ListType.java new file mode 100644 index 0000000..0cbf0a0 --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/ListType.java @@ -0,0 +1,30 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +/** + * Type denotation for a list type. + */ +public final class ListType extends TypeAnnotation { + + /** + * The element of list element. + */ + public final TypeAnnotation elementType; + + /** + * The AST for the type annotation + * [ ELEMENTTYPE ]. + * spanning source locations [LEFT..RIGHT]. + */ + public ListType(Location left, Location right, TypeAnnotation elementType) { + super(left, right); + this.elementType = elementType; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + +} diff --git a/src/main/java/chocopy/common/astnodes/Literal.java b/src/main/java/chocopy/common/astnodes/Literal.java new file mode 100644 index 0000000..ac2c026 --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/Literal.java @@ -0,0 +1,18 @@ +package chocopy.common.astnodes; + +import java_cup.runtime.ComplexSymbolFactory.Location; + +/** + * Base of all the literal nodes. + *

+ * There is nothing in this class, but it is useful to isolate + * expressions that are constant literals. + */ +public abstract class Literal extends Expr { + /** + * A literal spanning source locations [LEFT..RIGHT]. + */ + public Literal(Location left, Location right) { + super(left, right); + } +} diff --git a/src/main/java/chocopy/common/astnodes/MemberExpr.java b/src/main/java/chocopy/common/astnodes/MemberExpr.java new file mode 100644 index 0000000..a59abe7 --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/MemberExpr.java @@ -0,0 +1,36 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +/** + * Attribute accessor. + */ +public class MemberExpr extends Expr { + + /** + * Object selected from. + */ + public final Expr object; + /** + * Name of attribute (instance variable or method). + */ + public final Identifier member; + + /** + * The AST for + * OBJECT.MEMBER. + * spanning source locations [LEFT..RIGHT]. + */ + public MemberExpr(Location left, Location right, + Expr object, Identifier member) { + super(left, right); + this.object = object; + this.member = member; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + +} diff --git a/src/main/java/chocopy/common/astnodes/MethodCallExpr.java b/src/main/java/chocopy/common/astnodes/MethodCallExpr.java new file mode 100644 index 0000000..7674a13 --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/MethodCallExpr.java @@ -0,0 +1,38 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +import java.util.List; + +/** + * Method calls. + */ +public class MethodCallExpr extends Expr { + + /** + * Expression for the bound method to be called. + */ + public final MemberExpr method; + /** + * Actual parameters. + */ + public final List args; + + /** + * The AST for + * METHOD(ARGS). + * spanning source locations [LEFT..RIGHT]. + */ + public MethodCallExpr(Location left, Location right, + MemberExpr method, List args) { + super(left, right); + this.method = method; + this.args = args; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + +} diff --git a/src/main/java/chocopy/common/astnodes/Node.java b/src/main/java/chocopy/common/astnodes/Node.java new file mode 100644 index 0000000..d84345b --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/Node.java @@ -0,0 +1,204 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.SerializationFeature; +import com.fasterxml.jackson.module.paramnames.ParameterNamesModule; +import java_cup.runtime.ComplexSymbolFactory.Location; + +import java.io.IOException; + +/** + * Root of the AST class hierarchy. Every node has a left and right + * location, indicating the start and end of the represented construct + * in the source text. + *

+ * Every node can be marked with an error message, which serves two purposes: + * 1. It indicates that an error message has been issued for this + * Node, allowing tne program to reduce cascades of error + * messages. + * 2. It aids in debugging by making it convenient to see which + * Nodes have caused an error. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "kind") +/* List of all concrete subclasses of Node. */ +@JsonSubTypes({ + @JsonSubTypes.Type(AssignStmt.class), + @JsonSubTypes.Type(BinaryExpr.class), + @JsonSubTypes.Type(BooleanLiteral.class), + @JsonSubTypes.Type(CallExpr.class), + @JsonSubTypes.Type(ClassDef.class), + @JsonSubTypes.Type(ClassType.class), + @JsonSubTypes.Type(CompilerError.class), + @JsonSubTypes.Type(Errors.class), + @JsonSubTypes.Type(ExprStmt.class), + @JsonSubTypes.Type(ForStmt.class), + @JsonSubTypes.Type(FuncDef.class), + @JsonSubTypes.Type(GlobalDecl.class), + @JsonSubTypes.Type(Identifier.class), + @JsonSubTypes.Type(IfExpr.class), + @JsonSubTypes.Type(IfStmt.class), + @JsonSubTypes.Type(IndexExpr.class), + @JsonSubTypes.Type(IntegerLiteral.class), + @JsonSubTypes.Type(ListExpr.class), + @JsonSubTypes.Type(ListType.class), + @JsonSubTypes.Type(MemberExpr.class), + @JsonSubTypes.Type(MethodCallExpr.class), + @JsonSubTypes.Type(NoneLiteral.class), + @JsonSubTypes.Type(NonLocalDecl.class), + @JsonSubTypes.Type(Program.class), + @JsonSubTypes.Type(ReturnStmt.class), + @JsonSubTypes.Type(StringLiteral.class), + @JsonSubTypes.Type(TypedVar.class), + @JsonSubTypes.Type(UnaryExpr.class), + @JsonSubTypes.Type(VarDef.class), + @JsonSubTypes.Type(WhileStmt.class), +}) +public abstract class Node { + + /** + * Node-type indicator for JSON form. + */ + public final String kind; + + /** + * Source position information: 0: line number of start, 1: column number + * of start, 2: line number of end, 3: column number of end. + */ + private final int[] location = new int[4]; + + /** + * First error message "blamed" on this Node. When non-null, indicates + * that an error has been found in this Node. + */ + @JsonInclude(JsonInclude.Include.NON_EMPTY) + private String errorMsg; + + /** + * A Node corresponding to source text between LEFT and RIGHT. + */ + public Node(Location left, Location right) { + if (left != null) { + location[0] = left.getLine(); + location[1] = left.getColumn(); + } + if (right != null) { + location[2] = right.getLine(); + location[3] = right.getColumn(); + } + this.kind = getClass().getSimpleName(); + this.errorMsg = null; + } + + /** + * Return my source location as + * { , , , }. + * Result should not be modified, and contents will change after + * setLocation(). + */ + public int[] getLocation() { + return location; + } + + /** + * Copy LOCATION as getLocation(). + */ + public void setLocation(final int[] location) { + System.arraycopy(location, 0, this.location, 0, 4); + } + + public String getErrorMsg() { + return errorMsg; + } + + public void setErrorMsg(String msg) { + this.errorMsg = msg; + } + + /** + * Return true iff I have been marked with an error message. + */ + @JsonIgnore + public boolean hasError() { + return this.errorMsg != null; + } + + /** + * Invoke ANALYZER on me as a node of static type T. See the comment + * on NodeAnalyzer. Returns modified Node. + */ + public abstract T dispatch(NodeAnalyzer analyzer); + + /** + * Print out the AST in JSON format. + */ + @Override + public String toString() { + try { + return toJSON(); + } catch (JsonProcessingException e) { + throw new RuntimeException(e); + } + } + + /** + * Return a serialization of this node in JSON format. + */ + public String toJSON() throws JsonProcessingException { + return mapper.writeValueAsString(this); + } + + /** + * Mapper to-and-from serialized JSON. + */ + private static final ObjectMapper mapper = new ObjectMapper(); + + static { + mapper.enable(SerializationFeature.INDENT_OUTPUT); + mapper.registerModule(new ParameterNamesModule()); + } + + /** + * Returns a T from JSON, a JSON-serialized T value with class + * CLAS. + */ + public static T fromJSON(String json, Class clas) + throws IOException { + return mapper.readValue(json, clas); + } + + /** + * Returns the result of converting JSON, a JSon-serialization of + * a Node value, into the value it serializes. + */ + public static Node fromJSON(String json) + throws IOException { + return fromJSON(json, Node.class); + } + + /** + * Returns the result of converting TREE to the value of type T + * that it represents, where CLAS reflects T. + */ + public static T fromJSON(JsonNode tree, Class clas) + throws IOException { + return mapper.treeToValue(tree, clas); + } + + /** + * Returns the translation of serialized value SRC into the + * corresponding JSON tree. + */ + public static JsonNode readTree(String src) throws IOException { + return mapper.readTree(src); + } + +} diff --git a/src/main/java/chocopy/common/astnodes/NonLocalDecl.java b/src/main/java/chocopy/common/astnodes/NonLocalDecl.java new file mode 100644 index 0000000..d03508e --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/NonLocalDecl.java @@ -0,0 +1,34 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +/** + * Nonlocal declaration. + */ +public class NonLocalDecl extends Declaration { + + /** + * Name of identifier being declared. + */ + public final Identifier variable; + + /** + * The AST for + * nonlocal VARIABLE + * spanning source locations [LEFT..RIGHT]. + */ + public NonLocalDecl(Location left, Location right, Identifier variable) { + super(left, right); + this.variable = variable; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + + @Override + public Identifier getIdentifier() { + return this.variable; + } +} diff --git a/src/main/java/chocopy/common/astnodes/NoneLiteral.java b/src/main/java/chocopy/common/astnodes/NoneLiteral.java new file mode 100644 index 0000000..d38211c --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/NoneLiteral.java @@ -0,0 +1,21 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +/** + * The expression 'None'. + */ +public final class NoneLiteral extends Literal { + + /** + * The AST for None, spanning source locations [LEFT..RIGHT]. + */ + public NoneLiteral(Location left, Location right) { + super(left, right); + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } +} diff --git a/src/main/java/chocopy/common/astnodes/Program.java b/src/main/java/chocopy/common/astnodes/Program.java new file mode 100644 index 0000000..29dd28e --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/Program.java @@ -0,0 +1,70 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java_cup.runtime.ComplexSymbolFactory.Location; + +import java.util.ArrayList; +import java.util.List; + +/** + * An entire ChocoPy program. + */ +public class Program extends Node { + + /** + * Initial variable, class, and function declarations. + */ + public final List declarations; + /** + * Trailing statements. + */ + public final List statements; + /** + * Accumulated errors. + */ + public final Errors errors; + + /** + * The AST for the program + * DECLARATIONS + * STATEMENTS + * spanning source locations [LEFT..RIGHT]. + *

+ * ERRORS is the container for all error messages applying to the + * program. + */ + public Program(Location left, Location right, + List declarations, List statements, + Errors errors) { + super(left, right); + this.declarations = declarations; + this.statements = statements; + if (errors == null) { + this.errors = new Errors(new ArrayList<>()); + } else { + this.errors = errors; + } + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + + /** + * Returns true iff there is at least one error in the program. + */ + @JsonIgnore + public boolean hasErrors() { + return errors.hasErrors(); + } + + /** + * A convenience method returning the list of all CompilerErrors for + * this program. + */ + @JsonIgnore + public List getErrorList() { + return errors.errors; + } +} diff --git a/src/main/java/chocopy/common/astnodes/ReturnStmt.java b/src/main/java/chocopy/common/astnodes/ReturnStmt.java new file mode 100644 index 0000000..f4751c7 --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/ReturnStmt.java @@ -0,0 +1,30 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +/** + * Return from function. + */ +public class ReturnStmt extends Stmt { + + /** + * Returned value. + */ + public final Expr value; + + /** + * The AST for + * return VALUE + * spanning source locations [LEFT..RIGHT]. + */ + public ReturnStmt(Location left, Location right, Expr value) { + super(left, right); + this.value = value; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + +} diff --git a/src/main/java/chocopy/common/astnodes/Stmt.java b/src/main/java/chocopy/common/astnodes/Stmt.java new file mode 100644 index 0000000..a2642fd --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/Stmt.java @@ -0,0 +1,21 @@ +package chocopy.common.astnodes; + +import java_cup.runtime.ComplexSymbolFactory.Location; + +/** + * Base of all AST nodes representing statements. + *

+ * There is nothing in this class, but there will be some AST + * node types that have fields that are *any statement* or a + * list of statements. For those cases, having a field of this type will + * encompass all types of statements such as expression statements, + * if statements, while statements, etc. + */ +public abstract class Stmt extends Node { + /** + * A statement spanning source locations [LEFT..RIGHT]. + */ + public Stmt(Location left, Location right) { + super(left, right); + } +} diff --git a/src/main/java/chocopy/common/astnodes/StringLiteral.java b/src/main/java/chocopy/common/astnodes/StringLiteral.java new file mode 100644 index 0000000..5adb024 --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/StringLiteral.java @@ -0,0 +1,29 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +/** + * String constants. + */ +public final class StringLiteral extends Literal { + + /** + * Contents of the literal, not including quotation marks. + */ + public final String value; + + /** + * The AST for a string literal containing VALUE, spanning source + * locations [LEFT..RIGHT]. + */ + public StringLiteral(Location left, Location right, String value) { + super(left, right); + this.value = value; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + +} diff --git a/src/main/java/chocopy/common/astnodes/TypeAnnotation.java b/src/main/java/chocopy/common/astnodes/TypeAnnotation.java new file mode 100644 index 0000000..1002a86 --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/TypeAnnotation.java @@ -0,0 +1,16 @@ +package chocopy.common.astnodes; + +import java_cup.runtime.ComplexSymbolFactory.Location; + +/** + * Base of all AST nodes representing type annotations (list or class + * types. + */ +public abstract class TypeAnnotation extends Node { + /** + * An annotation spanning source locations [LEFT..RIGHT]. + */ + public TypeAnnotation(Location left, Location right) { + super(left, right); + } +} diff --git a/src/main/java/chocopy/common/astnodes/TypedVar.java b/src/main/java/chocopy/common/astnodes/TypedVar.java new file mode 100644 index 0000000..7593775 --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/TypedVar.java @@ -0,0 +1,36 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +/** + * An identifier with attached type annotation. + */ +public class TypedVar extends Node { + + /** + * The typed identifier. + */ + public final Identifier identifier; + /** + * The declared type. + */ + public final TypeAnnotation type; + + /** + * The AST for + * IDENTIFIER : TYPE. + * spanning source locations [LEFT..RIGHT]. + */ + public TypedVar(Location left, Location right, + Identifier identifier, TypeAnnotation type) { + super(left, right); + this.identifier = identifier; + this.type = type; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + +} diff --git a/src/main/java/chocopy/common/astnodes/UnaryExpr.java b/src/main/java/chocopy/common/astnodes/UnaryExpr.java new file mode 100644 index 0000000..10ba57f --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/UnaryExpr.java @@ -0,0 +1,36 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +/** + * An expression applying a unary operator. + */ +public class UnaryExpr extends Expr { + + /** + * The text representation of the operator. + */ + public final String operator; + /** + * The operand to which it is applied. + */ + public final Expr operand; + + /** + * The AST for + * OPERATOR OPERAND + * spanning source locations [LEFT..RIGHT]. + */ + public UnaryExpr(Location left, Location right, + String operator, Expr operand) { + super(left, right); + this.operator = operator; + this.operand = operand; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + +} diff --git a/src/main/java/chocopy/common/astnodes/VarDef.java b/src/main/java/chocopy/common/astnodes/VarDef.java new file mode 100644 index 0000000..047b63b --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/VarDef.java @@ -0,0 +1,42 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +/** + * A declaration of a variable (i.e., with type annotation). + */ +public class VarDef extends Declaration { + /** + * The variable and its assigned type. + */ + public final TypedVar var; + /** + * The initial value assigned. + */ + public final Literal value; + + /** + * The AST for + * VAR = VALUE + * where VAR has a type annotation, and spanning source + * locations [LEFT..RIGHT]. + */ + public VarDef(Location left, Location right, TypedVar var, Literal value) { + super(left, right); + this.var = var; + this.value = value; + } + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + + /** + * The identifier defined by this declaration. + */ + @Override + public Identifier getIdentifier() { + return this.var.identifier; + } +} diff --git a/src/main/java/chocopy/common/astnodes/WhileStmt.java b/src/main/java/chocopy/common/astnodes/WhileStmt.java new file mode 100644 index 0000000..2936771 --- /dev/null +++ b/src/main/java/chocopy/common/astnodes/WhileStmt.java @@ -0,0 +1,39 @@ +package chocopy.common.astnodes; + +import chocopy.common.analysis.NodeAnalyzer; +import java_cup.runtime.ComplexSymbolFactory.Location; + +import java.util.List; + +/** + * Indefinite repetition construct. + */ +public class WhileStmt extends Stmt { + /** + * Test for whether to continue. + */ + public final Expr condition; + /** + * Loop body. + */ + public final List body; + + /** + * The AST for + * while CONDITION: + * BODY + * spanning source locations [LEFT..RIGHT]. + */ + public WhileStmt(Location left, Location right, + Expr condition, List body) { + super(left, right); + this.condition = condition; + this.body = body; + } + + + public T dispatch(NodeAnalyzer analyzer) { + return analyzer.analyze(this); + } + +} diff --git a/src/main/java/chocopy/pa1/StudentParser.java b/src/main/java/chocopy/pa1/StudentParser.java new file mode 100644 index 0000000..c29db68 --- /dev/null +++ b/src/main/java/chocopy/pa1/StudentParser.java @@ -0,0 +1,25 @@ +package chocopy.pa1; + +import chocopy.common.astnodes.Program; +import java_cup.runtime.ComplexSymbolFactory; + +import java.io.StringReader; + +/** + * Interface between driver and parser. + */ +public class StudentParser { + + /** + * Return the Program AST resulting from parsing INPUT. Turn on + * parser debugging iff DEBUG. + */ + public static Program process(String input, boolean debug) { + ChocoPyLexer lexer = new ChocoPyLexer(new StringReader(input)); + ChocoPyParser parser = + new ChocoPyParser(lexer, new ComplexSymbolFactory()); + return parser.parseProgram(debug); + } +} + + diff --git a/src/main/jflex/chocopy/pa1/ChocoPy.jflex b/src/main/jflex/chocopy/pa1/ChocoPy.jflex new file mode 100644 index 0000000..9aafe7f --- /dev/null +++ b/src/main/jflex/chocopy/pa1/ChocoPy.jflex @@ -0,0 +1,82 @@ +package chocopy.pa1; +import java_cup.runtime.*; + +%% + +/*** Do not change the flags below unless you know what you are doing. ***/ + +%unicode +%line +%column + +%class ChocoPyLexer +%public + +%cupsym ChocoPyTokens +%cup +%cupdebug + +%eofclose false + +/*** Do not change the flags above unless you know what you are doing. ***/ + +/* The following code section is copied verbatim to the + * generated lexer class. */ +%{ + /* The code below includes some convenience methods to create tokens + * of a given type and optionally a value that the CUP parser can + * understand. Specifically, a lot of the logic below deals with + * embedded information about where in the source code a given token + * was recognized, so that the parser can report errors accurately. + * (It need not be modified for this project.) */ + + /** Producer of token-related values for the parser. */ + final ComplexSymbolFactory symbolFactory = new ComplexSymbolFactory(); + + /** Return a terminal symbol of syntactic category TYPE and no + * semantic value at the current source location. */ + private Symbol symbol(int type) { + return symbol(type, yytext()); + } + + /** Return a terminal symbol of syntactic category TYPE and semantic + * value VALUE at the current source location. */ + private Symbol symbol(int type, Object value) { + return symbolFactory.newSymbol(ChocoPyTokens.terminalNames[type], type, + new ComplexSymbolFactory.Location(yyline + 1, yycolumn + 1), + new ComplexSymbolFactory.Location(yyline + 1,yycolumn + yylength()), + value); + } + +%} + +/* Macros (regexes used in rules below) */ + +WhiteSpace = [ \t] +LineBreak = \r|\n|\r\n + +IntegerLiteral = 0 | [1-9][0-9]* + +%% + + + { + + /* Delimiters. */ + {LineBreak} { return symbol(ChocoPyTokens.NEWLINE); } + + /* Literals. */ + {IntegerLiteral} { return symbol(ChocoPyTokens.NUMBER, + Integer.parseInt(yytext())); } + + /* Operators. */ + "+" { return symbol(ChocoPyTokens.PLUS, yytext()); } + + /* Whitespace. */ + {WhiteSpace} { /* ignore */ } +} + +<> { return symbol(ChocoPyTokens.EOF); } + +/* Error fallback. */ +[^] { return symbol(ChocoPyTokens.UNRECOGNIZED); } diff --git a/src/test/data/pa1/sample/bad_assign_expr1.py b/src/test/data/pa1/sample/bad_assign_expr1.py new file mode 100644 index 0000000..ccc8c3e --- /dev/null +++ b/src/test/data/pa1/sample/bad_assign_expr1.py @@ -0,0 +1 @@ +x = (y = 2) diff --git a/src/test/data/pa1/sample/bad_assign_expr1.py.ast b/src/test/data/pa1/sample/bad_assign_expr1.py.ast new file mode 100644 index 0000000..d134770 --- /dev/null +++ b/src/test/data/pa1/sample/bad_assign_expr1.py.ast @@ -0,0 +1,16 @@ +{ + "kind" : "Program", + "location" : [ 1, 6, 1, 6 ], + "declarations" : [ ], + "statements" : [ ], + "errors" : { + "errors" : [ { + "kind" : "CompilerError", + "location" : [ 1, 8, 1, 8 ], + "message" : "Parse error near token EQ: =", + "syntax" : true + } ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/bad_assign_expr2.py b/src/test/data/pa1/sample/bad_assign_expr2.py new file mode 100644 index 0000000..444bc53 --- /dev/null +++ b/src/test/data/pa1/sample/bad_assign_expr2.py @@ -0,0 +1 @@ +print(x = 1) diff --git a/src/test/data/pa1/sample/bad_assign_expr2.py.ast b/src/test/data/pa1/sample/bad_assign_expr2.py.ast new file mode 100644 index 0000000..53e699c --- /dev/null +++ b/src/test/data/pa1/sample/bad_assign_expr2.py.ast @@ -0,0 +1,16 @@ +{ + "kind" : "Program", + "location" : [ 1, 7, 1, 7 ], + "declarations" : [ ], + "statements" : [ ], + "errors" : { + "errors" : [ { + "kind" : "CompilerError", + "location" : [ 1, 9, 1, 9 ], + "message" : "Parse error near token EQ: =", + "syntax" : true + } ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/bad_func_def.py b/src/test/data/pa1/sample/bad_func_def.py new file mode 100644 index 0000000..ebd2373 --- /dev/null +++ b/src/test/data/pa1/sample/bad_func_def.py @@ -0,0 +1,6 @@ +def foo(a, b) -> 1: + x:int = a + return 1 + +print(1) +print(3**6) diff --git a/src/test/data/pa1/sample/bad_func_def.py.ast b/src/test/data/pa1/sample/bad_func_def.py.ast new file mode 100644 index 0000000..934bef0 --- /dev/null +++ b/src/test/data/pa1/sample/bad_func_def.py.ast @@ -0,0 +1,64 @@ +{ + "kind" : "Program", + "location" : [ 2, 13, 6, 8 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 2, 13, 2, 13 ], + "expr" : { + "kind" : "Identifier", + "location" : [ 2, 13, 2, 13 ], + "name" : "a" + } + }, { + "kind" : "ReturnStmt", + "location" : [ 3, 5, 3, 12 ], + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 3, 12, 3, 12 ], + "value" : 1 + } + }, { + "kind" : "ExprStmt", + "location" : [ 5, 1, 5, 8 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 5, 1, 5, 8 ], + "function" : { + "kind" : "Identifier", + "location" : [ 5, 1, 5, 5 ], + "name" : "print" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 5, 7, 5, 7 ], + "value" : 1 + } ] + } + } ], + "errors" : { + "errors" : [ { + "kind" : "CompilerError", + "location" : [ 1, 10, 1, 10 ], + "message" : "Parse error near token COMMA: ,", + "syntax" : true + }, { + "kind" : "CompilerError", + "location" : [ 2, 13, 2, 13 ], + "message" : "Parse error near token IDENTIFIER: a", + "syntax" : true + }, { + "kind" : "CompilerError", + "location" : [ 5, 1, 5, 0 ], + "message" : "Parse error near token DEDENT: ", + "syntax" : true + }, { + "kind" : "CompilerError", + "location" : [ 6, 9, 6, 9 ], + "message" : "Parse error near token TIMES: *", + "syntax" : true + } ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/bad_indentation.py b/src/test/data/pa1/sample/bad_indentation.py new file mode 100644 index 0000000..670b7ab --- /dev/null +++ b/src/test/data/pa1/sample/bad_indentation.py @@ -0,0 +1,3 @@ +x = 1 + y = 2 +z = 3 diff --git a/src/test/data/pa1/sample/bad_indentation.py.ast b/src/test/data/pa1/sample/bad_indentation.py.ast new file mode 100644 index 0000000..f37b92e --- /dev/null +++ b/src/test/data/pa1/sample/bad_indentation.py.ast @@ -0,0 +1,47 @@ +{ + "kind" : "Program", + "location" : [ 2, 3, 3, 6 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 2, 3, 2, 7 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 2, 3, 2, 3 ], + "name" : "y" + } ], + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 2, 7, 2, 7 ], + "value" : 2 + } + }, { + "kind" : "AssignStmt", + "location" : [ 3, 1, 3, 5 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 3, 1, 3, 1 ], + "name" : "z" + } ], + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 3, 5, 3, 5 ], + "value" : 3 + } + } ], + "errors" : { + "errors" : [ { + "kind" : "CompilerError", + "location" : [ 2, 1, 2, 2 ], + "message" : "Parse error near token INDENT: ", + "syntax" : true + }, { + "kind" : "CompilerError", + "location" : [ 3, 1, 3, 0 ], + "message" : "Parse error near token DEDENT: ", + "syntax" : true + } ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/bad_stmt.py b/src/test/data/pa1/sample/bad_stmt.py new file mode 100644 index 0000000..8e8a4da --- /dev/null +++ b/src/test/data/pa1/sample/bad_stmt.py @@ -0,0 +1,4 @@ +1 + 2 +3 == 4 or (not False && True) +5 + 6 +7 << 8 diff --git a/src/test/data/pa1/sample/bad_stmt.py.ast b/src/test/data/pa1/sample/bad_stmt.py.ast new file mode 100644 index 0000000..afe9602 --- /dev/null +++ b/src/test/data/pa1/sample/bad_stmt.py.ast @@ -0,0 +1,65 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 4, 7 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 1, 1, 1, 5 ], + "expr" : { + "kind" : "BinaryExpr", + "location" : [ 1, 1, 1, 5 ], + "left" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 1, 1, 1 ], + "value" : 1 + }, + "operator" : "+", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 5, 1, 5 ], + "value" : 2 + } + } + }, { + "kind" : "ExprStmt", + "location" : [ 3, 1, 3, 5 ], + "expr" : { + "kind" : "BinaryExpr", + "location" : [ 3, 1, 3, 5 ], + "left" : { + "kind" : "IntegerLiteral", + "location" : [ 3, 1, 3, 1 ], + "value" : 5 + }, + "operator" : "+", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 3, 5, 3, 5 ], + "value" : 6 + } + } + }, { + "kind" : "ExprStmt", + "location" : [ 4, 6, 4, 6 ], + "expr" : { + "kind" : "IntegerLiteral", + "location" : [ 4, 6, 4, 6 ], + "value" : 8 + } + } ], + "errors" : { + "errors" : [ { + "kind" : "CompilerError", + "location" : [ 2, 22, 2, 22 ], + "message" : "Parse error near token UNRECOGNIZED: &", + "syntax" : true + }, { + "kind" : "CompilerError", + "location" : [ 4, 4, 4, 4 ], + "message" : "Parse error near token LT: <", + "syntax" : true + } ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/chained_mixed_assignments.py b/src/test/data/pa1/sample/chained_mixed_assignments.py new file mode 100644 index 0000000..46a230a --- /dev/null +++ b/src/test/data/pa1/sample/chained_mixed_assignments.py @@ -0,0 +1,2 @@ +x[0] = y = z.f = 1 +z.g = y = x[0] diff --git a/src/test/data/pa1/sample/chained_mixed_assignments.py.ast b/src/test/data/pa1/sample/chained_mixed_assignments.py.ast new file mode 100644 index 0000000..9654bf6 --- /dev/null +++ b/src/test/data/pa1/sample/chained_mixed_assignments.py.ast @@ -0,0 +1,85 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 2, 15 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 1, 1, 1, 18 ], + "targets" : [ { + "kind" : "IndexExpr", + "location" : [ 1, 1, 1, 4 ], + "list" : { + "kind" : "Identifier", + "location" : [ 1, 1, 1, 1 ], + "name" : "x" + }, + "index" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 3, 1, 3 ], + "value" : 0 + } + }, { + "kind" : "Identifier", + "location" : [ 1, 8, 1, 8 ], + "name" : "y" + }, { + "kind" : "MemberExpr", + "location" : [ 1, 12, 1, 14 ], + "object" : { + "kind" : "Identifier", + "location" : [ 1, 12, 1, 12 ], + "name" : "z" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 1, 14, 1, 14 ], + "name" : "f" + } + } ], + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 18, 1, 18 ], + "value" : 1 + } + }, { + "kind" : "AssignStmt", + "location" : [ 2, 1, 2, 14 ], + "targets" : [ { + "kind" : "MemberExpr", + "location" : [ 2, 1, 2, 3 ], + "object" : { + "kind" : "Identifier", + "location" : [ 2, 1, 2, 1 ], + "name" : "z" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 2, 3, 2, 3 ], + "name" : "g" + } + }, { + "kind" : "Identifier", + "location" : [ 2, 7, 2, 7 ], + "name" : "y" + } ], + "value" : { + "kind" : "IndexExpr", + "location" : [ 2, 11, 2, 14 ], + "list" : { + "kind" : "Identifier", + "location" : [ 2, 11, 2, 11 ], + "name" : "x" + }, + "index" : { + "kind" : "IntegerLiteral", + "location" : [ 2, 13, 2, 13 ], + "value" : 0 + } + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/chained_var_assignments.py b/src/test/data/pa1/sample/chained_var_assignments.py new file mode 100644 index 0000000..b253c2a --- /dev/null +++ b/src/test/data/pa1/sample/chained_var_assignments.py @@ -0,0 +1 @@ +x = y = z = 1 diff --git a/src/test/data/pa1/sample/chained_var_assignments.py.ast b/src/test/data/pa1/sample/chained_var_assignments.py.ast new file mode 100644 index 0000000..28f0ea7 --- /dev/null +++ b/src/test/data/pa1/sample/chained_var_assignments.py.ast @@ -0,0 +1,32 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 1, 14 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 1, 1, 1, 13 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 1, 1, 1, 1 ], + "name" : "x" + }, { + "kind" : "Identifier", + "location" : [ 1, 5, 1, 5 ], + "name" : "y" + }, { + "kind" : "Identifier", + "location" : [ 1, 9, 1, 9 ], + "name" : "z" + } ], + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 13, 1, 13 ], + "value" : 1 + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/class_attr.py b/src/test/data/pa1/sample/class_attr.py new file mode 100644 index 0000000..bb1e1cd --- /dev/null +++ b/src/test/data/pa1/sample/class_attr.py @@ -0,0 +1,4 @@ +class Foo(object): + x:int = 1 + +f = Foo() diff --git a/src/test/data/pa1/sample/class_attr.py.ast b/src/test/data/pa1/sample/class_attr.py.ast new file mode 100644 index 0000000..4fdab40 --- /dev/null +++ b/src/test/data/pa1/sample/class_attr.py.ast @@ -0,0 +1,65 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 4, 10 ], + "declarations" : [ { + "kind" : "ClassDef", + "location" : [ 1, 1, 2, 14 ], + "name" : { + "kind" : "Identifier", + "location" : [ 1, 7, 1, 9 ], + "name" : "Foo" + }, + "superClass" : { + "kind" : "Identifier", + "location" : [ 1, 11, 1, 16 ], + "name" : "object" + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 2, 5, 2, 13 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 2, 5, 2, 9 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 2, 5, 2, 5 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 2, 7, 2, 9 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 2, 13, 2, 13 ], + "value" : 1 + } + } ] + } ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 4, 1, 4, 9 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 4, 1, 4, 1 ], + "name" : "f" + } ], + "value" : { + "kind" : "CallExpr", + "location" : [ 4, 5, 4, 9 ], + "function" : { + "kind" : "Identifier", + "location" : [ 4, 5, 4, 7 ], + "name" : "Foo" + }, + "args" : [ ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/class_attr_get.py b/src/test/data/pa1/sample/class_attr_get.py new file mode 100644 index 0000000..b4e6365 --- /dev/null +++ b/src/test/data/pa1/sample/class_attr_get.py @@ -0,0 +1,5 @@ +class Foo(object): + x:int = 1 + +f = Foo() +print(f.x) diff --git a/src/test/data/pa1/sample/class_attr_get.py.ast b/src/test/data/pa1/sample/class_attr_get.py.ast new file mode 100644 index 0000000..f286342 --- /dev/null +++ b/src/test/data/pa1/sample/class_attr_get.py.ast @@ -0,0 +1,91 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 5, 11 ], + "declarations" : [ { + "kind" : "ClassDef", + "location" : [ 1, 1, 2, 14 ], + "name" : { + "kind" : "Identifier", + "location" : [ 1, 7, 1, 9 ], + "name" : "Foo" + }, + "superClass" : { + "kind" : "Identifier", + "location" : [ 1, 11, 1, 16 ], + "name" : "object" + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 2, 5, 2, 13 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 2, 5, 2, 9 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 2, 5, 2, 5 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 2, 7, 2, 9 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 2, 13, 2, 13 ], + "value" : 1 + } + } ] + } ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 4, 1, 4, 9 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 4, 1, 4, 1 ], + "name" : "f" + } ], + "value" : { + "kind" : "CallExpr", + "location" : [ 4, 5, 4, 9 ], + "function" : { + "kind" : "Identifier", + "location" : [ 4, 5, 4, 7 ], + "name" : "Foo" + }, + "args" : [ ] + } + }, { + "kind" : "ExprStmt", + "location" : [ 5, 1, 5, 10 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 5, 1, 5, 10 ], + "function" : { + "kind" : "Identifier", + "location" : [ 5, 1, 5, 5 ], + "name" : "print" + }, + "args" : [ { + "kind" : "MemberExpr", + "location" : [ 5, 7, 5, 9 ], + "object" : { + "kind" : "Identifier", + "location" : [ 5, 7, 5, 7 ], + "name" : "f" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 5, 9, 5, 9 ], + "name" : "x" + } + } ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/class_attr_set.py b/src/test/data/pa1/sample/class_attr_set.py new file mode 100644 index 0000000..ac94bf8 --- /dev/null +++ b/src/test/data/pa1/sample/class_attr_set.py @@ -0,0 +1,5 @@ +class Foo(object): + x:int = 1 + +f = Foo() +f.x = 2 diff --git a/src/test/data/pa1/sample/class_attr_set.py.ast b/src/test/data/pa1/sample/class_attr_set.py.ast new file mode 100644 index 0000000..03d6bba --- /dev/null +++ b/src/test/data/pa1/sample/class_attr_set.py.ast @@ -0,0 +1,87 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 5, 8 ], + "declarations" : [ { + "kind" : "ClassDef", + "location" : [ 1, 1, 2, 14 ], + "name" : { + "kind" : "Identifier", + "location" : [ 1, 7, 1, 9 ], + "name" : "Foo" + }, + "superClass" : { + "kind" : "Identifier", + "location" : [ 1, 11, 1, 16 ], + "name" : "object" + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 2, 5, 2, 13 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 2, 5, 2, 9 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 2, 5, 2, 5 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 2, 7, 2, 9 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 2, 13, 2, 13 ], + "value" : 1 + } + } ] + } ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 4, 1, 4, 9 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 4, 1, 4, 1 ], + "name" : "f" + } ], + "value" : { + "kind" : "CallExpr", + "location" : [ 4, 5, 4, 9 ], + "function" : { + "kind" : "Identifier", + "location" : [ 4, 5, 4, 7 ], + "name" : "Foo" + }, + "args" : [ ] + } + }, { + "kind" : "AssignStmt", + "location" : [ 5, 1, 5, 7 ], + "targets" : [ { + "kind" : "MemberExpr", + "location" : [ 5, 1, 5, 3 ], + "object" : { + "kind" : "Identifier", + "location" : [ 5, 1, 5, 1 ], + "name" : "f" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 5, 3, 5, 3 ], + "name" : "x" + } + } ], + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 5, 7, 5, 7 ], + "value" : 2 + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/class_constructor.py b/src/test/data/pa1/sample/class_constructor.py new file mode 100644 index 0000000..46d7ccb --- /dev/null +++ b/src/test/data/pa1/sample/class_constructor.py @@ -0,0 +1,8 @@ +class Foo(object): + x:int = 0 + + def __init__(self:"Foo", x:int): + self.x = x + +f = Foo(1) +print(f.x) diff --git a/src/test/data/pa1/sample/class_constructor.py.ast b/src/test/data/pa1/sample/class_constructor.py.ast new file mode 100644 index 0000000..6850e03 --- /dev/null +++ b/src/test/data/pa1/sample/class_constructor.py.ast @@ -0,0 +1,159 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 8, 11 ], + "declarations" : [ { + "kind" : "ClassDef", + "location" : [ 1, 1, 7, 0 ], + "name" : { + "kind" : "Identifier", + "location" : [ 1, 7, 1, 9 ], + "name" : "Foo" + }, + "superClass" : { + "kind" : "Identifier", + "location" : [ 1, 11, 1, 16 ], + "name" : "object" + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 2, 5, 2, 13 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 2, 5, 2, 9 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 2, 5, 2, 5 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 2, 7, 2, 9 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 2, 13, 2, 13 ], + "value" : 0 + } + }, { + "kind" : "FuncDef", + "location" : [ 4, 5, 5, 19 ], + "name" : { + "kind" : "Identifier", + "location" : [ 4, 9, 4, 16 ], + "name" : "__init__" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 4, 18, 4, 27 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 4, 18, 4, 21 ], + "name" : "self" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 4, 23, 4, 27 ], + "className" : "Foo" + } + }, { + "kind" : "TypedVar", + "location" : [ 4, 30, 4, 34 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 4, 30, 4, 30 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 4, 32, 4, 34 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 4, 36, 4, 36 ], + "className" : "" + }, + "declarations" : [ ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 5, 9, 5, 18 ], + "targets" : [ { + "kind" : "MemberExpr", + "location" : [ 5, 9, 5, 14 ], + "object" : { + "kind" : "Identifier", + "location" : [ 5, 9, 5, 12 ], + "name" : "self" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 5, 14, 5, 14 ], + "name" : "x" + } + } ], + "value" : { + "kind" : "Identifier", + "location" : [ 5, 18, 5, 18 ], + "name" : "x" + } + } ] + } ] + } ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 7, 1, 7, 10 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 7, 1, 7, 1 ], + "name" : "f" + } ], + "value" : { + "kind" : "CallExpr", + "location" : [ 7, 5, 7, 10 ], + "function" : { + "kind" : "Identifier", + "location" : [ 7, 5, 7, 7 ], + "name" : "Foo" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 7, 9, 7, 9 ], + "value" : 1 + } ] + } + }, { + "kind" : "ExprStmt", + "location" : [ 8, 1, 8, 10 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 8, 1, 8, 10 ], + "function" : { + "kind" : "Identifier", + "location" : [ 8, 1, 8, 5 ], + "name" : "print" + }, + "args" : [ { + "kind" : "MemberExpr", + "location" : [ 8, 7, 8, 9 ], + "object" : { + "kind" : "Identifier", + "location" : [ 8, 7, 8, 7 ], + "name" : "f" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 8, 9, 8, 9 ], + "name" : "x" + } + } ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/class_method.py b/src/test/data/pa1/sample/class_method.py new file mode 100644 index 0000000..cc03ce2 --- /dev/null +++ b/src/test/data/pa1/sample/class_method.py @@ -0,0 +1,9 @@ +class Foo(object): + x:int = 0 + + def set(self:"Foo", x:int) -> object: + self.x = x + +f = Foo() +f.set(1) +print(f.x) diff --git a/src/test/data/pa1/sample/class_method.py.ast b/src/test/data/pa1/sample/class_method.py.ast new file mode 100644 index 0000000..66bc2e1 --- /dev/null +++ b/src/test/data/pa1/sample/class_method.py.ast @@ -0,0 +1,181 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 9, 11 ], + "declarations" : [ { + "kind" : "ClassDef", + "location" : [ 1, 1, 7, 0 ], + "name" : { + "kind" : "Identifier", + "location" : [ 1, 7, 1, 9 ], + "name" : "Foo" + }, + "superClass" : { + "kind" : "Identifier", + "location" : [ 1, 11, 1, 16 ], + "name" : "object" + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 2, 5, 2, 13 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 2, 5, 2, 9 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 2, 5, 2, 5 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 2, 7, 2, 9 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 2, 13, 2, 13 ], + "value" : 0 + } + }, { + "kind" : "FuncDef", + "location" : [ 4, 5, 5, 19 ], + "name" : { + "kind" : "Identifier", + "location" : [ 4, 9, 4, 11 ], + "name" : "set" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 4, 13, 4, 22 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 4, 13, 4, 16 ], + "name" : "self" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 4, 18, 4, 22 ], + "className" : "Foo" + } + }, { + "kind" : "TypedVar", + "location" : [ 4, 25, 4, 29 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 4, 25, 4, 25 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 4, 27, 4, 29 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 4, 35, 4, 40 ], + "className" : "object" + }, + "declarations" : [ ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 5, 9, 5, 18 ], + "targets" : [ { + "kind" : "MemberExpr", + "location" : [ 5, 9, 5, 14 ], + "object" : { + "kind" : "Identifier", + "location" : [ 5, 9, 5, 12 ], + "name" : "self" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 5, 14, 5, 14 ], + "name" : "x" + } + } ], + "value" : { + "kind" : "Identifier", + "location" : [ 5, 18, 5, 18 ], + "name" : "x" + } + } ] + } ] + } ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 7, 1, 7, 9 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 7, 1, 7, 1 ], + "name" : "f" + } ], + "value" : { + "kind" : "CallExpr", + "location" : [ 7, 5, 7, 9 ], + "function" : { + "kind" : "Identifier", + "location" : [ 7, 5, 7, 7 ], + "name" : "Foo" + }, + "args" : [ ] + } + }, { + "kind" : "ExprStmt", + "location" : [ 8, 1, 8, 8 ], + "expr" : { + "kind" : "MethodCallExpr", + "location" : [ 8, 1, 8, 8 ], + "method" : { + "kind" : "MemberExpr", + "location" : [ 8, 1, 8, 5 ], + "object" : { + "kind" : "Identifier", + "location" : [ 8, 1, 8, 1 ], + "name" : "f" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 8, 3, 8, 5 ], + "name" : "set" + } + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 8, 7, 8, 7 ], + "value" : 1 + } ] + } + }, { + "kind" : "ExprStmt", + "location" : [ 9, 1, 9, 10 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 9, 1, 9, 10 ], + "function" : { + "kind" : "Identifier", + "location" : [ 9, 1, 9, 5 ], + "name" : "print" + }, + "args" : [ { + "kind" : "MemberExpr", + "location" : [ 9, 7, 9, 9 ], + "object" : { + "kind" : "Identifier", + "location" : [ 9, 7, 9, 7 ], + "name" : "f" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 9, 9, 9, 9 ], + "name" : "x" + } + } ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/coverage.py b/src/test/data/pa1/sample/coverage.py new file mode 100644 index 0000000..1da3446 --- /dev/null +++ b/src/test/data/pa1/sample/coverage.py @@ -0,0 +1,38 @@ +count:int = 0 + +def foo(s: str) -> int: + return len(s) + +class bar(object): + p: bool = True + + def baz(self:"bar", xx: [int]) -> str: + global count + x:int = 0 + y:int = 1 + + def qux(y: int) -> object: + nonlocal x + if x > y: + x = -1 + + for x in xx: + self.p = x == 2 + + qux(0) # Yay! ChocoPy + + count = count + 1 + + while x <= 0: + if self.p: + xx[0] = xx[1] + self.p = not self.p + x = x + 1 + elif foo("Long"[0]) == 1: + return self is None + + return "Nope" + +print(bar().baz([1,2])) + + diff --git a/src/test/data/pa1/sample/coverage.py.ast b/src/test/data/pa1/sample/coverage.py.ast new file mode 100644 index 0000000..c7bab9f --- /dev/null +++ b/src/test/data/pa1/sample/coverage.py.ast @@ -0,0 +1,613 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 36, 24 ], + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 1, 1, 1, 13 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 1, 1, 1, 9 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 1, 1, 1, 5 ], + "name" : "count" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 1, 7, 1, 9 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 13, 1, 13 ], + "value" : 0 + } + }, { + "kind" : "FuncDef", + "location" : [ 3, 1, 4, 18 ], + "name" : { + "kind" : "Identifier", + "location" : [ 3, 5, 3, 7 ], + "name" : "foo" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 3, 9, 3, 14 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 3, 9, 3, 9 ], + "name" : "s" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 3, 12, 3, 14 ], + "className" : "str" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 3, 20, 3, 22 ], + "className" : "int" + }, + "declarations" : [ ], + "statements" : [ { + "kind" : "ReturnStmt", + "location" : [ 4, 5, 4, 17 ], + "value" : { + "kind" : "CallExpr", + "location" : [ 4, 12, 4, 17 ], + "function" : { + "kind" : "Identifier", + "location" : [ 4, 12, 4, 14 ], + "name" : "len" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 4, 16, 4, 16 ], + "name" : "s" + } ] + } + } ] + }, { + "kind" : "ClassDef", + "location" : [ 6, 1, 36, 0 ], + "name" : { + "kind" : "Identifier", + "location" : [ 6, 7, 6, 9 ], + "name" : "bar" + }, + "superClass" : { + "kind" : "Identifier", + "location" : [ 6, 11, 6, 16 ], + "name" : "object" + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 7, 5, 7, 18 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 7, 5, 7, 11 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 7, 5, 7, 5 ], + "name" : "p" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 7, 8, 7, 11 ], + "className" : "bool" + } + }, + "value" : { + "kind" : "BooleanLiteral", + "location" : [ 7, 15, 7, 18 ], + "value" : true + } + }, { + "kind" : "FuncDef", + "location" : [ 9, 5, 34, 22 ], + "name" : { + "kind" : "Identifier", + "location" : [ 9, 9, 9, 11 ], + "name" : "baz" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 9, 13, 9, 22 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 9, 13, 9, 16 ], + "name" : "self" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 9, 18, 9, 22 ], + "className" : "bar" + } + }, { + "kind" : "TypedVar", + "location" : [ 9, 25, 9, 33 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 9, 25, 9, 26 ], + "name" : "xx" + }, + "type" : { + "kind" : "ListType", + "location" : [ 9, 29, 9, 33 ], + "elementType" : { + "kind" : "ClassType", + "location" : [ 9, 30, 9, 32 ], + "className" : "int" + } + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 9, 39, 9, 41 ], + "className" : "str" + }, + "declarations" : [ { + "kind" : "GlobalDecl", + "location" : [ 10, 9, 10, 20 ], + "variable" : { + "kind" : "Identifier", + "location" : [ 10, 16, 10, 20 ], + "name" : "count" + } + }, { + "kind" : "VarDef", + "location" : [ 11, 9, 11, 17 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 11, 9, 11, 13 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 11, 9, 11, 9 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 11, 11, 11, 13 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 11, 17, 11, 17 ], + "value" : 0 + } + }, { + "kind" : "VarDef", + "location" : [ 12, 9, 12, 17 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 12, 9, 12, 13 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 12, 9, 12, 9 ], + "name" : "y" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 12, 11, 12, 13 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 12, 17, 12, 17 ], + "value" : 1 + } + }, { + "kind" : "FuncDef", + "location" : [ 14, 9, 19, 8 ], + "name" : { + "kind" : "Identifier", + "location" : [ 14, 13, 14, 15 ], + "name" : "qux" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 14, 17, 14, 22 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 14, 17, 14, 17 ], + "name" : "y" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 14, 20, 14, 22 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 14, 28, 14, 33 ], + "className" : "object" + }, + "declarations" : [ { + "kind" : "NonLocalDecl", + "location" : [ 15, 13, 15, 22 ], + "variable" : { + "kind" : "Identifier", + "location" : [ 15, 22, 15, 22 ], + "name" : "x" + } + } ], + "statements" : [ { + "kind" : "IfStmt", + "location" : [ 16, 13, 19, 8 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 16, 16, 16, 20 ], + "left" : { + "kind" : "Identifier", + "location" : [ 16, 16, 16, 16 ], + "name" : "x" + }, + "operator" : ">", + "right" : { + "kind" : "Identifier", + "location" : [ 16, 20, 16, 20 ], + "name" : "y" + } + }, + "thenBody" : [ { + "kind" : "AssignStmt", + "location" : [ 17, 17, 17, 22 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 17, 17, 17, 17 ], + "name" : "x" + } ], + "value" : { + "kind" : "UnaryExpr", + "location" : [ 17, 21, 17, 22 ], + "operator" : "-", + "operand" : { + "kind" : "IntegerLiteral", + "location" : [ 17, 22, 17, 22 ], + "value" : 1 + } + } + } ], + "elseBody" : [ ] + } ] + } ], + "statements" : [ { + "kind" : "ForStmt", + "location" : [ 19, 9, 22, 8 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 19, 13, 19, 13 ], + "name" : "x" + }, + "iterable" : { + "kind" : "Identifier", + "location" : [ 19, 18, 19, 19 ], + "name" : "xx" + }, + "body" : [ { + "kind" : "AssignStmt", + "location" : [ 20, 13, 20, 27 ], + "targets" : [ { + "kind" : "MemberExpr", + "location" : [ 20, 13, 20, 18 ], + "object" : { + "kind" : "Identifier", + "location" : [ 20, 13, 20, 16 ], + "name" : "self" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 20, 18, 20, 18 ], + "name" : "p" + } + } ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 20, 22, 20, 27 ], + "left" : { + "kind" : "Identifier", + "location" : [ 20, 22, 20, 22 ], + "name" : "x" + }, + "operator" : "==", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 20, 27, 20, 27 ], + "value" : 2 + } + } + } ] + }, { + "kind" : "ExprStmt", + "location" : [ 22, 9, 22, 14 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 22, 9, 22, 14 ], + "function" : { + "kind" : "Identifier", + "location" : [ 22, 9, 22, 11 ], + "name" : "qux" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 22, 13, 22, 13 ], + "value" : 0 + } ] + } + }, { + "kind" : "AssignStmt", + "location" : [ 24, 9, 24, 25 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 24, 9, 24, 13 ], + "name" : "count" + } ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 24, 17, 24, 25 ], + "left" : { + "kind" : "Identifier", + "location" : [ 24, 17, 24, 21 ], + "name" : "count" + }, + "operator" : "+", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 24, 25, 24, 25 ], + "value" : 1 + } + } + }, { + "kind" : "WhileStmt", + "location" : [ 26, 9, 34, 8 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 26, 15, 26, 20 ], + "left" : { + "kind" : "Identifier", + "location" : [ 26, 15, 26, 15 ], + "name" : "x" + }, + "operator" : "<=", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 26, 20, 26, 20 ], + "value" : 0 + } + }, + "body" : [ { + "kind" : "IfStmt", + "location" : [ 27, 13, 34, 8 ], + "condition" : { + "kind" : "MemberExpr", + "location" : [ 27, 16, 27, 21 ], + "object" : { + "kind" : "Identifier", + "location" : [ 27, 16, 27, 19 ], + "name" : "self" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 27, 21, 27, 21 ], + "name" : "p" + } + }, + "thenBody" : [ { + "kind" : "AssignStmt", + "location" : [ 28, 17, 28, 29 ], + "targets" : [ { + "kind" : "IndexExpr", + "location" : [ 28, 17, 28, 21 ], + "list" : { + "kind" : "Identifier", + "location" : [ 28, 17, 28, 18 ], + "name" : "xx" + }, + "index" : { + "kind" : "IntegerLiteral", + "location" : [ 28, 20, 28, 20 ], + "value" : 0 + } + } ], + "value" : { + "kind" : "IndexExpr", + "location" : [ 28, 25, 28, 29 ], + "list" : { + "kind" : "Identifier", + "location" : [ 28, 25, 28, 26 ], + "name" : "xx" + }, + "index" : { + "kind" : "IntegerLiteral", + "location" : [ 28, 28, 28, 28 ], + "value" : 1 + } + } + }, { + "kind" : "AssignStmt", + "location" : [ 29, 17, 29, 35 ], + "targets" : [ { + "kind" : "MemberExpr", + "location" : [ 29, 17, 29, 22 ], + "object" : { + "kind" : "Identifier", + "location" : [ 29, 17, 29, 20 ], + "name" : "self" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 29, 22, 29, 22 ], + "name" : "p" + } + } ], + "value" : { + "kind" : "UnaryExpr", + "location" : [ 29, 26, 29, 35 ], + "operator" : "not", + "operand" : { + "kind" : "MemberExpr", + "location" : [ 29, 30, 29, 35 ], + "object" : { + "kind" : "Identifier", + "location" : [ 29, 30, 29, 33 ], + "name" : "self" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 29, 35, 29, 35 ], + "name" : "p" + } + } + } + }, { + "kind" : "AssignStmt", + "location" : [ 30, 17, 30, 25 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 30, 17, 30, 17 ], + "name" : "x" + } ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 30, 21, 30, 25 ], + "left" : { + "kind" : "Identifier", + "location" : [ 30, 21, 30, 21 ], + "name" : "x" + }, + "operator" : "+", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 30, 25, 30, 25 ], + "value" : 1 + } + } + } ], + "elseBody" : [ { + "kind" : "IfStmt", + "location" : [ 31, 13, 34, 8 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 31, 18, 31, 36 ], + "left" : { + "kind" : "CallExpr", + "location" : [ 31, 18, 31, 31 ], + "function" : { + "kind" : "Identifier", + "location" : [ 31, 18, 31, 20 ], + "name" : "foo" + }, + "args" : [ { + "kind" : "IndexExpr", + "location" : [ 31, 22, 31, 30 ], + "list" : { + "kind" : "StringLiteral", + "location" : [ 31, 22, 31, 27 ], + "value" : "Long" + }, + "index" : { + "kind" : "IntegerLiteral", + "location" : [ 31, 29, 31, 29 ], + "value" : 0 + } + } ] + }, + "operator" : "==", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 31, 36, 31, 36 ], + "value" : 1 + } + }, + "thenBody" : [ { + "kind" : "ReturnStmt", + "location" : [ 32, 17, 32, 35 ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 32, 24, 32, 35 ], + "left" : { + "kind" : "Identifier", + "location" : [ 32, 24, 32, 27 ], + "name" : "self" + }, + "operator" : "is", + "right" : { + "kind" : "NoneLiteral", + "location" : [ 32, 32, 32, 35 ] + } + } + } ], + "elseBody" : [ ] + } ] + } ] + }, { + "kind" : "ReturnStmt", + "location" : [ 34, 9, 34, 21 ], + "value" : { + "kind" : "StringLiteral", + "location" : [ 34, 16, 34, 21 ], + "value" : "Nope" + } + } ] + } ] + } ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 36, 1, 36, 23 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 36, 1, 36, 23 ], + "function" : { + "kind" : "Identifier", + "location" : [ 36, 1, 36, 5 ], + "name" : "print" + }, + "args" : [ { + "kind" : "MethodCallExpr", + "location" : [ 36, 7, 36, 22 ], + "method" : { + "kind" : "MemberExpr", + "location" : [ 36, 7, 36, 15 ], + "object" : { + "kind" : "CallExpr", + "location" : [ 36, 7, 36, 11 ], + "function" : { + "kind" : "Identifier", + "location" : [ 36, 7, 36, 9 ], + "name" : "bar" + }, + "args" : [ ] + }, + "member" : { + "kind" : "Identifier", + "location" : [ 36, 13, 36, 15 ], + "name" : "baz" + } + }, + "args" : [ { + "kind" : "ListExpr", + "location" : [ 36, 17, 36, 21 ], + "elements" : [ { + "kind" : "IntegerLiteral", + "location" : [ 36, 18, 36, 18 ], + "value" : 1 + }, { + "kind" : "IntegerLiteral", + "location" : [ 36, 20, 36, 20 ], + "value" : 2 + } ] + } ] + } ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/def_func.py b/src/test/data/pa1/sample/def_func.py new file mode 100644 index 0000000..55e9c43 --- /dev/null +++ b/src/test/data/pa1/sample/def_func.py @@ -0,0 +1,4 @@ +def foo() -> int: + return 1 + +foo() diff --git a/src/test/data/pa1/sample/def_func.py.ast b/src/test/data/pa1/sample/def_func.py.ast new file mode 100644 index 0000000..00a7e65 --- /dev/null +++ b/src/test/data/pa1/sample/def_func.py.ast @@ -0,0 +1,48 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 4, 6 ], + "declarations" : [ { + "kind" : "FuncDef", + "location" : [ 1, 1, 2, 13 ], + "name" : { + "kind" : "Identifier", + "location" : [ 1, 5, 1, 7 ], + "name" : "foo" + }, + "params" : [ ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 1, 14, 1, 16 ], + "className" : "int" + }, + "declarations" : [ ], + "statements" : [ { + "kind" : "ReturnStmt", + "location" : [ 2, 5, 2, 12 ], + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 2, 12, 2, 12 ], + "value" : 1 + } + } ] + } ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 4, 1, 4, 5 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 4, 1, 4, 5 ], + "function" : { + "kind" : "Identifier", + "location" : [ 4, 1, 4, 3 ], + "name" : "foo" + }, + "args" : [ ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/def_func_args.py b/src/test/data/pa1/sample/def_func_args.py new file mode 100644 index 0000000..196f504 --- /dev/null +++ b/src/test/data/pa1/sample/def_func_args.py @@ -0,0 +1,4 @@ +def foo(x:int, y:int) -> bool: + return x > y + +foo(1,2) diff --git a/src/test/data/pa1/sample/def_func_args.py.ast b/src/test/data/pa1/sample/def_func_args.py.ast new file mode 100644 index 0000000..77d9dc9 --- /dev/null +++ b/src/test/data/pa1/sample/def_func_args.py.ast @@ -0,0 +1,92 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 4, 9 ], + "declarations" : [ { + "kind" : "FuncDef", + "location" : [ 1, 1, 2, 17 ], + "name" : { + "kind" : "Identifier", + "location" : [ 1, 5, 1, 7 ], + "name" : "foo" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 1, 9, 1, 13 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 1, 9, 1, 9 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 1, 11, 1, 13 ], + "className" : "int" + } + }, { + "kind" : "TypedVar", + "location" : [ 1, 16, 1, 20 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 1, 16, 1, 16 ], + "name" : "y" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 1, 18, 1, 20 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 1, 26, 1, 29 ], + "className" : "bool" + }, + "declarations" : [ ], + "statements" : [ { + "kind" : "ReturnStmt", + "location" : [ 2, 5, 2, 16 ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 2, 12, 2, 16 ], + "left" : { + "kind" : "Identifier", + "location" : [ 2, 12, 2, 12 ], + "name" : "x" + }, + "operator" : ">", + "right" : { + "kind" : "Identifier", + "location" : [ 2, 16, 2, 16 ], + "name" : "y" + } + } + } ] + } ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 4, 1, 4, 8 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 4, 1, 4, 8 ], + "function" : { + "kind" : "Identifier", + "location" : [ 4, 1, 4, 3 ], + "name" : "foo" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 4, 5, 4, 5 ], + "value" : 1 + }, { + "kind" : "IntegerLiteral", + "location" : [ 4, 7, 4, 7 ], + "value" : 2 + } ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/def_func_global.py b/src/test/data/pa1/sample/def_func_global.py new file mode 100644 index 0000000..12f9dfc --- /dev/null +++ b/src/test/data/pa1/sample/def_func_global.py @@ -0,0 +1,7 @@ +z:int = 0 + +def foo(x:int) -> bool: + global z + return x > z + +foo(1) diff --git a/src/test/data/pa1/sample/def_func_global.py.ast b/src/test/data/pa1/sample/def_func_global.py.ast new file mode 100644 index 0000000..736af77 --- /dev/null +++ b/src/test/data/pa1/sample/def_func_global.py.ast @@ -0,0 +1,105 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 7, 7 ], + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 1, 1, 1, 9 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 1, 1, 1, 5 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 1, 1, 1, 1 ], + "name" : "z" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 1, 3, 1, 5 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 9, 1, 9 ], + "value" : 0 + } + }, { + "kind" : "FuncDef", + "location" : [ 3, 1, 5, 17 ], + "name" : { + "kind" : "Identifier", + "location" : [ 3, 5, 3, 7 ], + "name" : "foo" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 3, 9, 3, 13 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 3, 9, 3, 9 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 3, 11, 3, 13 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 3, 19, 3, 22 ], + "className" : "bool" + }, + "declarations" : [ { + "kind" : "GlobalDecl", + "location" : [ 4, 5, 4, 12 ], + "variable" : { + "kind" : "Identifier", + "location" : [ 4, 12, 4, 12 ], + "name" : "z" + } + } ], + "statements" : [ { + "kind" : "ReturnStmt", + "location" : [ 5, 5, 5, 16 ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 5, 12, 5, 16 ], + "left" : { + "kind" : "Identifier", + "location" : [ 5, 12, 5, 12 ], + "name" : "x" + }, + "operator" : ">", + "right" : { + "kind" : "Identifier", + "location" : [ 5, 16, 5, 16 ], + "name" : "z" + } + } + } ] + } ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 7, 1, 7, 6 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 7, 1, 7, 6 ], + "function" : { + "kind" : "Identifier", + "location" : [ 7, 1, 7, 3 ], + "name" : "foo" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 7, 5, 7, 5 ], + "value" : 1 + } ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/def_func_nested.py b/src/test/data/pa1/sample/def_func_nested.py new file mode 100644 index 0000000..835614e --- /dev/null +++ b/src/test/data/pa1/sample/def_func_nested.py @@ -0,0 +1,10 @@ + +def foo(x:int) -> bool: + a:int = 0 + b:int = 1 + def bar(y: int) -> int: + a:int = 2 + return y + return bar(x) > a + +foo(1) diff --git a/src/test/data/pa1/sample/def_func_nested.py.ast b/src/test/data/pa1/sample/def_func_nested.py.ast new file mode 100644 index 0000000..0024178 --- /dev/null +++ b/src/test/data/pa1/sample/def_func_nested.py.ast @@ -0,0 +1,187 @@ +{ + "kind" : "Program", + "location" : [ 2, 1, 10, 7 ], + "declarations" : [ { + "kind" : "FuncDef", + "location" : [ 2, 1, 8, 22 ], + "name" : { + "kind" : "Identifier", + "location" : [ 2, 5, 2, 7 ], + "name" : "foo" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 2, 9, 2, 13 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 2, 9, 2, 9 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 2, 11, 2, 13 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 2, 19, 2, 22 ], + "className" : "bool" + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 3, 5, 3, 13 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 3, 5, 3, 9 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 3, 5, 3, 5 ], + "name" : "a" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 3, 7, 3, 9 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 3, 13, 3, 13 ], + "value" : 0 + } + }, { + "kind" : "VarDef", + "location" : [ 4, 5, 4, 13 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 4, 5, 4, 9 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 4, 5, 4, 5 ], + "name" : "b" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 4, 7, 4, 9 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 4, 13, 4, 13 ], + "value" : 1 + } + }, { + "kind" : "FuncDef", + "location" : [ 5, 5, 7, 17 ], + "name" : { + "kind" : "Identifier", + "location" : [ 5, 9, 5, 11 ], + "name" : "bar" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 5, 13, 5, 18 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 5, 13, 5, 13 ], + "name" : "y" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 5, 16, 5, 18 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 5, 24, 5, 26 ], + "className" : "int" + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 6, 9, 6, 17 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 6, 9, 6, 13 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 6, 9, 6, 9 ], + "name" : "a" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 6, 11, 6, 13 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 6, 17, 6, 17 ], + "value" : 2 + } + } ], + "statements" : [ { + "kind" : "ReturnStmt", + "location" : [ 7, 9, 7, 16 ], + "value" : { + "kind" : "Identifier", + "location" : [ 7, 16, 7, 16 ], + "name" : "y" + } + } ] + } ], + "statements" : [ { + "kind" : "ReturnStmt", + "location" : [ 8, 5, 8, 21 ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 8, 12, 8, 21 ], + "left" : { + "kind" : "CallExpr", + "location" : [ 8, 12, 8, 17 ], + "function" : { + "kind" : "Identifier", + "location" : [ 8, 12, 8, 14 ], + "name" : "bar" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 8, 16, 8, 16 ], + "name" : "x" + } ] + }, + "operator" : ">", + "right" : { + "kind" : "Identifier", + "location" : [ 8, 21, 8, 21 ], + "name" : "a" + } + } + } ] + } ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 10, 1, 10, 6 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 10, 1, 10, 6 ], + "function" : { + "kind" : "Identifier", + "location" : [ 10, 1, 10, 3 ], + "name" : "foo" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 10, 5, 10, 5 ], + "value" : 1 + } ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/def_func_nonlocal.py b/src/test/data/pa1/sample/def_func_nonlocal.py new file mode 100644 index 0000000..1304328 --- /dev/null +++ b/src/test/data/pa1/sample/def_func_nonlocal.py @@ -0,0 +1,11 @@ + +def foo(x:int) -> bool: + a:int = 0 + b:int = 1 + def bar(y: int) -> int: + nonlocal a + a = 2 + return y + return bar(x) > a + +foo(1) diff --git a/src/test/data/pa1/sample/def_func_nonlocal.py.ast b/src/test/data/pa1/sample/def_func_nonlocal.py.ast new file mode 100644 index 0000000..5c1e1de --- /dev/null +++ b/src/test/data/pa1/sample/def_func_nonlocal.py.ast @@ -0,0 +1,186 @@ +{ + "kind" : "Program", + "location" : [ 2, 1, 11, 7 ], + "declarations" : [ { + "kind" : "FuncDef", + "location" : [ 2, 1, 9, 22 ], + "name" : { + "kind" : "Identifier", + "location" : [ 2, 5, 2, 7 ], + "name" : "foo" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 2, 9, 2, 13 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 2, 9, 2, 9 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 2, 11, 2, 13 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 2, 19, 2, 22 ], + "className" : "bool" + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 3, 5, 3, 13 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 3, 5, 3, 9 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 3, 5, 3, 5 ], + "name" : "a" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 3, 7, 3, 9 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 3, 13, 3, 13 ], + "value" : 0 + } + }, { + "kind" : "VarDef", + "location" : [ 4, 5, 4, 13 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 4, 5, 4, 9 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 4, 5, 4, 5 ], + "name" : "b" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 4, 7, 4, 9 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 4, 13, 4, 13 ], + "value" : 1 + } + }, { + "kind" : "FuncDef", + "location" : [ 5, 5, 8, 17 ], + "name" : { + "kind" : "Identifier", + "location" : [ 5, 9, 5, 11 ], + "name" : "bar" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 5, 13, 5, 18 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 5, 13, 5, 13 ], + "name" : "y" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 5, 16, 5, 18 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 5, 24, 5, 26 ], + "className" : "int" + }, + "declarations" : [ { + "kind" : "NonLocalDecl", + "location" : [ 6, 9, 6, 18 ], + "variable" : { + "kind" : "Identifier", + "location" : [ 6, 18, 6, 18 ], + "name" : "a" + } + } ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 7, 9, 7, 13 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 7, 9, 7, 9 ], + "name" : "a" + } ], + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 7, 13, 7, 13 ], + "value" : 2 + } + }, { + "kind" : "ReturnStmt", + "location" : [ 8, 9, 8, 16 ], + "value" : { + "kind" : "Identifier", + "location" : [ 8, 16, 8, 16 ], + "name" : "y" + } + } ] + } ], + "statements" : [ { + "kind" : "ReturnStmt", + "location" : [ 9, 5, 9, 21 ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 9, 12, 9, 21 ], + "left" : { + "kind" : "CallExpr", + "location" : [ 9, 12, 9, 17 ], + "function" : { + "kind" : "Identifier", + "location" : [ 9, 12, 9, 14 ], + "name" : "bar" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 9, 16, 9, 16 ], + "name" : "x" + } ] + }, + "operator" : ">", + "right" : { + "kind" : "Identifier", + "location" : [ 9, 21, 9, 21 ], + "name" : "a" + } + } + } ] + } ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 11, 1, 11, 6 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 11, 1, 11, 6 ], + "function" : { + "kind" : "Identifier", + "location" : [ 11, 1, 11, 3 ], + "name" : "foo" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 11, 5, 11, 5 ], + "value" : 1 + } ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/expr_if.py b/src/test/data/pa1/sample/expr_if.py new file mode 100644 index 0000000..e9e9c26 --- /dev/null +++ b/src/test/data/pa1/sample/expr_if.py @@ -0,0 +1 @@ +3 if 1 > 2 else 4 diff --git a/src/test/data/pa1/sample/expr_if.py.ast b/src/test/data/pa1/sample/expr_if.py.ast new file mode 100644 index 0000000..0ed9a55 --- /dev/null +++ b/src/test/data/pa1/sample/expr_if.py.ast @@ -0,0 +1,43 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 1, 18 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 1, 1, 1, 17 ], + "expr" : { + "kind" : "IfExpr", + "location" : [ 1, 1, 1, 17 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 1, 6, 1, 10 ], + "left" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 6, 1, 6 ], + "value" : 1 + }, + "operator" : ">", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 10, 1, 10 ], + "value" : 2 + } + }, + "thenExpr" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 1, 1, 1 ], + "value" : 3 + }, + "elseExpr" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 17, 1, 17 ], + "value" : 4 + } + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/expr_if_chained.py b/src/test/data/pa1/sample/expr_if_chained.py new file mode 100644 index 0000000..4a7837e --- /dev/null +++ b/src/test/data/pa1/sample/expr_if_chained.py @@ -0,0 +1 @@ +3 if 1 > 2 else 4 if 1 < 0 else 5 diff --git a/src/test/data/pa1/sample/expr_if_chained.py.ast b/src/test/data/pa1/sample/expr_if_chained.py.ast new file mode 100644 index 0000000..2776da9 --- /dev/null +++ b/src/test/data/pa1/sample/expr_if_chained.py.ast @@ -0,0 +1,67 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 1, 34 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 1, 1, 1, 33 ], + "expr" : { + "kind" : "IfExpr", + "location" : [ 1, 1, 1, 33 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 1, 6, 1, 10 ], + "left" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 6, 1, 6 ], + "value" : 1 + }, + "operator" : ">", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 10, 1, 10 ], + "value" : 2 + } + }, + "thenExpr" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 1, 1, 1 ], + "value" : 3 + }, + "elseExpr" : { + "kind" : "IfExpr", + "location" : [ 1, 17, 1, 33 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 1, 22, 1, 26 ], + "left" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 22, 1, 22 ], + "value" : 1 + }, + "operator" : "<", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 26, 1, 26 ], + "value" : 0 + } + }, + "thenExpr" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 17, 1, 17 ], + "value" : 4 + }, + "elseExpr" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 33, 1, 33 ], + "value" : 5 + } + } + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/expr_index.py b/src/test/data/pa1/sample/expr_index.py new file mode 100644 index 0000000..8e95ff2 --- /dev/null +++ b/src/test/data/pa1/sample/expr_index.py @@ -0,0 +1 @@ +a + b[i][j] diff --git a/src/test/data/pa1/sample/expr_index.py.ast b/src/test/data/pa1/sample/expr_index.py.ast new file mode 100644 index 0000000..a5f97ee --- /dev/null +++ b/src/test/data/pa1/sample/expr_index.py.ast @@ -0,0 +1,47 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 1, 12 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 1, 1, 1, 11 ], + "expr" : { + "kind" : "BinaryExpr", + "location" : [ 1, 1, 1, 11 ], + "left" : { + "kind" : "Identifier", + "location" : [ 1, 1, 1, 1 ], + "name" : "a" + }, + "operator" : "+", + "right" : { + "kind" : "IndexExpr", + "location" : [ 1, 5, 1, 11 ], + "list" : { + "kind" : "IndexExpr", + "location" : [ 1, 5, 1, 8 ], + "list" : { + "kind" : "Identifier", + "location" : [ 1, 5, 1, 5 ], + "name" : "b" + }, + "index" : { + "kind" : "Identifier", + "location" : [ 1, 7, 1, 7 ], + "name" : "i" + } + }, + "index" : { + "kind" : "Identifier", + "location" : [ 1, 10, 1, 10 ], + "name" : "j" + } + } + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/expr_plus.py b/src/test/data/pa1/sample/expr_plus.py new file mode 100644 index 0000000..8138b36 --- /dev/null +++ b/src/test/data/pa1/sample/expr_plus.py @@ -0,0 +1 @@ +1 + 2 + 3 diff --git a/src/test/data/pa1/sample/expr_plus.py.ast b/src/test/data/pa1/sample/expr_plus.py.ast new file mode 100644 index 0000000..f924e67 --- /dev/null +++ b/src/test/data/pa1/sample/expr_plus.py.ast @@ -0,0 +1,39 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 1, 10 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 1, 1, 1, 9 ], + "expr" : { + "kind" : "BinaryExpr", + "location" : [ 1, 1, 1, 9 ], + "left" : { + "kind" : "BinaryExpr", + "location" : [ 1, 1, 1, 5 ], + "left" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 1, 1, 1 ], + "value" : 1 + }, + "operator" : "+", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 5, 1, 5 ], + "value" : 2 + } + }, + "operator" : "+", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 9, 1, 9 ], + "value" : 3 + } + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/expr_unary.py b/src/test/data/pa1/sample/expr_unary.py new file mode 100644 index 0000000..3a2e3f4 --- /dev/null +++ b/src/test/data/pa1/sample/expr_unary.py @@ -0,0 +1 @@ +-1 diff --git a/src/test/data/pa1/sample/expr_unary.py.ast b/src/test/data/pa1/sample/expr_unary.py.ast new file mode 100644 index 0000000..e4ef8d2 --- /dev/null +++ b/src/test/data/pa1/sample/expr_unary.py.ast @@ -0,0 +1,24 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 1, 3 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 1, 1, 1, 2 ], + "expr" : { + "kind" : "UnaryExpr", + "location" : [ 1, 1, 1, 2 ], + "operator" : "-", + "operand" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 2, 1, 2 ], + "value" : 1 + } + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/global.py b/src/test/data/pa1/sample/global.py new file mode 100644 index 0000000..779d3bb --- /dev/null +++ b/src/test/data/pa1/sample/global.py @@ -0,0 +1,5 @@ +x:int = 1 + +x = 2 + +print(x) diff --git a/src/test/data/pa1/sample/global.py.ast b/src/test/data/pa1/sample/global.py.ast new file mode 100644 index 0000000..84b42b1 --- /dev/null +++ b/src/test/data/pa1/sample/global.py.ast @@ -0,0 +1,63 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 5, 9 ], + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 1, 1, 1, 9 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 1, 1, 1, 5 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 1, 1, 1, 1 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 1, 3, 1, 5 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 9, 1, 9 ], + "value" : 1 + } + } ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 3, 1, 3, 5 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 3, 1, 3, 1 ], + "name" : "x" + } ], + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 3, 5, 3, 5 ], + "value" : 2 + } + }, { + "kind" : "ExprStmt", + "location" : [ 5, 1, 5, 8 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 5, 1, 5, 8 ], + "function" : { + "kind" : "Identifier", + "location" : [ 5, 1, 5, 5 ], + "name" : "print" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 5, 7, 5, 7 ], + "name" : "x" + } ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/literals.py b/src/test/data/pa1/sample/literals.py new file mode 100644 index 0000000..081863e --- /dev/null +++ b/src/test/data/pa1/sample/literals.py @@ -0,0 +1,7 @@ +True +False +1 +None +"This is a string" +[1, 2, 3] + diff --git a/src/test/data/pa1/sample/literals.py.ast b/src/test/data/pa1/sample/literals.py.ast new file mode 100644 index 0000000..d6fd3bc --- /dev/null +++ b/src/test/data/pa1/sample/literals.py.ast @@ -0,0 +1,70 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 6, 10 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 1, 1, 1, 4 ], + "expr" : { + "kind" : "BooleanLiteral", + "location" : [ 1, 1, 1, 4 ], + "value" : true + } + }, { + "kind" : "ExprStmt", + "location" : [ 2, 1, 2, 5 ], + "expr" : { + "kind" : "BooleanLiteral", + "location" : [ 2, 1, 2, 5 ], + "value" : false + } + }, { + "kind" : "ExprStmt", + "location" : [ 3, 1, 3, 1 ], + "expr" : { + "kind" : "IntegerLiteral", + "location" : [ 3, 1, 3, 1 ], + "value" : 1 + } + }, { + "kind" : "ExprStmt", + "location" : [ 4, 1, 4, 4 ], + "expr" : { + "kind" : "NoneLiteral", + "location" : [ 4, 1, 4, 4 ] + } + }, { + "kind" : "ExprStmt", + "location" : [ 5, 1, 5, 18 ], + "expr" : { + "kind" : "StringLiteral", + "location" : [ 5, 1, 5, 18 ], + "value" : "This is a string" + } + }, { + "kind" : "ExprStmt", + "location" : [ 6, 1, 6, 9 ], + "expr" : { + "kind" : "ListExpr", + "location" : [ 6, 1, 6, 9 ], + "elements" : [ { + "kind" : "IntegerLiteral", + "location" : [ 6, 2, 6, 2 ], + "value" : 1 + }, { + "kind" : "IntegerLiteral", + "location" : [ 6, 5, 6, 5 ], + "value" : 2 + }, { + "kind" : "IntegerLiteral", + "location" : [ 6, 8, 6, 8 ], + "value" : 3 + } ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/stmt_call.py b/src/test/data/pa1/sample/stmt_call.py new file mode 100644 index 0000000..b917a72 --- /dev/null +++ b/src/test/data/pa1/sample/stmt_call.py @@ -0,0 +1 @@ +print(1) diff --git a/src/test/data/pa1/sample/stmt_call.py.ast b/src/test/data/pa1/sample/stmt_call.py.ast new file mode 100644 index 0000000..4d0ef38 --- /dev/null +++ b/src/test/data/pa1/sample/stmt_call.py.ast @@ -0,0 +1,28 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 1, 9 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 1, 1, 1, 8 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 1, 1, 1, 8 ], + "function" : { + "kind" : "Identifier", + "location" : [ 1, 1, 1, 5 ], + "name" : "print" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 1, 7, 1, 7 ], + "value" : 1 + } ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/stmt_for.py b/src/test/data/pa1/sample/stmt_for.py new file mode 100644 index 0000000..6f65c5f --- /dev/null +++ b/src/test/data/pa1/sample/stmt_for.py @@ -0,0 +1,4 @@ +x:int = 0 +for x in [1, 2, 3]: + print(x) + diff --git a/src/test/data/pa1/sample/stmt_for.py.ast b/src/test/data/pa1/sample/stmt_for.py.ast new file mode 100644 index 0000000..ba0847b --- /dev/null +++ b/src/test/data/pa1/sample/stmt_for.py.ast @@ -0,0 +1,76 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 5, 1 ], + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 1, 1, 1, 9 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 1, 1, 1, 5 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 1, 1, 1, 1 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 1, 3, 1, 5 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 9, 1, 9 ], + "value" : 0 + } + } ], + "statements" : [ { + "kind" : "ForStmt", + "location" : [ 2, 1, 5, 1 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 2, 5, 2, 5 ], + "name" : "x" + }, + "iterable" : { + "kind" : "ListExpr", + "location" : [ 2, 10, 2, 18 ], + "elements" : [ { + "kind" : "IntegerLiteral", + "location" : [ 2, 11, 2, 11 ], + "value" : 1 + }, { + "kind" : "IntegerLiteral", + "location" : [ 2, 14, 2, 14 ], + "value" : 2 + }, { + "kind" : "IntegerLiteral", + "location" : [ 2, 17, 2, 17 ], + "value" : 3 + } ] + }, + "body" : [ { + "kind" : "ExprStmt", + "location" : [ 3, 5, 3, 12 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 3, 5, 3, 12 ], + "function" : { + "kind" : "Identifier", + "location" : [ 3, 5, 3, 9 ], + "name" : "print" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 3, 11, 3, 11 ], + "name" : "x" + } ] + } + } ] + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/stmt_if.py b/src/test/data/pa1/sample/stmt_if.py new file mode 100644 index 0000000..b87c003 --- /dev/null +++ b/src/test/data/pa1/sample/stmt_if.py @@ -0,0 +1,3 @@ +if True: + False + diff --git a/src/test/data/pa1/sample/stmt_if.py.ast b/src/test/data/pa1/sample/stmt_if.py.ast new file mode 100644 index 0000000..2b08a8f --- /dev/null +++ b/src/test/data/pa1/sample/stmt_if.py.ast @@ -0,0 +1,29 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 4, 1 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "IfStmt", + "location" : [ 1, 1, 4, 1 ], + "condition" : { + "kind" : "BooleanLiteral", + "location" : [ 1, 4, 1, 7 ], + "value" : true + }, + "thenBody" : [ { + "kind" : "ExprStmt", + "location" : [ 2, 5, 2, 9 ], + "expr" : { + "kind" : "BooleanLiteral", + "location" : [ 2, 5, 2, 9 ], + "value" : false + } + } ], + "elseBody" : [ ] + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/stmt_if_elif.py b/src/test/data/pa1/sample/stmt_if_elif.py new file mode 100644 index 0000000..7fa86dd --- /dev/null +++ b/src/test/data/pa1/sample/stmt_if_elif.py @@ -0,0 +1,6 @@ +if 1 > 2: + print(1) +elif 3 == 4: + print(2) +elif True: + print(3) diff --git a/src/test/data/pa1/sample/stmt_if_elif.py.ast b/src/test/data/pa1/sample/stmt_if_elif.py.ast new file mode 100644 index 0000000..11dcd2e --- /dev/null +++ b/src/test/data/pa1/sample/stmt_if_elif.py.ast @@ -0,0 +1,112 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 7, 1 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "IfStmt", + "location" : [ 1, 1, 7, 1 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 1, 4, 1, 8 ], + "left" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 4, 1, 4 ], + "value" : 1 + }, + "operator" : ">", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 8, 1, 8 ], + "value" : 2 + } + }, + "thenBody" : [ { + "kind" : "ExprStmt", + "location" : [ 2, 5, 2, 12 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 2, 5, 2, 12 ], + "function" : { + "kind" : "Identifier", + "location" : [ 2, 5, 2, 9 ], + "name" : "print" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 2, 11, 2, 11 ], + "value" : 1 + } ] + } + } ], + "elseBody" : [ { + "kind" : "IfStmt", + "location" : [ 3, 1, 7, 1 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 3, 6, 3, 11 ], + "left" : { + "kind" : "IntegerLiteral", + "location" : [ 3, 6, 3, 6 ], + "value" : 3 + }, + "operator" : "==", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 3, 11, 3, 11 ], + "value" : 4 + } + }, + "thenBody" : [ { + "kind" : "ExprStmt", + "location" : [ 4, 5, 4, 12 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 4, 5, 4, 12 ], + "function" : { + "kind" : "Identifier", + "location" : [ 4, 5, 4, 9 ], + "name" : "print" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 4, 11, 4, 11 ], + "value" : 2 + } ] + } + } ], + "elseBody" : [ { + "kind" : "IfStmt", + "location" : [ 5, 1, 7, 1 ], + "condition" : { + "kind" : "BooleanLiteral", + "location" : [ 5, 6, 5, 9 ], + "value" : true + }, + "thenBody" : [ { + "kind" : "ExprStmt", + "location" : [ 6, 5, 6, 12 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 6, 5, 6, 12 ], + "function" : { + "kind" : "Identifier", + "location" : [ 6, 5, 6, 9 ], + "name" : "print" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 6, 11, 6, 11 ], + "value" : 3 + } ] + } + } ], + "elseBody" : [ ] + } ] + } ] + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/stmt_if_elif_else.py b/src/test/data/pa1/sample/stmt_if_elif_else.py new file mode 100644 index 0000000..161d9d9 --- /dev/null +++ b/src/test/data/pa1/sample/stmt_if_elif_else.py @@ -0,0 +1,8 @@ +if 1 > 2: + print(1) +elif 3 == 4: + print(2) +elif True: + print(3) +else: + print(4) diff --git a/src/test/data/pa1/sample/stmt_if_elif_else.py.ast b/src/test/data/pa1/sample/stmt_if_elif_else.py.ast new file mode 100644 index 0000000..dc25855 --- /dev/null +++ b/src/test/data/pa1/sample/stmt_if_elif_else.py.ast @@ -0,0 +1,129 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 9, 1 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "IfStmt", + "location" : [ 1, 1, 9, 1 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 1, 4, 1, 8 ], + "left" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 4, 1, 4 ], + "value" : 1 + }, + "operator" : ">", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 8, 1, 8 ], + "value" : 2 + } + }, + "thenBody" : [ { + "kind" : "ExprStmt", + "location" : [ 2, 5, 2, 12 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 2, 5, 2, 12 ], + "function" : { + "kind" : "Identifier", + "location" : [ 2, 5, 2, 9 ], + "name" : "print" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 2, 11, 2, 11 ], + "value" : 1 + } ] + } + } ], + "elseBody" : [ { + "kind" : "IfStmt", + "location" : [ 3, 1, 9, 1 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 3, 6, 3, 11 ], + "left" : { + "kind" : "IntegerLiteral", + "location" : [ 3, 6, 3, 6 ], + "value" : 3 + }, + "operator" : "==", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 3, 11, 3, 11 ], + "value" : 4 + } + }, + "thenBody" : [ { + "kind" : "ExprStmt", + "location" : [ 4, 5, 4, 12 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 4, 5, 4, 12 ], + "function" : { + "kind" : "Identifier", + "location" : [ 4, 5, 4, 9 ], + "name" : "print" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 4, 11, 4, 11 ], + "value" : 2 + } ] + } + } ], + "elseBody" : [ { + "kind" : "IfStmt", + "location" : [ 5, 1, 9, 1 ], + "condition" : { + "kind" : "BooleanLiteral", + "location" : [ 5, 6, 5, 9 ], + "value" : true + }, + "thenBody" : [ { + "kind" : "ExprStmt", + "location" : [ 6, 5, 6, 12 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 6, 5, 6, 12 ], + "function" : { + "kind" : "Identifier", + "location" : [ 6, 5, 6, 9 ], + "name" : "print" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 6, 11, 6, 11 ], + "value" : 3 + } ] + } + } ], + "elseBody" : [ { + "kind" : "ExprStmt", + "location" : [ 8, 5, 8, 12 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 8, 5, 8, 12 ], + "function" : { + "kind" : "Identifier", + "location" : [ 8, 5, 8, 9 ], + "name" : "print" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 8, 11, 8, 11 ], + "value" : 4 + } ] + } + } ] + } ] + } ] + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/stmt_ifelse.py b/src/test/data/pa1/sample/stmt_ifelse.py new file mode 100644 index 0000000..f138957 --- /dev/null +++ b/src/test/data/pa1/sample/stmt_ifelse.py @@ -0,0 +1,5 @@ +if True: + False +else: + True + diff --git a/src/test/data/pa1/sample/stmt_ifelse.py.ast b/src/test/data/pa1/sample/stmt_ifelse.py.ast new file mode 100644 index 0000000..8e23d16 --- /dev/null +++ b/src/test/data/pa1/sample/stmt_ifelse.py.ast @@ -0,0 +1,37 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 6, 1 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "IfStmt", + "location" : [ 1, 1, 6, 1 ], + "condition" : { + "kind" : "BooleanLiteral", + "location" : [ 1, 4, 1, 7 ], + "value" : true + }, + "thenBody" : [ { + "kind" : "ExprStmt", + "location" : [ 2, 5, 2, 9 ], + "expr" : { + "kind" : "BooleanLiteral", + "location" : [ 2, 5, 2, 9 ], + "value" : false + } + } ], + "elseBody" : [ { + "kind" : "ExprStmt", + "location" : [ 4, 5, 4, 8 ], + "expr" : { + "kind" : "BooleanLiteral", + "location" : [ 4, 5, 4, 8 ], + "value" : true + } + } ] + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/stmt_list_assign.py b/src/test/data/pa1/sample/stmt_list_assign.py new file mode 100644 index 0000000..e9e31d9 --- /dev/null +++ b/src/test/data/pa1/sample/stmt_list_assign.py @@ -0,0 +1,4 @@ +x:int = None + +x = [1, 2, 3] +x[0] = x[1] diff --git a/src/test/data/pa1/sample/stmt_list_assign.py.ast b/src/test/data/pa1/sample/stmt_list_assign.py.ast new file mode 100644 index 0000000..b65848c --- /dev/null +++ b/src/test/data/pa1/sample/stmt_list_assign.py.ast @@ -0,0 +1,88 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 4, 12 ], + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 1, 1, 1, 12 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 1, 1, 1, 5 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 1, 1, 1, 1 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 1, 3, 1, 5 ], + "className" : "int" + } + }, + "value" : { + "kind" : "NoneLiteral", + "location" : [ 1, 9, 1, 12 ] + } + } ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 3, 1, 3, 13 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 3, 1, 3, 1 ], + "name" : "x" + } ], + "value" : { + "kind" : "ListExpr", + "location" : [ 3, 5, 3, 13 ], + "elements" : [ { + "kind" : "IntegerLiteral", + "location" : [ 3, 6, 3, 6 ], + "value" : 1 + }, { + "kind" : "IntegerLiteral", + "location" : [ 3, 9, 3, 9 ], + "value" : 2 + }, { + "kind" : "IntegerLiteral", + "location" : [ 3, 12, 3, 12 ], + "value" : 3 + } ] + } + }, { + "kind" : "AssignStmt", + "location" : [ 4, 1, 4, 11 ], + "targets" : [ { + "kind" : "IndexExpr", + "location" : [ 4, 1, 4, 4 ], + "list" : { + "kind" : "Identifier", + "location" : [ 4, 1, 4, 1 ], + "name" : "x" + }, + "index" : { + "kind" : "IntegerLiteral", + "location" : [ 4, 3, 4, 3 ], + "value" : 0 + } + } ], + "value" : { + "kind" : "IndexExpr", + "location" : [ 4, 8, 4, 11 ], + "list" : { + "kind" : "Identifier", + "location" : [ 4, 8, 4, 8 ], + "name" : "x" + }, + "index" : { + "kind" : "IntegerLiteral", + "location" : [ 4, 10, 4, 10 ], + "value" : 1 + } + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/sample/stmt_while.py b/src/test/data/pa1/sample/stmt_while.py new file mode 100644 index 0000000..1aaefd8 --- /dev/null +++ b/src/test/data/pa1/sample/stmt_while.py @@ -0,0 +1,3 @@ +while True: + pass + diff --git a/src/test/data/pa1/sample/stmt_while.py.ast b/src/test/data/pa1/sample/stmt_while.py.ast new file mode 100644 index 0000000..a564490 --- /dev/null +++ b/src/test/data/pa1/sample/stmt_while.py.ast @@ -0,0 +1,20 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 4, 1 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "WhileStmt", + "location" : [ 1, 1, 4, 1 ], + "condition" : { + "kind" : "BooleanLiteral", + "location" : [ 1, 7, 1, 10 ], + "value" : true + }, + "body" : [ ] + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/src/test/data/pa1/student_contributed/bad.py b/src/test/data/pa1/student_contributed/bad.py new file mode 100644 index 0000000..b85905e --- /dev/null +++ b/src/test/data/pa1/student_contributed/bad.py @@ -0,0 +1 @@ +1 2 3 diff --git a/src/test/data/pa1/student_contributed/good.py b/src/test/data/pa1/student_contributed/good.py new file mode 100644 index 0000000..8138b36 --- /dev/null +++ b/src/test/data/pa1/student_contributed/good.py @@ -0,0 +1 @@ +1 + 2 + 3 From 997178ba9cd1d191edcd01f1d896627a91f3e722 Mon Sep 17 00:00:00 2001 From: bill Date: Wed, 17 Feb 2021 20:45:38 +0800 Subject: [PATCH 02/52] initial works on the lexer --- src/main/cup/chocopy/pa1/ChocoPy.cup | 5 + src/main/jflex/chocopy/pa1/ChocoPy.jflex | 129 +- src/main/jflex/chocopy/pa1/ChocoPyLexer.java | 1260 ++++++++++++++++++ 3 files changed, 1382 insertions(+), 12 deletions(-) create mode 100644 src/main/jflex/chocopy/pa1/ChocoPyLexer.java diff --git a/src/main/cup/chocopy/pa1/ChocoPy.cup b/src/main/cup/chocopy/pa1/ChocoPy.cup index d4ff444..0bc9dd6 100644 --- a/src/main/cup/chocopy/pa1/ChocoPy.cup +++ b/src/main/cup/chocopy/pa1/ChocoPy.cup @@ -144,6 +144,11 @@ action code {: */ terminal NEWLINE; terminal String PLUS; +terminal String MINUS; +terminal String MULTIPLY; +terminal String DIVIDE; +terminal String NAMES; + terminal Integer NUMBER; /* Returned by the lexer for erroneous tokens. Since it does not appear in * the grammar, it indicates a syntax error. */ diff --git a/src/main/jflex/chocopy/pa1/ChocoPy.jflex b/src/main/jflex/chocopy/pa1/ChocoPy.jflex index 9aafe7f..e90072a 100644 --- a/src/main/jflex/chocopy/pa1/ChocoPy.jflex +++ b/src/main/jflex/chocopy/pa1/ChocoPy.jflex @@ -1,6 +1,6 @@ package chocopy.pa1; import java_cup.runtime.*; - +import java.util.ArrayList; %% /*** Do not change the flags below unless you know what you are doing. ***/ @@ -8,7 +8,7 @@ import java_cup.runtime.*; %unicode %line %column - +%states AFTER %class ChocoPyLexer %public @@ -32,11 +32,12 @@ import java_cup.runtime.*; /** Producer of token-related values for the parser. */ final ComplexSymbolFactory symbolFactory = new ComplexSymbolFactory(); - + private int currIndent = 0; + private ArrayList stack = new ArrayList(20); /** Return a terminal symbol of syntactic category TYPE and no * semantic value at the current source location. */ private Symbol symbol(int type) { - return symbol(type, yytext()); + return symbol(type); } /** Return a terminal symbol of syntactic category TYPE and semantic @@ -47,7 +48,17 @@ import java_cup.runtime.*; new ComplexSymbolFactory.Location(yyline + 1,yycolumn + yylength()), value); } - + private void push(int indent){ + stack.add(indent); + } + private int pop(){ + if(stack.isEmpty()) return 0; + return stack.remove(stack.size() - 1); + } + private int top(){ + if(stack.isEmpty) return 0; + return stack.get(stack.size() - 1); + } %} /* Macros (regexes used in rules below) */ @@ -55,25 +66,119 @@ import java_cup.runtime.*; WhiteSpace = [ \t] LineBreak = \r|\n|\r\n -IntegerLiteral = 0 | [1-9][0-9]* - +IntegerLiteral = 0|[1-9][0-9]* +StringLiteral = \"([^\"\\]|(\\\")|(\\t)|(\\r)|(\\n)|(\\\\))*\" +Names = (_|[a-z]|[A-Z])(_|[a-z]|[A-Z])* +Comments = #[^\r\n]* %% - - { +{ + {WhiteSpace} + { + String space = yytext(); + if(space == "\t") + currIndent += 8; + else + currIndent ++; + } + {LineBreak} + { + currIndent = 0; + } + {Comments} { /* ignored */ } + [^ \t\r\n#] + { + yypushback(1); + if(top() > currIndent) + { + pop(); + return symbol(ChocoPyTokens.DEDENT); + } + yystart(AFTER); + if(top()< currIndent) + { + push(currIndent); + return symbol(ChocoPyTokens.INDENT); + } + } +} + { /* Delimiters. */ - {LineBreak} { return symbol(ChocoPyTokens.NEWLINE); } + {LineBreak} { return symbol(ChocoPyTokens.NEWLINE); yybegin(YYINITIAL); currIndent = 0;} + ":" { return symbol(ChocoPyTokens.COLON); } + "," { return symbol(ChocoPyTokens.COMMA); } /* Literals. */ {IntegerLiteral} { return symbol(ChocoPyTokens.NUMBER, Integer.parseInt(yytext())); } + {StringLiteral} { return symbol(ChocoPyTokens.STRING, yytext());} + "False" { return symbol(ChocoPyTokens.BOOL, false); } + "True" { return symbol(ChocoPyTokens.BOOL, true); } + "None" { return symbol(ChocoPyTokens.NONE); } + + /*Keywords*/ + "if" {return symbol(ChocoPyTokens.IF);} + "else" {return symbol(ChocoPyTokens.ELSE);} + "elif" {return symbol(ChocoPyTokens.ELIF);} + "while" {return symbol(ChocoPyTokens.WHILE);} + "class" {return symbol(ChocoPyTokens.CLASS);} + "def" {return symbol(ChocoPyTokens.DEF);} + "lambda" {return symbol(ChocoPyTokens.LAMBDA);} + "as" { return symbol(ChocoPyTokens.AS); } + "for" { return symbol(ChocoPyTokens.FOR); } + "global" { return symbol(ChocoPyTokens.GLOBAL); } + "in" { return symbol(ChocoPyTokens.IN); } + "nonlocal" { return symbol(ChocoPyTokens.NONLOCAL); } + "pass" { return symbol(ChocoPyTokens.PASS); } + "return" { return symbol(ChocoPyTokens.RETURN); } + "assert" { return symbol(ChocoPyTokens.ASSERT); } + "await" { return symbol(ChocoPyTokens.AWAIT); } + "break" { return symbol(ChocoPyTokens.BREAK); } + "continue" { return symbol(ChocoPyTokens.CONTINUE); } + "del" { return symbol(ChocoPyTokens.DEL); } + "except" { return symbol(ChocoPyTokens.EXCEPT); } + "finally" { return symbol(ChocoPyTokens.FINALLY); } + "from" { return symbol(ChocoPyTokens.FROM); } + "import" { return symbol(ChocoPyTokens.IMPORT); } + "raise" { return symbol(ChocoPyTokens.RAISE); } + "try" { return symbol(ChocoPyTokens.TRY); } + "with" { return symbol(ChocoPyTokens.WITH); } + "yield" { return symbol(ChocoPyTokens.YIELD); } - /* Operators. */ - "+" { return symbol(ChocoPyTokens.PLUS, yytext()); } + /* Operators. */ + "+" { return symbol(ChocoPyTokens.PLUS); } + "-" { return symbol(ChocoPyTokens.MINUS); } + "*" { return symbol(ChocoPyTokens.MUL); } + "//" { return symbol(ChocoPyTokens.DIV); } + "/" { return symbol(ChocoPyTokens.DIV); } + "%" { return symbol(ChocoPyTokens.MOD); } + ">" { return symbol(ChocoPyTokens.GT); } + "<" { return symbol(ChocoPyTokens.LT); } + "==" { return symbol(ChocoPyTokens.EQUAL); } + "!=" { return symbol(ChocoPyTokens.NEQ); } + ">=" { return symbol(ChocoPyTokens.GEQ); } + "<=" { return symbol(ChocoPyTokens.LEQ); } + "=" { return symbol(ChocoPyTokens.ASSIGN); } + "and" { return symbol(ChocoPyTokens.AND); } + "or" { return symbol(ChocoPyTokens.OR); } + "not" { return symbol(ChocoPyTokens.NOT); } + "." { return symbol(ChocoPyTokens.DOT); } + "(" { return symbol(ChocoPyTokens.LPAR); } + ")" { return symbol(ChocoPyTokens.RPAR); } + "[" { return symbol(ChocoPyTokens.LBR); } + "]" { return symbol(ChocoPyTokens.RBR); } + "->" { return symbol(ChocoPyTokens.ARROW); } + "is" { return symbol(ChocoPyTokens.IS); } + + + /*Identifiers*/ + {Names} {return symbol(ChocoPyTokens.NAMES, yytext());} /* Whitespace. */ {WhiteSpace} { /* ignore */ } + /* Comment. */ + {Comments} { /* ignore */ } } <> { return symbol(ChocoPyTokens.EOF); } diff --git a/src/main/jflex/chocopy/pa1/ChocoPyLexer.java b/src/main/jflex/chocopy/pa1/ChocoPyLexer.java new file mode 100644 index 0000000..2045209 --- /dev/null +++ b/src/main/jflex/chocopy/pa1/ChocoPyLexer.java @@ -0,0 +1,1260 @@ +// DO NOT EDIT +// Generated by JFlex 1.8.2 http://jflex.de/ +// source: ChocoPy.jflex + +package chocopy.pa1; +import java_cup.runtime.*; +import java.util.ArrayList; + +// See https://github.com/jflex-de/jflex/issues/222 +@SuppressWarnings("FallThrough") +public class ChocoPyLexer implements java_cup.runtime.Scanner { + + /** This character denotes the end of file. */ + public static final int YYEOF = -1; + + /** Initial size of the lookahead buffer. */ + private static final int ZZ_BUFFERSIZE = 16384; + + // Lexical states. + public static final int YYINITIAL = 0; + public static final int AFTER = 2; + + /** + * ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l + * ZZ_LEXSTATE[l+1] is the state in the DFA for the lexical state l + * at the beginning of a line + * l is of the form l = 2*k, k a non negative integer + */ + private static final int ZZ_LEXSTATE[] = { + 0, 0, 1, 1 + }; + + /** + * Top-level table for translating characters to character classes + */ + private static final int [] ZZ_CMAP_TOP = zzUnpackcmap_top(); + + private static final String ZZ_CMAP_TOP_PACKED_0 = + "\1\0\u10ff\u0100"; + + private static int [] zzUnpackcmap_top() { + int [] result = new int[4352]; + int offset = 0; + offset = zzUnpackcmap_top(ZZ_CMAP_TOP_PACKED_0, offset, result); + return result; + } + + private static int zzUnpackcmap_top(String packed, int offset, int [] result) { + int i = 0; /* index in packed string */ + int j = offset; /* index in unpacked array */ + int l = packed.length(); + while (i < l) { + int count = packed.charAt(i++); + int value = packed.charAt(i++); + do result[j++] = value; while (--count > 0); + } + return j; + } + + + /** + * Second-level tables for translating characters to character classes + */ + private static final int [] ZZ_CMAP_BLOCKS = zzUnpackcmap_blocks(); + + private static final String ZZ_CMAP_BLOCKS_PACKED_0 = + "\11\0\1\1\1\2\2\0\1\3\22\0\1\1\1\4"+ + "\1\5\1\6\1\0\1\7\2\0\1\10\1\11\1\12"+ + "\1\13\1\14\1\15\1\16\1\17\1\20\11\21\1\22"+ + "\1\0\1\23\1\24\1\25\2\0\5\26\1\27\7\26"+ + "\1\30\5\26\1\31\6\26\1\32\1\33\1\34\1\0"+ + "\1\26\1\0\1\35\1\36\1\37\1\40\1\41\1\42"+ + "\1\43\1\44\1\45\1\26\1\46\1\47\1\50\1\51"+ + "\1\52\1\53\1\26\1\54\1\55\1\56\1\57\1\26"+ + "\1\60\1\61\1\62\1\26\u0185\0"; + + private static int [] zzUnpackcmap_blocks() { + int [] result = new int[512]; + int offset = 0; + offset = zzUnpackcmap_blocks(ZZ_CMAP_BLOCKS_PACKED_0, offset, result); + return result; + } + + private static int zzUnpackcmap_blocks(String packed, int offset, int [] result) { + int i = 0; /* index in packed string */ + int j = offset; /* index in unpacked array */ + int l = packed.length(); + while (i < l) { + int count = packed.charAt(i++); + int value = packed.charAt(i++); + do result[j++] = value; while (--count > 0); + } + return j; + } + + /** + * Translates DFA states to action switch labels. + */ + private static final int [] ZZ_ACTION = zzUnpackAction(); + + private static final String ZZ_ACTION_PACKED_0 = + "\2\0\1\1\1\2\2\3\1\4\1\5\1\6\2\7"+ + "\2\5\1\6\1\10\1\11\1\12\1\13\1\14\1\15"+ + "\1\16\1\17\1\20\2\21\1\22\1\23\1\24\1\25"+ + "\4\26\1\27\1\30\20\26\1\31\1\0\1\32\1\0"+ + "\1\33\1\20\1\34\1\35\1\36\4\26\1\37\13\26"+ + "\1\40\1\26\1\41\1\42\2\26\1\43\12\26\1\44"+ + "\5\26\1\45\1\46\4\26\1\47\5\26\1\50\3\26"+ + "\1\51\4\26\1\52\1\53\5\26\1\54\1\55\2\26"+ + "\1\56\4\26\1\57\3\26\1\60\1\26\1\61\1\26"+ + "\1\62\1\63\1\64\7\26\1\65\1\26\1\66\1\67"+ + "\1\70\1\26\1\71\1\26\1\72\1\73\1\74\1\26"+ + "\1\75\1\26\1\76\1\26\1\77\1\100"; + + private static int [] zzUnpackAction() { + int [] result = new int[172]; + int offset = 0; + offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); + return result; + } + + private static int zzUnpackAction(String packed, int offset, int [] result) { + int i = 0; /* index in packed string */ + int j = offset; /* index in unpacked array */ + int l = packed.length(); + while (i < l) { + int count = packed.charAt(i++); + int value = packed.charAt(i++); + do result[j++] = value; while (--count > 0); + } + return j; + } + + + /** + * Translates a state to a row index in the transition table + */ + private static final int [] ZZ_ROWMAP = zzUnpackRowMap(); + + private static final String ZZ_ROWMAP_PACKED_0 = + "\0\0\0\63\0\146\0\146\0\146\0\231\0\314\0\146"+ + "\0\146\0\146\0\377\0\u0132\0\u0165\0\u0198\0\146\0\146"+ + "\0\146\0\146\0\146\0\146\0\u01cb\0\146\0\u01fe\0\146"+ + "\0\u0231\0\146\0\u0264\0\u0297\0\u02ca\0\u02fd\0\u0330\0\u0363"+ + "\0\u0396\0\146\0\146\0\u03c9\0\u03fc\0\u042f\0\u0462\0\u0495"+ + "\0\u04c8\0\u04fb\0\u052e\0\u0561\0\u0594\0\u05c7\0\u05fa\0\u062d"+ + "\0\u0660\0\u0693\0\u06c6\0\146\0\u0165\0\146\0\u06f9\0\146"+ + "\0\146\0\146\0\146\0\146\0\u072c\0\u075f\0\u0792\0\u07c5"+ + "\0\u07f8\0\u082b\0\u085e\0\u0891\0\u08c4\0\u08f7\0\u092a\0\u095d"+ + "\0\u0990\0\u09c3\0\u09f6\0\u0a29\0\u02fd\0\u0a5c\0\u02fd\0\u02fd"+ + "\0\u0a8f\0\u0ac2\0\u02fd\0\u0af5\0\u0b28\0\u0b5b\0\u0b8e\0\u0bc1"+ + "\0\u0bf4\0\u0c27\0\u0c5a\0\u0c8d\0\u0cc0\0\u02fd\0\u0cf3\0\u0d26"+ + "\0\u0d59\0\u0d8c\0\u0dbf\0\u02fd\0\u02fd\0\u0df2\0\u0e25\0\u0e58"+ + "\0\u0e8b\0\u02fd\0\u0ebe\0\u0ef1\0\u0f24\0\u0f57\0\u0f8a\0\u02fd"+ + "\0\u0fbd\0\u0ff0\0\u1023\0\u02fd\0\u1056\0\u1089\0\u10bc\0\u10ef"+ + "\0\u02fd\0\u02fd\0\u1122\0\u1155\0\u1188\0\u11bb\0\u11ee\0\u02fd"+ + "\0\u02fd\0\u1221\0\u1254\0\u02fd\0\u1287\0\u12ba\0\u12ed\0\u1320"+ + "\0\u02fd\0\u1353\0\u1386\0\u13b9\0\u02fd\0\u13ec\0\u02fd\0\u141f"+ + "\0\u02fd\0\u02fd\0\u02fd\0\u1452\0\u1485\0\u14b8\0\u14eb\0\u151e"+ + "\0\u1551\0\u1584\0\u02fd\0\u15b7\0\u02fd\0\u02fd\0\u02fd\0\u15ea"+ + "\0\u02fd\0\u161d\0\u02fd\0\u02fd\0\u02fd\0\u1650\0\u02fd\0\u1683"+ + "\0\u02fd\0\u16b6\0\u02fd\0\u02fd"; + + private static int [] zzUnpackRowMap() { + int [] result = new int[172]; + int offset = 0; + offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result); + return result; + } + + private static int zzUnpackRowMap(String packed, int offset, int [] result) { + int i = 0; /* index in packed string */ + int j = offset; /* index in unpacked array */ + int l = packed.length(); + while (i < l) { + int high = packed.charAt(i++) << 16; + result[j++] = high | packed.charAt(i++); + } + return j; + } + + /** + * The transition table of the DFA + */ + private static final int [] ZZ_TRANS = zzUnpackTrans(); + + private static final String ZZ_TRANS_PACKED_0 = + "\1\3\1\4\1\5\1\6\2\3\1\7\54\3\1\10"+ + "\1\11\1\12\1\13\1\14\1\15\1\16\1\17\1\20"+ + "\1\21\1\22\1\23\1\24\1\25\1\26\1\27\1\30"+ + "\1\31\1\32\1\33\1\34\1\35\1\36\1\37\1\40"+ + "\1\41\1\42\1\10\1\43\1\44\1\45\1\46\1\47"+ + "\1\50\1\51\1\52\1\36\1\53\1\36\1\54\1\36"+ + "\1\55\1\56\1\57\1\60\1\36\1\61\1\36\1\62"+ + "\1\36\1\63\65\0\1\5\60\0\2\7\2\0\57\7"+ + "\2\0\1\12\104\0\1\64\36\0\5\65\1\66\25\65"+ + "\1\67\27\65\2\16\2\0\57\16\25\0\1\70\54\0"+ + "\1\71\63\0\2\31\65\0\1\72\62\0\1\73\62\0"+ + "\1\74\64\0\4\36\3\0\26\36\26\0\4\36\3\0"+ + "\1\75\25\36\26\0\4\36\3\0\15\36\1\76\10\36"+ + "\26\0\4\36\3\0\17\36\1\77\6\36\26\0\4\36"+ + "\3\0\14\36\1\100\3\36\1\101\2\36\1\102\2\36"+ + "\26\0\4\36\3\0\17\36\1\103\6\36\26\0\4\36"+ + "\3\0\12\36\1\104\2\36\1\105\10\36\26\0\4\36"+ + "\3\0\4\36\1\106\21\36\26\0\4\36\3\0\12\36"+ + "\1\107\11\36\1\110\1\36\26\0\4\36\3\0\10\36"+ + "\1\111\4\36\1\112\1\36\1\113\6\36\26\0\4\36"+ + "\3\0\12\36\1\114\13\36\26\0\4\36\3\0\5\36"+ + "\1\115\5\36\1\116\1\117\3\36\1\120\5\36\26\0"+ + "\4\36\3\0\1\121\25\36\26\0\4\36\3\0\15\36"+ + "\1\122\10\36\26\0\4\36\3\0\17\36\1\123\6\36"+ + "\26\0\4\36\3\0\1\124\25\36\26\0\4\36\3\0"+ + "\1\125\3\36\1\126\21\36\26\0\4\36\3\0\17\36"+ + "\1\127\6\36\26\0\4\36\3\0\7\36\1\130\1\131"+ + "\15\36\26\0\4\36\3\0\10\36\1\132\15\36\5\0"+ + "\1\65\25\0\1\65\15\0\1\65\2\0\1\65\1\0"+ + "\1\65\32\0\4\36\3\0\12\36\1\133\13\36\26\0"+ + "\4\36\3\0\14\36\1\134\11\36\26\0\4\36\3\0"+ + "\22\36\1\135\3\36\26\0\4\36\3\0\3\36\1\136"+ + "\22\36\26\0\4\36\3\0\20\36\1\137\5\36\26\0"+ + "\4\36\3\0\1\140\25\36\26\0\4\36\3\0\4\36"+ + "\1\141\21\36\26\0\4\36\3\0\1\142\25\36\26\0"+ + "\4\36\3\0\14\36\1\143\11\36\26\0\4\36\3\0"+ + "\5\36\1\144\4\36\1\145\13\36\26\0\4\36\3\0"+ + "\10\36\1\146\7\36\1\147\5\36\26\0\4\36\3\0"+ + "\2\36\1\150\23\36\26\0\4\36\3\0\14\36\1\151"+ + "\11\36\26\0\4\36\3\0\17\36\1\152\6\36\26\0"+ + "\4\36\3\0\15\36\1\153\10\36\26\0\4\36\3\0"+ + "\15\36\1\154\10\36\26\0\4\36\3\0\16\36\1\155"+ + "\7\36\26\0\4\36\3\0\13\36\1\156\12\36\26\0"+ + "\4\36\3\0\14\36\1\157\4\36\1\160\4\36\26\0"+ + "\4\36\3\0\20\36\1\161\5\36\26\0\4\36\3\0"+ + "\10\36\1\162\15\36\26\0\4\36\3\0\21\36\1\163"+ + "\4\36\26\0\4\36\3\0\25\36\1\164\26\0\4\36"+ + "\3\0\10\36\1\165\15\36\26\0\4\36\3\0\21\36"+ + "\1\166\4\36\26\0\4\36\3\0\4\36\1\167\21\36"+ + "\26\0\4\36\3\0\20\36\1\170\5\36\26\0\4\36"+ + "\3\0\4\36\1\171\21\36\26\0\4\36\3\0\4\36"+ + "\1\172\21\36\26\0\4\36\3\0\4\36\1\173\21\36"+ + "\26\0\4\36\3\0\10\36\1\174\15\36\26\0\4\36"+ + "\3\0\1\175\25\36\26\0\4\36\3\0\20\36\1\176"+ + "\5\36\26\0\4\36\3\0\21\36\1\177\4\36\26\0"+ + "\4\36\3\0\5\36\1\200\20\36\26\0\4\36\3\0"+ + "\4\36\1\201\21\36\26\0\4\36\3\0\4\36\1\202"+ + "\21\36\26\0\4\36\3\0\1\203\25\36\26\0\4\36"+ + "\3\0\13\36\1\204\12\36\26\0\4\36\3\0\1\36"+ + "\1\205\24\36\26\0\4\36\3\0\15\36\1\206\10\36"+ + "\26\0\4\36\3\0\1\36\1\207\24\36\26\0\4\36"+ + "\3\0\12\36\1\210\13\36\26\0\4\36\3\0\20\36"+ + "\1\211\5\36\26\0\4\36\3\0\20\36\1\212\5\36"+ + "\26\0\4\36\3\0\22\36\1\213\3\36\26\0\4\36"+ + "\3\0\12\36\1\214\13\36\26\0\4\36\3\0\7\36"+ + "\1\215\16\36\26\0\4\36\3\0\12\36\1\216\13\36"+ + "\26\0\4\36\3\0\4\36\1\217\21\36\26\0\4\36"+ + "\3\0\17\36\1\220\6\36\26\0\4\36\3\0\21\36"+ + "\1\221\4\36\26\0\4\36\3\0\11\36\1\222\14\36"+ + "\26\0\4\36\3\0\20\36\1\223\5\36\26\0\4\36"+ + "\3\0\10\36\1\224\15\36\26\0\4\36\3\0\16\36"+ + "\1\225\7\36\26\0\4\36\3\0\12\36\1\226\13\36"+ + "\26\0\4\36\3\0\1\227\25\36\26\0\4\36\3\0"+ + "\17\36\1\230\6\36\26\0\4\36\3\0\3\36\1\231"+ + "\22\36\26\0\4\36\3\0\15\36\1\232\10\36\26\0"+ + "\4\36\3\0\4\36\1\233\21\36\26\0\4\36\3\0"+ + "\17\36\1\234\6\36\26\0\4\36\3\0\4\36\1\235"+ + "\21\36\26\0\4\36\3\0\3\36\1\236\22\36\26\0"+ + "\4\36\3\0\21\36\1\237\4\36\26\0\4\36\3\0"+ + "\14\36\1\240\11\36\26\0\4\36\3\0\21\36\1\241"+ + "\4\36\26\0\4\36\3\0\12\36\1\242\13\36\26\0"+ + "\4\36\3\0\12\36\1\243\13\36\26\0\4\36\3\0"+ + "\21\36\1\244\4\36\26\0\4\36\3\0\1\245\25\36"+ + "\26\0\4\36\3\0\2\36\1\246\23\36\26\0\4\36"+ + "\3\0\14\36\1\247\11\36\26\0\4\36\3\0\22\36"+ + "\1\250\3\36\26\0\4\36\3\0\25\36\1\251\26\0"+ + "\4\36\3\0\1\252\25\36\26\0\4\36\3\0\4\36"+ + "\1\253\21\36\26\0\4\36\3\0\12\36\1\254\13\36"; + + private static int [] zzUnpackTrans() { + int [] result = new int[5865]; + int offset = 0; + offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result); + return result; + } + + private static int zzUnpackTrans(String packed, int offset, int [] result) { + int i = 0; /* index in packed string */ + int j = offset; /* index in unpacked array */ + int l = packed.length(); + while (i < l) { + int count = packed.charAt(i++); + int value = packed.charAt(i++); + value--; + do result[j++] = value; while (--count > 0); + } + return j; + } + + + /** Error code for "Unknown internal scanner error". */ + private static final int ZZ_UNKNOWN_ERROR = 0; + /** Error code for "could not match input". */ + private static final int ZZ_NO_MATCH = 1; + /** Error code for "pushback value was too large". */ + private static final int ZZ_PUSHBACK_2BIG = 2; + + /** + * Error messages for {@link #ZZ_UNKNOWN_ERROR}, {@link #ZZ_NO_MATCH}, and + * {@link #ZZ_PUSHBACK_2BIG} respectively. + */ + private static final String ZZ_ERROR_MSG[] = { + "Unknown internal scanner error", + "Error: could not match input", + "Error: pushback value was too large" + }; + + /** + * ZZ_ATTRIBUTE[aState] contains the attributes of state {@code aState} + */ + private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute(); + + private static final String ZZ_ATTRIBUTE_PACKED_0 = + "\2\0\3\11\2\1\3\11\4\1\6\11\1\1\1\11"+ + "\1\1\1\11\1\1\1\11\7\1\2\11\20\1\1\11"+ + "\1\0\1\11\1\0\5\11\160\1"; + + private static int [] zzUnpackAttribute() { + int [] result = new int[172]; + int offset = 0; + offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result); + return result; + } + + private static int zzUnpackAttribute(String packed, int offset, int [] result) { + int i = 0; /* index in packed string */ + int j = offset; /* index in unpacked array */ + int l = packed.length(); + while (i < l) { + int count = packed.charAt(i++); + int value = packed.charAt(i++); + do result[j++] = value; while (--count > 0); + } + return j; + } + + /** Input device. */ + private java.io.Reader zzReader; + + /** Current state of the DFA. */ + private int zzState; + + /** Current lexical state. */ + private int zzLexicalState = YYINITIAL; + + /** + * This buffer contains the current text to be matched and is the source of the {@link #yytext()} + * string. + */ + private char zzBuffer[] = new char[ZZ_BUFFERSIZE]; + + /** Text position at the last accepting state. */ + private int zzMarkedPos; + + /** Current text position in the buffer. */ + private int zzCurrentPos; + + /** Marks the beginning of the {@link #yytext()} string in the buffer. */ + private int zzStartRead; + + /** Marks the last character in the buffer, that has been read from input. */ + private int zzEndRead; + + /** + * Whether the scanner is at the end of file. + * @see #yyatEOF + */ + private boolean zzAtEOF; + + /** + * The number of occupied positions in {@link #zzBuffer} beyond {@link #zzEndRead}. + * + *

When a lead/high surrogate has been read from the input stream into the final + * {@link #zzBuffer} position, this will have a value of 1; otherwise, it will have a value of 0. + */ + private int zzFinalHighSurrogate = 0; + + /** Number of newlines encountered up to the start of the matched text. */ + private int yyline; + + /** Number of characters from the last newline up to the start of the matched text. */ + private int yycolumn; + + /** Number of characters up to the start of the matched text. */ + @SuppressWarnings("unused") + private long yychar; + + /** Whether the scanner is currently at the beginning of a line. */ + @SuppressWarnings("unused") + private boolean zzAtBOL = true; + + /** Whether the user-EOF-code has already been executed. */ + @SuppressWarnings("unused") + private boolean zzEOFDone; + + /* user code: */ + /* The code below includes some convenience methods to create tokens + * of a given type and optionally a value that the CUP parser can + * understand. Specifically, a lot of the logic below deals with + * embedded information about where in the source code a given token + * was recognized, so that the parser can report errors accurately. + * (It need not be modified for this project.) */ + + /** Producer of token-related values for the parser. */ + final ComplexSymbolFactory symbolFactory = new ComplexSymbolFactory(); + private int currIndent = 0; + private ArrayList stack = new ArrayList(20); + /** Return a terminal symbol of syntactic category TYPE and no + * semantic value at the current source location. */ + private Symbol symbol(int type) { + return symbol(type); + } + + /** Return a terminal symbol of syntactic category TYPE and semantic + * value VALUE at the current source location. */ + private Symbol symbol(int type, Object value) { + return symbolFactory.newSymbol(ChocoPyTokens.terminalNames[type], type, + new ComplexSymbolFactory.Location(yyline + 1, yycolumn + 1), + new ComplexSymbolFactory.Location(yyline + 1,yycolumn + yylength()), + value); + } + private void push(int indent){ + stack.add(indent); + } + private int pop(){ + if(stack.isEmpty()) return 0; + return stack.remove(stack.size() - 1); + } + private int top(){ + if(stack.isEmpty) return 0; + return stack.get(stack.size() - 1); + } + + + /** + * Creates a new scanner + * + * @param in the java.io.Reader to read input from. + */ + public ChocoPyLexer(java.io.Reader in) { + this.zzReader = in; + } + + /** + * Translates raw input code points to DFA table row + */ + private static int zzCMap(int input) { + int offset = input & 255; + return offset == input ? ZZ_CMAP_BLOCKS[offset] : ZZ_CMAP_BLOCKS[ZZ_CMAP_TOP[input >> 8] | offset]; + } + + /** + * Refills the input buffer. + * + * @return {@code false} iff there was new input. + * @exception java.io.IOException if any I/O-Error occurs + */ + private boolean zzRefill() throws java.io.IOException { + + /* first: make room (if you can) */ + if (zzStartRead > 0) { + zzEndRead += zzFinalHighSurrogate; + zzFinalHighSurrogate = 0; + System.arraycopy(zzBuffer, zzStartRead, + zzBuffer, 0, + zzEndRead - zzStartRead); + + /* translate stored positions */ + zzEndRead -= zzStartRead; + zzCurrentPos -= zzStartRead; + zzMarkedPos -= zzStartRead; + zzStartRead = 0; + } + + /* is the buffer big enough? */ + if (zzCurrentPos >= zzBuffer.length - zzFinalHighSurrogate) { + /* if not: blow it up */ + char newBuffer[] = new char[zzBuffer.length * 2]; + System.arraycopy(zzBuffer, 0, newBuffer, 0, zzBuffer.length); + zzBuffer = newBuffer; + zzEndRead += zzFinalHighSurrogate; + zzFinalHighSurrogate = 0; + } + + /* fill the buffer with new input */ + int requested = zzBuffer.length - zzEndRead; + int numRead = zzReader.read(zzBuffer, zzEndRead, requested); + + /* not supposed to occur according to specification of java.io.Reader */ + if (numRead == 0) { + throw new java.io.IOException( + "Reader returned 0 characters. See JFlex examples/zero-reader for a workaround."); + } + if (numRead > 0) { + zzEndRead += numRead; + if (Character.isHighSurrogate(zzBuffer[zzEndRead - 1])) { + if (numRead == requested) { // We requested too few chars to encode a full Unicode character + --zzEndRead; + zzFinalHighSurrogate = 1; + } else { // There is room in the buffer for at least one more char + int c = zzReader.read(); // Expecting to read a paired low surrogate char + if (c == -1) { + return true; + } else { + zzBuffer[zzEndRead++] = (char)c; + } + } + } + /* potentially more input available */ + return false; + } + + /* numRead < 0 ==> end of stream */ + return true; + } + + + /** + * Closes the input reader. + * + * @throws java.io.IOException if the reader could not be closed. + */ + public final void yyclose() throws java.io.IOException { + zzAtEOF = true; // indicate end of file + zzEndRead = zzStartRead; // invalidate buffer + + if (zzReader != null) { + zzReader.close(); + } + } + + + /** + * Resets the scanner to read from a new input stream. + * + *

Does not close the old reader. + * + *

All internal variables are reset, the old input stream cannot be reused (internal + * buffer is discarded and lost). Lexical state is set to {@code ZZ_INITIAL}. + * + *

Internal scan buffer is resized down to its initial length, if it has grown. + * + * @param reader The new input stream. + */ + public final void yyreset(java.io.Reader reader) { + zzReader = reader; + zzEOFDone = false; + yyResetPosition(); + zzLexicalState = YYINITIAL; + if (zzBuffer.length > ZZ_BUFFERSIZE) { + zzBuffer = new char[ZZ_BUFFERSIZE]; + } + } + + /** + * Resets the input position. + */ + private final void yyResetPosition() { + zzAtBOL = true; + zzAtEOF = false; + zzCurrentPos = 0; + zzMarkedPos = 0; + zzStartRead = 0; + zzEndRead = 0; + zzFinalHighSurrogate = 0; + yyline = 0; + yycolumn = 0; + yychar = 0L; + } + + + /** + * Returns whether the scanner has reached the end of the reader it reads from. + * + * @return whether the scanner has reached EOF. + */ + public final boolean yyatEOF() { + return zzAtEOF; + } + + + /** + * Returns the current lexical state. + * + * @return the current lexical state. + */ + public final int yystate() { + return zzLexicalState; + } + + + /** + * Enters a new lexical state. + * + * @param newState the new lexical state + */ + public final void yybegin(int newState) { + zzLexicalState = newState; + } + + + /** + * Returns the text matched by the current regular expression. + * + * @return the matched text. + */ + public final String yytext() { + return new String(zzBuffer, zzStartRead, zzMarkedPos-zzStartRead); + } + + + /** + * Returns the character at the given position from the matched text. + * + *

It is equivalent to {@code yytext().charAt(pos)}, but faster. + * + * @param position the position of the character to fetch. A value from 0 to {@code yylength()-1}. + * + * @return the character at {@code position}. + */ + public final char yycharat(int position) { + return zzBuffer[zzStartRead + position]; + } + + + /** + * How many characters were matched. + * + * @return the length of the matched text region. + */ + public final int yylength() { + return zzMarkedPos-zzStartRead; + } + + + /** + * Reports an error that occurred while scanning. + * + *

In a well-formed scanner (no or only correct usage of {@code yypushback(int)} and a + * match-all fallback rule) this method will only be called with things that + * "Can't Possibly Happen". + * + *

If this method is called, something is seriously wrong (e.g. a JFlex bug producing a faulty + * scanner etc.). + * + *

Usual syntax/scanner level error handling should be done in error fallback rules. + * + * @param errorCode the code of the error message to display. + */ + private static void zzScanError(int errorCode) { + String message; + try { + message = ZZ_ERROR_MSG[errorCode]; + } catch (ArrayIndexOutOfBoundsException e) { + message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR]; + } + + throw new Error(message); + } + + + /** + * Pushes the specified amount of characters back into the input stream. + * + *

They will be read again by then next call of the scanning method. + * + * @param number the number of characters to be read again. This number must not be greater than + * {@link #yylength()}. + */ + public void yypushback(int number) { + if ( number > yylength() ) + zzScanError(ZZ_PUSHBACK_2BIG); + + zzMarkedPos -= number; + } + + + + + /** + * Resumes scanning until the next regular expression is matched, the end of input is encountered + * or an I/O-Error occurs. + * + * @return the next token. + * @exception java.io.IOException if any I/O-Error occurs. + */ + @Override public java_cup.runtime.Symbol next_token() throws java.io.IOException { + int zzInput; + int zzAction; + + // cached fields: + int zzCurrentPosL; + int zzMarkedPosL; + int zzEndReadL = zzEndRead; + char[] zzBufferL = zzBuffer; + + int [] zzTransL = ZZ_TRANS; + int [] zzRowMapL = ZZ_ROWMAP; + int [] zzAttrL = ZZ_ATTRIBUTE; + + while (true) { + zzMarkedPosL = zzMarkedPos; + + boolean zzR = false; + int zzCh; + int zzCharCount; + for (zzCurrentPosL = zzStartRead ; + zzCurrentPosL < zzMarkedPosL ; + zzCurrentPosL += zzCharCount ) { + zzCh = Character.codePointAt(zzBufferL, zzCurrentPosL, zzMarkedPosL); + zzCharCount = Character.charCount(zzCh); + switch (zzCh) { + case '\u000B': // fall through + case '\u000C': // fall through + case '\u0085': // fall through + case '\u2028': // fall through + case '\u2029': + yyline++; + yycolumn = 0; + zzR = false; + break; + case '\r': + yyline++; + yycolumn = 0; + zzR = true; + break; + case '\n': + if (zzR) + zzR = false; + else { + yyline++; + yycolumn = 0; + } + break; + default: + zzR = false; + yycolumn += zzCharCount; + } + } + + if (zzR) { + // peek one character ahead if it is + // (if we have counted one line too much) + boolean zzPeek; + if (zzMarkedPosL < zzEndReadL) + zzPeek = zzBufferL[zzMarkedPosL] == '\n'; + else if (zzAtEOF) + zzPeek = false; + else { + boolean eof = zzRefill(); + zzEndReadL = zzEndRead; + zzMarkedPosL = zzMarkedPos; + zzBufferL = zzBuffer; + if (eof) + zzPeek = false; + else + zzPeek = zzBufferL[zzMarkedPosL] == '\n'; + } + if (zzPeek) yyline--; + } + zzAction = -1; + + zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; + + zzState = ZZ_LEXSTATE[zzLexicalState]; + + // set up zzAction for empty match case: + int zzAttributes = zzAttrL[zzState]; + if ( (zzAttributes & 1) == 1 ) { + zzAction = zzState; + } + + + zzForAction: { + while (true) { + + if (zzCurrentPosL < zzEndReadL) { + zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL, zzEndReadL); + zzCurrentPosL += Character.charCount(zzInput); + } + else if (zzAtEOF) { + zzInput = YYEOF; + break zzForAction; + } + else { + // store back cached positions + zzCurrentPos = zzCurrentPosL; + zzMarkedPos = zzMarkedPosL; + boolean eof = zzRefill(); + // get translated positions and possibly new buffer + zzCurrentPosL = zzCurrentPos; + zzMarkedPosL = zzMarkedPos; + zzBufferL = zzBuffer; + zzEndReadL = zzEndRead; + if (eof) { + zzInput = YYEOF; + break zzForAction; + } + else { + zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL, zzEndReadL); + zzCurrentPosL += Character.charCount(zzInput); + } + } + int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMap(zzInput) ]; + if (zzNext == -1) break zzForAction; + zzState = zzNext; + + zzAttributes = zzAttrL[zzState]; + if ( (zzAttributes & 1) == 1 ) { + zzAction = zzState; + zzMarkedPosL = zzCurrentPosL; + if ( (zzAttributes & 8) == 8 ) break zzForAction; + } + + } + } + + // store back cached position + zzMarkedPos = zzMarkedPosL; + + if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { + zzAtEOF = true; + { + return symbol(ChocoPyTokens.EOF); + } + } + else { + switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { + case 1: + { yypushback(1); + if(top() > currIndent) + { + pop(); + return symbol(ChocoPyTokens.DEDENT); + } + yystart(AFTER); + if(top()< currIndent) + { + push(currIndent); + return symbol(ChocoPyTokens.INDENT); + } + } + // fall through + case 65: break; + case 2: + { String space = yytext(); + if(space == "\t") + currIndent += 8; + else + currIndent ++; + } + // fall through + case 66: break; + case 3: + { currIndent = 0; + } + // fall through + case 67: break; + case 4: + { /* ignored */ + } + // fall through + case 68: break; + case 5: + { return symbol(ChocoPyTokens.UNRECOGNIZED); + } + // fall through + case 69: break; + case 6: + { /* ignore */ + } + // fall through + case 70: break; + case 7: + { return symbol(ChocoPyTokens.NEWLINE); yybegin(YYINITIAL); currIndent = 0; + } + // fall through + case 71: break; + case 8: + { return symbol(ChocoPyTokens.MOD); + } + // fall through + case 72: break; + case 9: + { return symbol(ChocoPyTokens.LPAR); + } + // fall through + case 73: break; + case 10: + { return symbol(ChocoPyTokens.RPAR); + } + // fall through + case 74: break; + case 11: + { return symbol(ChocoPyTokens.MUL); + } + // fall through + case 75: break; + case 12: + { return symbol(ChocoPyTokens.PLUS); + } + // fall through + case 76: break; + case 13: + { return symbol(ChocoPyTokens.COMMA); + } + // fall through + case 77: break; + case 14: + { return symbol(ChocoPyTokens.MINUS); + } + // fall through + case 78: break; + case 15: + { return symbol(ChocoPyTokens.DOT); + } + // fall through + case 79: break; + case 16: + { return symbol(ChocoPyTokens.DIV); + } + // fall through + case 80: break; + case 17: + { return symbol(ChocoPyTokens.NUMBER, + Integer.parseInt(yytext())); + } + // fall through + case 81: break; + case 18: + { return symbol(ChocoPyTokens.COLON); + } + // fall through + case 82: break; + case 19: + { return symbol(ChocoPyTokens.LT); + } + // fall through + case 83: break; + case 20: + { return symbol(ChocoPyTokens.ASSIGN); + } + // fall through + case 84: break; + case 21: + { return symbol(ChocoPyTokens.GT); + } + // fall through + case 85: break; + case 22: + { return symbol(ChocoPyTokens.NAMES, yytext()); + } + // fall through + case 86: break; + case 23: + { return symbol(ChocoPyTokens.LBR); + } + // fall through + case 87: break; + case 24: + { return symbol(ChocoPyTokens.RBR); + } + // fall through + case 88: break; + case 25: + { return symbol(ChocoPyTokens.NEQ); + } + // fall through + case 89: break; + case 26: + { return symbol(ChocoPyTokens.STRING, yytext()); + } + // fall through + case 90: break; + case 27: + { return symbol(ChocoPyTokens.ARROW); + } + // fall through + case 91: break; + case 28: + { return symbol(ChocoPyTokens.LEQ); + } + // fall through + case 92: break; + case 29: + { return symbol(ChocoPyTokens.EQUAL); + } + // fall through + case 93: break; + case 30: + { return symbol(ChocoPyTokens.GEQ); + } + // fall through + case 94: break; + case 31: + { return symbol(ChocoPyTokens.AS); + } + // fall through + case 95: break; + case 32: + { return symbol(ChocoPyTokens.IF); + } + // fall through + case 96: break; + case 33: + { return symbol(ChocoPyTokens.IN); + } + // fall through + case 97: break; + case 34: + { return symbol(ChocoPyTokens.IS); + } + // fall through + case 98: break; + case 35: + { return symbol(ChocoPyTokens.OR); + } + // fall through + case 99: break; + case 36: + { return symbol(ChocoPyTokens.AND); + } + // fall through + case 100: break; + case 37: + { return symbol(ChocoPyTokens.DEF); + } + // fall through + case 101: break; + case 38: + { return symbol(ChocoPyTokens.DEL); + } + // fall through + case 102: break; + case 39: + { return symbol(ChocoPyTokens.FOR); + } + // fall through + case 103: break; + case 40: + { return symbol(ChocoPyTokens.NOT); + } + // fall through + case 104: break; + case 41: + { return symbol(ChocoPyTokens.TRY); + } + // fall through + case 105: break; + case 42: + { return symbol(ChocoPyTokens.NONE); + } + // fall through + case 106: break; + case 43: + { return symbol(ChocoPyTokens.BOOL, true); + } + // fall through + case 107: break; + case 44: + { return symbol(ChocoPyTokens.ELIF); + } + // fall through + case 108: break; + case 45: + { return symbol(ChocoPyTokens.ELSE); + } + // fall through + case 109: break; + case 46: + { return symbol(ChocoPyTokens.FROM); + } + // fall through + case 110: break; + case 47: + { return symbol(ChocoPyTokens.PASS); + } + // fall through + case 111: break; + case 48: + { return symbol(ChocoPyTokens.WITH); + } + // fall through + case 112: break; + case 49: + { return symbol(ChocoPyTokens.BOOL, false); + } + // fall through + case 113: break; + case 50: + { return symbol(ChocoPyTokens.AWAIT); + } + // fall through + case 114: break; + case 51: + { return symbol(ChocoPyTokens.BREAK); + } + // fall through + case 115: break; + case 52: + { return symbol(ChocoPyTokens.CLASS); + } + // fall through + case 116: break; + case 53: + { return symbol(ChocoPyTokens.RAISE); + } + // fall through + case 117: break; + case 54: + { return symbol(ChocoPyTokens.WHILE); + } + // fall through + case 118: break; + case 55: + { return symbol(ChocoPyTokens.YIELD); + } + // fall through + case 119: break; + case 56: + { return symbol(ChocoPyTokens.ASSERT); + } + // fall through + case 120: break; + case 57: + { return symbol(ChocoPyTokens.EXCEPT); + } + // fall through + case 121: break; + case 58: + { return symbol(ChocoPyTokens.GLOBAL); + } + // fall through + case 122: break; + case 59: + { return symbol(ChocoPyTokens.IMPORT); + } + // fall through + case 123: break; + case 60: + { return symbol(ChocoPyTokens.LAMBDA); + } + // fall through + case 124: break; + case 61: + { return symbol(ChocoPyTokens.RETURN); + } + // fall through + case 125: break; + case 62: + { return symbol(ChocoPyTokens.FINALLY); + } + // fall through + case 126: break; + case 63: + { return symbol(ChocoPyTokens.CONTINUE); + } + // fall through + case 127: break; + case 64: + { return symbol(ChocoPyTokens.NONLOCAL); + } + // fall through + case 128: break; + default: + zzScanError(ZZ_NO_MATCH); + } + } + } + } + + /** + * Converts an int token code into the name of the + * token by reflection on the cup symbol class/interface ChocoPyTokens + */ + private static String getTokenName(int token) { + try { + java.lang.reflect.Field [] classFields = ChocoPyTokens.class.getFields(); + for (int i = 0; i < classFields.length; i++) { + if (classFields[i].getInt(null) == token) { + return classFields[i].getName(); + } + } + } catch (Exception e) { + e.printStackTrace(System.err); + } + + return "UNKNOWN TOKEN"; + } + + /** + * Same as next_token but also prints the token to standard out + * for debugging. + */ + public java_cup.runtime.Symbol debug_next_token() throws java.io.IOException { + java_cup.runtime.Symbol s = next_token(); + System.out.println( "line:" + (yyline+1) + " col:" + (yycolumn+1) + " --"+ yytext() + "--" + getTokenName(s.sym) + "--"); + return s; + } + + /** + * Runs the scanner on input files. + * + * This main method is the debugging routine for the scanner. + * It prints debugging information about each returned token to + * System.out until the end of file is reached, or an error occured. + * + * @param argv the command line, contains the filenames to run + * the scanner on. + */ + public static void main(String[] argv) { + if (argv.length == 0) { + System.out.println("Usage : java ChocoPyLexer [ --encoding ] "); + } + else { + int firstFilePos = 0; + String encodingName = "UTF-8"; + if (argv[0].equals("--encoding")) { + firstFilePos = 2; + encodingName = argv[1]; + try { + // Side-effect: is encodingName valid? + java.nio.charset.Charset.forName(encodingName); + } catch (Exception e) { + System.out.println("Invalid encoding '" + encodingName + "'"); + return; + } + } + for (int i = firstFilePos; i < argv.length; i++) { + ChocoPyLexer scanner = null; + try { + java.io.FileInputStream stream = new java.io.FileInputStream(argv[i]); + java.io.Reader reader = new java.io.InputStreamReader(stream, encodingName); + scanner = new ChocoPyLexer(reader); + while ( !scanner.zzAtEOF ) scanner.debug_next_token(); + } + catch (java.io.FileNotFoundException e) { + System.out.println("File not found : \""+argv[i]+"\""); + } + catch (java.io.IOException e) { + System.out.println("IO error scanning file \""+argv[i]+"\""); + System.out.println(e); + } + catch (Exception e) { + System.out.println("Unexpected exception:"); + e.printStackTrace(); + } + } + } + } + + +} From 03c393beffece8981dd4658243d8998344cf518e Mon Sep 17 00:00:00 2001 From: bill Date: Wed, 17 Feb 2021 21:14:23 +0800 Subject: [PATCH 03/52] Changed how we deal w/ StringLiterals across multiple lines --- src/main/cup/chocopy/pa1/ChocoPy.cup | 4 ++-- src/main/jflex/chocopy/pa1/ChocoPy.jflex | 13 +++++++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/main/cup/chocopy/pa1/ChocoPy.cup b/src/main/cup/chocopy/pa1/ChocoPy.cup index 0bc9dd6..0585cf7 100644 --- a/src/main/cup/chocopy/pa1/ChocoPy.cup +++ b/src/main/cup/chocopy/pa1/ChocoPy.cup @@ -145,8 +145,8 @@ action code {: terminal NEWLINE; terminal String PLUS; terminal String MINUS; -terminal String MULTIPLY; -terminal String DIVIDE; +terminal String MUL; +terminal String DIV; terminal String NAMES; terminal Integer NUMBER; diff --git a/src/main/jflex/chocopy/pa1/ChocoPy.jflex b/src/main/jflex/chocopy/pa1/ChocoPy.jflex index e90072a..ebcec10 100644 --- a/src/main/jflex/chocopy/pa1/ChocoPy.jflex +++ b/src/main/jflex/chocopy/pa1/ChocoPy.jflex @@ -8,7 +8,7 @@ import java.util.ArrayList; %unicode %line %column -%states AFTER +%states AFTER, STR %class ChocoPyLexer %public @@ -33,6 +33,7 @@ import java.util.ArrayList; /** Producer of token-related values for the parser. */ final ComplexSymbolFactory symbolFactory = new ComplexSymbolFactory(); private int currIndent = 0; + private int currString = ""; private ArrayList stack = new ArrayList(20); /** Return a terminal symbol of syntactic category TYPE and no * semantic value at the current source location. */ @@ -67,7 +68,7 @@ WhiteSpace = [ \t] LineBreak = \r|\n|\r\n IntegerLiteral = 0|[1-9][0-9]* -StringLiteral = \"([^\"\\]|(\\\")|(\\t)|(\\r)|(\\n)|(\\\\))*\" +StringLiteral = ([^\"\\]|(\\\")|(\\t)|(\\r)|(\\n)|(\\\\))* Names = (_|[a-z]|[A-Z])(_|[a-z]|[A-Z])* Comments = #[^\r\n]* %% @@ -112,7 +113,8 @@ Comments = #[^\r\n]* /* Literals. */ {IntegerLiteral} { return symbol(ChocoPyTokens.NUMBER, Integer.parseInt(yytext())); } - {StringLiteral} { return symbol(ChocoPyTokens.STRING, yytext());} +// {StringLiteral} { return symbol(ChocoPyTokens.STRING, yytext());} + "\"" {yystart(STR); currString = "";} "False" { return symbol(ChocoPyTokens.BOOL, false); } "True" { return symbol(ChocoPyTokens.BOOL, true); } "None" { return symbol(ChocoPyTokens.NONE); } @@ -180,7 +182,10 @@ Comments = #[^\r\n]* /* Comment. */ {Comments} { /* ignore */ } } - +{ + {StringLiteral} {currString+=yytext();} + "\"" {yybegin(AFTER); return symbol(ChocoPyTokens.STRING, currString);} +} <> { return symbol(ChocoPyTokens.EOF); } /* Error fallback. */ From b6f7943d483de31a800fb124118cc8b26f558a32 Mon Sep 17 00:00:00 2001 From: bill Date: Wed, 17 Feb 2021 21:22:28 +0800 Subject: [PATCH 04/52] Deal w/ multi-line String Literals. --- src/main/jflex/chocopy/pa1/ChocoPy.jflex | 1 + src/main/jflex/chocopy/pa1/ChocoPyLexer.java | 567 ++++++++++--------- 2 files changed, 298 insertions(+), 270 deletions(-) diff --git a/src/main/jflex/chocopy/pa1/ChocoPy.jflex b/src/main/jflex/chocopy/pa1/ChocoPy.jflex index ebcec10..d7640a7 100644 --- a/src/main/jflex/chocopy/pa1/ChocoPy.jflex +++ b/src/main/jflex/chocopy/pa1/ChocoPy.jflex @@ -184,6 +184,7 @@ Comments = #[^\r\n]* } { {StringLiteral} {currString+=yytext();} + \\$ { /*'\' at the end of line, do nothing.*/ } "\"" {yybegin(AFTER); return symbol(ChocoPyTokens.STRING, currString);} } <> { return symbol(ChocoPyTokens.EOF); } diff --git a/src/main/jflex/chocopy/pa1/ChocoPyLexer.java b/src/main/jflex/chocopy/pa1/ChocoPyLexer.java index 2045209..ac26ed7 100644 --- a/src/main/jflex/chocopy/pa1/ChocoPyLexer.java +++ b/src/main/jflex/chocopy/pa1/ChocoPyLexer.java @@ -19,6 +19,7 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner { // Lexical states. public static final int YYINITIAL = 0; public static final int AFTER = 2; + public static final int STR = 4; /** * ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l @@ -27,7 +28,7 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner { * l is of the form l = 2*k, k a non negative integer */ private static final int ZZ_LEXSTATE[] = { - 0, 0, 1, 1 + 0, 0, 1, 1, 2, 2 }; /** @@ -36,7 +37,7 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner { private static final int [] ZZ_CMAP_TOP = zzUnpackcmap_top(); private static final String ZZ_CMAP_TOP_PACKED_0 = - "\1\0\u10ff\u0100"; + "\1\0\37\u0100\1\u0200\u10df\u0100"; private static int [] zzUnpackcmap_top() { int [] result = new int[4352]; @@ -64,18 +65,19 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner { private static final int [] ZZ_CMAP_BLOCKS = zzUnpackcmap_blocks(); private static final String ZZ_CMAP_BLOCKS_PACKED_0 = - "\11\0\1\1\1\2\2\0\1\3\22\0\1\1\1\4"+ - "\1\5\1\6\1\0\1\7\2\0\1\10\1\11\1\12"+ - "\1\13\1\14\1\15\1\16\1\17\1\20\11\21\1\22"+ - "\1\0\1\23\1\24\1\25\2\0\5\26\1\27\7\26"+ - "\1\30\5\26\1\31\6\26\1\32\1\33\1\34\1\0"+ - "\1\26\1\0\1\35\1\36\1\37\1\40\1\41\1\42"+ - "\1\43\1\44\1\45\1\26\1\46\1\47\1\50\1\51"+ - "\1\52\1\53\1\26\1\54\1\55\1\56\1\57\1\26"+ - "\1\60\1\61\1\62\1\26\u0185\0"; + "\11\0\1\1\1\2\2\3\1\4\22\0\1\1\1\5"+ + "\1\6\1\7\1\0\1\10\2\0\1\11\1\12\1\13"+ + "\1\14\1\15\1\16\1\17\1\20\1\21\11\22\1\23"+ + "\1\0\1\24\1\25\1\26\2\0\5\27\1\30\7\27"+ + "\1\31\5\27\1\32\6\27\1\33\1\34\1\35\1\0"+ + "\1\27\1\0\1\36\1\37\1\40\1\41\1\42\1\43"+ + "\1\44\1\45\1\46\1\27\1\47\1\50\1\51\1\52"+ + "\1\53\1\54\1\27\1\55\1\56\1\57\1\60\1\27"+ + "\1\61\1\62\1\63\1\27\12\0\1\3\u01a2\0\2\3"+ + "\326\0"; private static int [] zzUnpackcmap_blocks() { - int [] result = new int[512]; + int [] result = new int[768]; int offset = 0; offset = zzUnpackcmap_blocks(ZZ_CMAP_BLOCKS_PACKED_0, offset, result); return result; @@ -99,21 +101,22 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner { private static final int [] ZZ_ACTION = zzUnpackAction(); private static final String ZZ_ACTION_PACKED_0 = - "\2\0\1\1\1\2\2\3\1\4\1\5\1\6\2\7"+ - "\2\5\1\6\1\10\1\11\1\12\1\13\1\14\1\15"+ - "\1\16\1\17\1\20\2\21\1\22\1\23\1\24\1\25"+ - "\4\26\1\27\1\30\20\26\1\31\1\0\1\32\1\0"+ - "\1\33\1\20\1\34\1\35\1\36\4\26\1\37\13\26"+ - "\1\40\1\26\1\41\1\42\2\26\1\43\12\26\1\44"+ - "\5\26\1\45\1\46\4\26\1\47\5\26\1\50\3\26"+ - "\1\51\4\26\1\52\1\53\5\26\1\54\1\55\2\26"+ - "\1\56\4\26\1\57\3\26\1\60\1\26\1\61\1\26"+ - "\1\62\1\63\1\64\7\26\1\65\1\26\1\66\1\67"+ - "\1\70\1\26\1\71\1\26\1\72\1\73\1\74\1\26"+ - "\1\75\1\26\1\76\1\26\1\77\1\100"; + "\2\0\1\1\1\2\1\3\2\4\1\5\1\6\1\7"+ + "\2\10\1\6\1\11\1\7\1\12\1\13\1\14\1\15"+ + "\1\16\1\17\1\20\1\21\1\22\2\23\1\24\1\25"+ + "\1\26\1\27\4\30\1\31\1\32\20\30\1\1\1\33"+ + "\1\6\1\34\1\35\1\22\1\36\1\37\1\40\4\30"+ + "\1\41\13\30\1\42\1\30\1\43\1\44\2\30\1\45"+ + "\7\30\1\0\2\46\3\30\1\47\5\30\1\50\1\51"+ + "\4\30\1\52\5\30\1\53\3\30\1\54\4\30\1\55"+ + "\1\56\5\30\1\57\1\60\2\30\1\61\4\30\1\62"+ + "\3\30\1\63\1\30\1\64\1\30\1\65\1\66\1\67"+ + "\7\30\1\70\1\30\1\71\1\72\1\73\1\30\1\74"+ + "\1\30\1\75\1\76\1\77\1\30\1\100\1\30\1\101"+ + "\1\30\1\102\1\103"; private static int [] zzUnpackAction() { - int [] result = new int[172]; + int [] result = new int[176]; int offset = 0; offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); return result; @@ -138,31 +141,31 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner { private static final int [] ZZ_ROWMAP = zzUnpackRowMap(); private static final String ZZ_ROWMAP_PACKED_0 = - "\0\0\0\63\0\146\0\146\0\146\0\231\0\314\0\146"+ - "\0\146\0\146\0\377\0\u0132\0\u0165\0\u0198\0\146\0\146"+ - "\0\146\0\146\0\146\0\146\0\u01cb\0\146\0\u01fe\0\146"+ - "\0\u0231\0\146\0\u0264\0\u0297\0\u02ca\0\u02fd\0\u0330\0\u0363"+ - "\0\u0396\0\146\0\146\0\u03c9\0\u03fc\0\u042f\0\u0462\0\u0495"+ - "\0\u04c8\0\u04fb\0\u052e\0\u0561\0\u0594\0\u05c7\0\u05fa\0\u062d"+ - "\0\u0660\0\u0693\0\u06c6\0\146\0\u0165\0\146\0\u06f9\0\146"+ - "\0\146\0\146\0\146\0\146\0\u072c\0\u075f\0\u0792\0\u07c5"+ - "\0\u07f8\0\u082b\0\u085e\0\u0891\0\u08c4\0\u08f7\0\u092a\0\u095d"+ - "\0\u0990\0\u09c3\0\u09f6\0\u0a29\0\u02fd\0\u0a5c\0\u02fd\0\u02fd"+ - "\0\u0a8f\0\u0ac2\0\u02fd\0\u0af5\0\u0b28\0\u0b5b\0\u0b8e\0\u0bc1"+ - "\0\u0bf4\0\u0c27\0\u0c5a\0\u0c8d\0\u0cc0\0\u02fd\0\u0cf3\0\u0d26"+ - "\0\u0d59\0\u0d8c\0\u0dbf\0\u02fd\0\u02fd\0\u0df2\0\u0e25\0\u0e58"+ - "\0\u0e8b\0\u02fd\0\u0ebe\0\u0ef1\0\u0f24\0\u0f57\0\u0f8a\0\u02fd"+ - "\0\u0fbd\0\u0ff0\0\u1023\0\u02fd\0\u1056\0\u1089\0\u10bc\0\u10ef"+ - "\0\u02fd\0\u02fd\0\u1122\0\u1155\0\u1188\0\u11bb\0\u11ee\0\u02fd"+ - "\0\u02fd\0\u1221\0\u1254\0\u02fd\0\u1287\0\u12ba\0\u12ed\0\u1320"+ - "\0\u02fd\0\u1353\0\u1386\0\u13b9\0\u02fd\0\u13ec\0\u02fd\0\u141f"+ - "\0\u02fd\0\u02fd\0\u02fd\0\u1452\0\u1485\0\u14b8\0\u14eb\0\u151e"+ - "\0\u1551\0\u1584\0\u02fd\0\u15b7\0\u02fd\0\u02fd\0\u02fd\0\u15ea"+ - "\0\u02fd\0\u161d\0\u02fd\0\u02fd\0\u02fd\0\u1650\0\u02fd\0\u1683"+ - "\0\u02fd\0\u16b6\0\u02fd\0\u02fd"; + "\0\0\0\64\0\150\0\234\0\234\0\234\0\320\0\u0104"+ + "\0\234\0\234\0\234\0\u0138\0\u016c\0\234\0\u01a0\0\234"+ + "\0\234\0\234\0\234\0\234\0\234\0\u01d4\0\234\0\u0208"+ + "\0\234\0\u023c\0\234\0\u0270\0\u02a4\0\u02d8\0\u030c\0\u0340"+ + "\0\u0374\0\u03a8\0\234\0\234\0\u03dc\0\u0410\0\u0444\0\u0478"+ + "\0\u04ac\0\u04e0\0\u0514\0\u0548\0\u057c\0\u05b0\0\u05e4\0\u0618"+ + "\0\u064c\0\u0680\0\u06b4\0\u06e8\0\u071c\0\234\0\u0750\0\234"+ + "\0\234\0\234\0\234\0\234\0\234\0\u0784\0\u07b8\0\u07ec"+ + "\0\u0820\0\u0854\0\u0888\0\u08bc\0\u08f0\0\u0924\0\u0958\0\u098c"+ + "\0\u09c0\0\u09f4\0\u0a28\0\u0a5c\0\u0a90\0\u030c\0\u0ac4\0\u030c"+ + "\0\u030c\0\u0af8\0\u0b2c\0\u030c\0\u0b60\0\u0b94\0\u0bc8\0\u0bfc"+ + "\0\u0c30\0\u0c64\0\u0c98\0\u0ccc\0\234\0\u0d00\0\u0d34\0\u0d68"+ + "\0\u0d9c\0\u030c\0\u0dd0\0\u0e04\0\u0e38\0\u0e6c\0\u0ea0\0\u030c"+ + "\0\u030c\0\u0ed4\0\u0f08\0\u0f3c\0\u0f70\0\u030c\0\u0fa4\0\u0fd8"+ + "\0\u100c\0\u1040\0\u1074\0\u030c\0\u10a8\0\u10dc\0\u1110\0\u030c"+ + "\0\u1144\0\u1178\0\u11ac\0\u11e0\0\u030c\0\u030c\0\u1214\0\u1248"+ + "\0\u127c\0\u12b0\0\u12e4\0\u030c\0\u030c\0\u1318\0\u134c\0\u030c"+ + "\0\u1380\0\u13b4\0\u13e8\0\u141c\0\u030c\0\u1450\0\u1484\0\u14b8"+ + "\0\u030c\0\u14ec\0\u030c\0\u1520\0\u030c\0\u030c\0\u030c\0\u1554"+ + "\0\u1588\0\u15bc\0\u15f0\0\u1624\0\u1658\0\u168c\0\u030c\0\u16c0"+ + "\0\u030c\0\u030c\0\u030c\0\u16f4\0\u030c\0\u1728\0\u030c\0\u030c"+ + "\0\u030c\0\u175c\0\u030c\0\u1790\0\u030c\0\u17c4\0\u030c\0\u030c"; private static int [] zzUnpackRowMap() { - int [] result = new int[172]; + int [] result = new int[176]; int offset = 0; offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result); return result; @@ -185,97 +188,101 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner { private static final int [] ZZ_TRANS = zzUnpackTrans(); private static final String ZZ_TRANS_PACKED_0 = - "\1\3\1\4\1\5\1\6\2\3\1\7\54\3\1\10"+ - "\1\11\1\12\1\13\1\14\1\15\1\16\1\17\1\20"+ - "\1\21\1\22\1\23\1\24\1\25\1\26\1\27\1\30"+ - "\1\31\1\32\1\33\1\34\1\35\1\36\1\37\1\40"+ - "\1\41\1\42\1\10\1\43\1\44\1\45\1\46\1\47"+ - "\1\50\1\51\1\52\1\36\1\53\1\36\1\54\1\36"+ - "\1\55\1\56\1\57\1\60\1\36\1\61\1\36\1\62"+ - "\1\36\1\63\65\0\1\5\60\0\2\7\2\0\57\7"+ - "\2\0\1\12\104\0\1\64\36\0\5\65\1\66\25\65"+ - "\1\67\27\65\2\16\2\0\57\16\25\0\1\70\54\0"+ - "\1\71\63\0\2\31\65\0\1\72\62\0\1\73\62\0"+ - "\1\74\64\0\4\36\3\0\26\36\26\0\4\36\3\0"+ - "\1\75\25\36\26\0\4\36\3\0\15\36\1\76\10\36"+ - "\26\0\4\36\3\0\17\36\1\77\6\36\26\0\4\36"+ - "\3\0\14\36\1\100\3\36\1\101\2\36\1\102\2\36"+ - "\26\0\4\36\3\0\17\36\1\103\6\36\26\0\4\36"+ - "\3\0\12\36\1\104\2\36\1\105\10\36\26\0\4\36"+ - "\3\0\4\36\1\106\21\36\26\0\4\36\3\0\12\36"+ - "\1\107\11\36\1\110\1\36\26\0\4\36\3\0\10\36"+ - "\1\111\4\36\1\112\1\36\1\113\6\36\26\0\4\36"+ - "\3\0\12\36\1\114\13\36\26\0\4\36\3\0\5\36"+ - "\1\115\5\36\1\116\1\117\3\36\1\120\5\36\26\0"+ - "\4\36\3\0\1\121\25\36\26\0\4\36\3\0\15\36"+ - "\1\122\10\36\26\0\4\36\3\0\17\36\1\123\6\36"+ - "\26\0\4\36\3\0\1\124\25\36\26\0\4\36\3\0"+ - "\1\125\3\36\1\126\21\36\26\0\4\36\3\0\17\36"+ - "\1\127\6\36\26\0\4\36\3\0\7\36\1\130\1\131"+ - "\15\36\26\0\4\36\3\0\10\36\1\132\15\36\5\0"+ - "\1\65\25\0\1\65\15\0\1\65\2\0\1\65\1\0"+ - "\1\65\32\0\4\36\3\0\12\36\1\133\13\36\26\0"+ - "\4\36\3\0\14\36\1\134\11\36\26\0\4\36\3\0"+ - "\22\36\1\135\3\36\26\0\4\36\3\0\3\36\1\136"+ - "\22\36\26\0\4\36\3\0\20\36\1\137\5\36\26\0"+ - "\4\36\3\0\1\140\25\36\26\0\4\36\3\0\4\36"+ - "\1\141\21\36\26\0\4\36\3\0\1\142\25\36\26\0"+ - "\4\36\3\0\14\36\1\143\11\36\26\0\4\36\3\0"+ - "\5\36\1\144\4\36\1\145\13\36\26\0\4\36\3\0"+ - "\10\36\1\146\7\36\1\147\5\36\26\0\4\36\3\0"+ - "\2\36\1\150\23\36\26\0\4\36\3\0\14\36\1\151"+ - "\11\36\26\0\4\36\3\0\17\36\1\152\6\36\26\0"+ - "\4\36\3\0\15\36\1\153\10\36\26\0\4\36\3\0"+ - "\15\36\1\154\10\36\26\0\4\36\3\0\16\36\1\155"+ - "\7\36\26\0\4\36\3\0\13\36\1\156\12\36\26\0"+ - "\4\36\3\0\14\36\1\157\4\36\1\160\4\36\26\0"+ - "\4\36\3\0\20\36\1\161\5\36\26\0\4\36\3\0"+ - "\10\36\1\162\15\36\26\0\4\36\3\0\21\36\1\163"+ - "\4\36\26\0\4\36\3\0\25\36\1\164\26\0\4\36"+ - "\3\0\10\36\1\165\15\36\26\0\4\36\3\0\21\36"+ - "\1\166\4\36\26\0\4\36\3\0\4\36\1\167\21\36"+ - "\26\0\4\36\3\0\20\36\1\170\5\36\26\0\4\36"+ - "\3\0\4\36\1\171\21\36\26\0\4\36\3\0\4\36"+ - "\1\172\21\36\26\0\4\36\3\0\4\36\1\173\21\36"+ - "\26\0\4\36\3\0\10\36\1\174\15\36\26\0\4\36"+ - "\3\0\1\175\25\36\26\0\4\36\3\0\20\36\1\176"+ - "\5\36\26\0\4\36\3\0\21\36\1\177\4\36\26\0"+ - "\4\36\3\0\5\36\1\200\20\36\26\0\4\36\3\0"+ - "\4\36\1\201\21\36\26\0\4\36\3\0\4\36\1\202"+ - "\21\36\26\0\4\36\3\0\1\203\25\36\26\0\4\36"+ - "\3\0\13\36\1\204\12\36\26\0\4\36\3\0\1\36"+ - "\1\205\24\36\26\0\4\36\3\0\15\36\1\206\10\36"+ - "\26\0\4\36\3\0\1\36\1\207\24\36\26\0\4\36"+ - "\3\0\12\36\1\210\13\36\26\0\4\36\3\0\20\36"+ - "\1\211\5\36\26\0\4\36\3\0\20\36\1\212\5\36"+ - "\26\0\4\36\3\0\22\36\1\213\3\36\26\0\4\36"+ - "\3\0\12\36\1\214\13\36\26\0\4\36\3\0\7\36"+ - "\1\215\16\36\26\0\4\36\3\0\12\36\1\216\13\36"+ - "\26\0\4\36\3\0\4\36\1\217\21\36\26\0\4\36"+ - "\3\0\17\36\1\220\6\36\26\0\4\36\3\0\21\36"+ - "\1\221\4\36\26\0\4\36\3\0\11\36\1\222\14\36"+ - "\26\0\4\36\3\0\20\36\1\223\5\36\26\0\4\36"+ - "\3\0\10\36\1\224\15\36\26\0\4\36\3\0\16\36"+ - "\1\225\7\36\26\0\4\36\3\0\12\36\1\226\13\36"+ - "\26\0\4\36\3\0\1\227\25\36\26\0\4\36\3\0"+ - "\17\36\1\230\6\36\26\0\4\36\3\0\3\36\1\231"+ - "\22\36\26\0\4\36\3\0\15\36\1\232\10\36\26\0"+ - "\4\36\3\0\4\36\1\233\21\36\26\0\4\36\3\0"+ - "\17\36\1\234\6\36\26\0\4\36\3\0\4\36\1\235"+ - "\21\36\26\0\4\36\3\0\3\36\1\236\22\36\26\0"+ - "\4\36\3\0\21\36\1\237\4\36\26\0\4\36\3\0"+ - "\14\36\1\240\11\36\26\0\4\36\3\0\21\36\1\241"+ - "\4\36\26\0\4\36\3\0\12\36\1\242\13\36\26\0"+ - "\4\36\3\0\12\36\1\243\13\36\26\0\4\36\3\0"+ - "\21\36\1\244\4\36\26\0\4\36\3\0\1\245\25\36"+ - "\26\0\4\36\3\0\2\36\1\246\23\36\26\0\4\36"+ - "\3\0\14\36\1\247\11\36\26\0\4\36\3\0\22\36"+ - "\1\250\3\36\26\0\4\36\3\0\25\36\1\251\26\0"+ - "\4\36\3\0\1\252\25\36\26\0\4\36\3\0\4\36"+ - "\1\253\21\36\26\0\4\36\3\0\12\36\1\254\13\36"; + "\1\4\1\5\1\6\1\4\1\7\2\4\1\10\54\4"+ + "\1\11\1\12\1\13\1\11\1\14\1\15\1\16\1\17"+ + "\1\20\1\21\1\22\1\23\1\24\1\25\1\26\1\27"+ + "\1\30\1\31\1\32\1\33\1\34\1\35\1\36\1\37"+ + "\1\40\1\41\1\42\1\43\1\11\1\44\1\45\1\46"+ + "\1\47\1\50\1\51\1\52\1\53\1\37\1\54\1\37"+ + "\1\55\1\37\1\56\1\57\1\60\1\61\1\37\1\62"+ + "\1\37\1\63\1\37\1\64\6\65\1\66\25\65\1\67"+ + "\27\65\66\0\1\6\61\0\2\10\1\0\1\10\1\0"+ + "\57\10\2\0\1\13\106\0\1\70\36\0\2\17\1\0"+ + "\1\17\1\0\57\17\26\0\1\71\55\0\1\72\64\0"+ + "\2\32\66\0\1\73\63\0\1\74\63\0\1\75\65\0"+ + "\4\37\3\0\26\37\27\0\4\37\3\0\1\76\25\37"+ + "\27\0\4\37\3\0\15\37\1\77\10\37\27\0\4\37"+ + "\3\0\17\37\1\100\6\37\27\0\4\37\3\0\14\37"+ + "\1\101\3\37\1\102\2\37\1\103\2\37\27\0\4\37"+ + "\3\0\17\37\1\104\6\37\27\0\4\37\3\0\12\37"+ + "\1\105\2\37\1\106\10\37\27\0\4\37\3\0\4\37"+ + "\1\107\21\37\27\0\4\37\3\0\12\37\1\110\11\37"+ + "\1\111\1\37\27\0\4\37\3\0\10\37\1\112\4\37"+ + "\1\113\1\37\1\114\6\37\27\0\4\37\3\0\12\37"+ + "\1\115\13\37\27\0\4\37\3\0\5\37\1\116\5\37"+ + "\1\117\1\120\3\37\1\121\5\37\27\0\4\37\3\0"+ + "\1\122\25\37\27\0\4\37\3\0\15\37\1\123\10\37"+ + "\27\0\4\37\3\0\17\37\1\124\6\37\27\0\4\37"+ + "\3\0\1\125\25\37\27\0\4\37\3\0\1\126\3\37"+ + "\1\127\21\37\27\0\4\37\3\0\17\37\1\130\6\37"+ + "\27\0\4\37\3\0\7\37\1\131\1\132\15\37\27\0"+ + "\4\37\3\0\10\37\1\133\15\37\6\65\1\0\25\65"+ + "\1\134\27\65\2\0\2\135\1\136\1\0\1\65\25\0"+ + "\1\65\15\0\1\65\2\0\1\65\1\0\1\65\33\0"+ + "\4\37\3\0\12\37\1\137\13\37\27\0\4\37\3\0"+ + "\14\37\1\140\11\37\27\0\4\37\3\0\22\37\1\141"+ + "\3\37\27\0\4\37\3\0\3\37\1\142\22\37\27\0"+ + "\4\37\3\0\20\37\1\143\5\37\27\0\4\37\3\0"+ + "\1\144\25\37\27\0\4\37\3\0\4\37\1\145\21\37"+ + "\27\0\4\37\3\0\1\146\25\37\27\0\4\37\3\0"+ + "\14\37\1\147\11\37\27\0\4\37\3\0\5\37\1\150"+ + "\4\37\1\151\13\37\27\0\4\37\3\0\10\37\1\152"+ + "\7\37\1\153\5\37\27\0\4\37\3\0\2\37\1\154"+ + "\23\37\27\0\4\37\3\0\14\37\1\155\11\37\27\0"+ + "\4\37\3\0\17\37\1\156\6\37\27\0\4\37\3\0"+ + "\15\37\1\157\10\37\27\0\4\37\3\0\15\37\1\160"+ + "\10\37\27\0\4\37\3\0\16\37\1\161\7\37\27\0"+ + "\4\37\3\0\13\37\1\162\12\37\27\0\4\37\3\0"+ + "\14\37\1\163\4\37\1\164\4\37\27\0\4\37\3\0"+ + "\20\37\1\165\5\37\27\0\4\37\3\0\10\37\1\166"+ + "\15\37\27\0\4\37\3\0\21\37\1\167\4\37\27\0"+ + "\4\37\3\0\25\37\1\170\27\0\4\37\3\0\10\37"+ + "\1\171\15\37\27\0\4\37\3\0\21\37\1\172\4\37"+ + "\27\0\4\37\3\0\4\37\1\173\21\37\6\0\1\65"+ + "\25\0\1\65\15\0\1\65\2\0\1\65\1\0\1\65"+ + "\6\0\1\135\110\0\4\37\3\0\20\37\1\174\5\37"+ + "\27\0\4\37\3\0\4\37\1\175\21\37\27\0\4\37"+ + "\3\0\4\37\1\176\21\37\27\0\4\37\3\0\4\37"+ + "\1\177\21\37\27\0\4\37\3\0\10\37\1\200\15\37"+ + "\27\0\4\37\3\0\1\201\25\37\27\0\4\37\3\0"+ + "\20\37\1\202\5\37\27\0\4\37\3\0\21\37\1\203"+ + "\4\37\27\0\4\37\3\0\5\37\1\204\20\37\27\0"+ + "\4\37\3\0\4\37\1\205\21\37\27\0\4\37\3\0"+ + "\4\37\1\206\21\37\27\0\4\37\3\0\1\207\25\37"+ + "\27\0\4\37\3\0\13\37\1\210\12\37\27\0\4\37"+ + "\3\0\1\37\1\211\24\37\27\0\4\37\3\0\15\37"+ + "\1\212\10\37\27\0\4\37\3\0\1\37\1\213\24\37"+ + "\27\0\4\37\3\0\12\37\1\214\13\37\27\0\4\37"+ + "\3\0\20\37\1\215\5\37\27\0\4\37\3\0\20\37"+ + "\1\216\5\37\27\0\4\37\3\0\22\37\1\217\3\37"+ + "\27\0\4\37\3\0\12\37\1\220\13\37\27\0\4\37"+ + "\3\0\7\37\1\221\16\37\27\0\4\37\3\0\12\37"+ + "\1\222\13\37\27\0\4\37\3\0\4\37\1\223\21\37"+ + "\27\0\4\37\3\0\17\37\1\224\6\37\27\0\4\37"+ + "\3\0\21\37\1\225\4\37\27\0\4\37\3\0\11\37"+ + "\1\226\14\37\27\0\4\37\3\0\20\37\1\227\5\37"+ + "\27\0\4\37\3\0\10\37\1\230\15\37\27\0\4\37"+ + "\3\0\16\37\1\231\7\37\27\0\4\37\3\0\12\37"+ + "\1\232\13\37\27\0\4\37\3\0\1\233\25\37\27\0"+ + "\4\37\3\0\17\37\1\234\6\37\27\0\4\37\3\0"+ + "\3\37\1\235\22\37\27\0\4\37\3\0\15\37\1\236"+ + "\10\37\27\0\4\37\3\0\4\37\1\237\21\37\27\0"+ + "\4\37\3\0\17\37\1\240\6\37\27\0\4\37\3\0"+ + "\4\37\1\241\21\37\27\0\4\37\3\0\3\37\1\242"+ + "\22\37\27\0\4\37\3\0\21\37\1\243\4\37\27\0"+ + "\4\37\3\0\14\37\1\244\11\37\27\0\4\37\3\0"+ + "\21\37\1\245\4\37\27\0\4\37\3\0\12\37\1\246"+ + "\13\37\27\0\4\37\3\0\12\37\1\247\13\37\27\0"+ + "\4\37\3\0\21\37\1\250\4\37\27\0\4\37\3\0"+ + "\1\251\25\37\27\0\4\37\3\0\2\37\1\252\23\37"+ + "\27\0\4\37\3\0\14\37\1\253\11\37\27\0\4\37"+ + "\3\0\22\37\1\254\3\37\27\0\4\37\3\0\25\37"+ + "\1\255\27\0\4\37\3\0\1\256\25\37\27\0\4\37"+ + "\3\0\4\37\1\257\21\37\27\0\4\37\3\0\12\37"+ + "\1\260\13\37"; private static int [] zzUnpackTrans() { - int [] result = new int[5865]; + int [] result = new int[6136]; int offset = 0; offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result); return result; @@ -318,12 +325,13 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner { private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute(); private static final String ZZ_ATTRIBUTE_PACKED_0 = - "\2\0\3\11\2\1\3\11\4\1\6\11\1\1\1\11"+ - "\1\1\1\11\1\1\1\11\7\1\2\11\20\1\1\11"+ - "\1\0\1\11\1\0\5\11\160\1"; + "\2\0\1\1\3\11\2\1\3\11\2\1\1\11\1\1"+ + "\6\11\1\1\1\11\1\1\1\11\1\1\1\11\7\1"+ + "\2\11\21\1\1\11\1\1\6\11\36\1\1\0\1\11"+ + "\123\1"; private static int [] zzUnpackAttribute() { - int [] result = new int[172]; + int [] result = new int[176]; int offset = 0; offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result); return result; @@ -411,6 +419,7 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner { /** Producer of token-related values for the parser. */ final ComplexSymbolFactory symbolFactory = new ComplexSymbolFactory(); private int currIndent = 0; + private int currString = ""; private ArrayList stack = new ArrayList(20); /** Return a terminal symbol of syntactic category TYPE and no * semantic value at the current source location. */ @@ -834,6 +843,11 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner { else { switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { case 1: + { currString+=yytext(); + } + // fall through + case 68: break; + case 2: { yypushback(1); if(top() > currIndent) { @@ -848,8 +862,8 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner { } } // fall through - case 65: break; - case 2: + case 69: break; + case 3: { String space = yytext(); if(space == "\t") currIndent += 8; @@ -857,318 +871,331 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner { currIndent ++; } // fall through - case 66: break; - case 3: + case 70: break; + case 4: { currIndent = 0; } // fall through - case 67: break; - case 4: + case 71: break; + case 5: { /* ignored */ } // fall through - case 68: break; - case 5: + case 72: break; + case 6: { return symbol(ChocoPyTokens.UNRECOGNIZED); } // fall through - case 69: break; - case 6: + case 73: break; + case 7: { /* ignore */ } // fall through - case 70: break; - case 7: + case 74: break; + case 8: { return symbol(ChocoPyTokens.NEWLINE); yybegin(YYINITIAL); currIndent = 0; } // fall through - case 71: break; - case 8: + case 75: break; + case 9: + { yystart(STR); currString = ""; + } + // fall through + case 76: break; + case 10: { return symbol(ChocoPyTokens.MOD); } // fall through - case 72: break; - case 9: + case 77: break; + case 11: { return symbol(ChocoPyTokens.LPAR); } // fall through - case 73: break; - case 10: + case 78: break; + case 12: { return symbol(ChocoPyTokens.RPAR); } // fall through - case 74: break; - case 11: + case 79: break; + case 13: { return symbol(ChocoPyTokens.MUL); } // fall through - case 75: break; - case 12: + case 80: break; + case 14: { return symbol(ChocoPyTokens.PLUS); } // fall through - case 76: break; - case 13: + case 81: break; + case 15: { return symbol(ChocoPyTokens.COMMA); } // fall through - case 77: break; - case 14: + case 82: break; + case 16: { return symbol(ChocoPyTokens.MINUS); } // fall through - case 78: break; - case 15: + case 83: break; + case 17: { return symbol(ChocoPyTokens.DOT); } // fall through - case 79: break; - case 16: + case 84: break; + case 18: { return symbol(ChocoPyTokens.DIV); } // fall through - case 80: break; - case 17: + case 85: break; + case 19: { return symbol(ChocoPyTokens.NUMBER, Integer.parseInt(yytext())); } // fall through - case 81: break; - case 18: + case 86: break; + case 20: { return symbol(ChocoPyTokens.COLON); } // fall through - case 82: break; - case 19: + case 87: break; + case 21: { return symbol(ChocoPyTokens.LT); } // fall through - case 83: break; - case 20: + case 88: break; + case 22: { return symbol(ChocoPyTokens.ASSIGN); } // fall through - case 84: break; - case 21: + case 89: break; + case 23: { return symbol(ChocoPyTokens.GT); } // fall through - case 85: break; - case 22: + case 90: break; + case 24: { return symbol(ChocoPyTokens.NAMES, yytext()); } // fall through - case 86: break; - case 23: + case 91: break; + case 25: { return symbol(ChocoPyTokens.LBR); } // fall through - case 87: break; - case 24: + case 92: break; + case 26: { return symbol(ChocoPyTokens.RBR); } // fall through - case 88: break; - case 25: - { return symbol(ChocoPyTokens.NEQ); + case 93: break; + case 27: + { yybegin(AFTER); return symbol(ChocoPyTokens.STRING, currString); } // fall through - case 89: break; - case 26: - { return symbol(ChocoPyTokens.STRING, yytext()); + case 94: break; + case 28: + { return symbol(ChocoPyTokens.NEQ); } // fall through - case 90: break; - case 27: + case 95: break; + case 29: { return symbol(ChocoPyTokens.ARROW); } // fall through - case 91: break; - case 28: + case 96: break; + case 30: { return symbol(ChocoPyTokens.LEQ); } // fall through - case 92: break; - case 29: + case 97: break; + case 31: { return symbol(ChocoPyTokens.EQUAL); } // fall through - case 93: break; - case 30: + case 98: break; + case 32: { return symbol(ChocoPyTokens.GEQ); } // fall through - case 94: break; - case 31: + case 99: break; + case 33: { return symbol(ChocoPyTokens.AS); } // fall through - case 95: break; - case 32: + case 100: break; + case 34: { return symbol(ChocoPyTokens.IF); } // fall through - case 96: break; - case 33: + case 101: break; + case 35: { return symbol(ChocoPyTokens.IN); } // fall through - case 97: break; - case 34: + case 102: break; + case 36: { return symbol(ChocoPyTokens.IS); } // fall through - case 98: break; - case 35: + case 103: break; + case 37: { return symbol(ChocoPyTokens.OR); } // fall through - case 99: break; - case 36: + case 104: break; + case 38: + // lookahead expression with fixed base length + zzMarkedPos = Character.offsetByCodePoints + (zzBufferL, zzStartRead, zzEndRead - zzStartRead, zzStartRead, 1); + { /*'\' at the end of line, do nothing.*/ + } + // fall through + case 105: break; + case 39: { return symbol(ChocoPyTokens.AND); } // fall through - case 100: break; - case 37: + case 106: break; + case 40: { return symbol(ChocoPyTokens.DEF); } // fall through - case 101: break; - case 38: + case 107: break; + case 41: { return symbol(ChocoPyTokens.DEL); } // fall through - case 102: break; - case 39: + case 108: break; + case 42: { return symbol(ChocoPyTokens.FOR); } // fall through - case 103: break; - case 40: + case 109: break; + case 43: { return symbol(ChocoPyTokens.NOT); } // fall through - case 104: break; - case 41: + case 110: break; + case 44: { return symbol(ChocoPyTokens.TRY); } // fall through - case 105: break; - case 42: + case 111: break; + case 45: { return symbol(ChocoPyTokens.NONE); } // fall through - case 106: break; - case 43: + case 112: break; + case 46: { return symbol(ChocoPyTokens.BOOL, true); } // fall through - case 107: break; - case 44: + case 113: break; + case 47: { return symbol(ChocoPyTokens.ELIF); } // fall through - case 108: break; - case 45: + case 114: break; + case 48: { return symbol(ChocoPyTokens.ELSE); } // fall through - case 109: break; - case 46: + case 115: break; + case 49: { return symbol(ChocoPyTokens.FROM); } // fall through - case 110: break; - case 47: + case 116: break; + case 50: { return symbol(ChocoPyTokens.PASS); } // fall through - case 111: break; - case 48: + case 117: break; + case 51: { return symbol(ChocoPyTokens.WITH); } // fall through - case 112: break; - case 49: + case 118: break; + case 52: { return symbol(ChocoPyTokens.BOOL, false); } // fall through - case 113: break; - case 50: + case 119: break; + case 53: { return symbol(ChocoPyTokens.AWAIT); } // fall through - case 114: break; - case 51: + case 120: break; + case 54: { return symbol(ChocoPyTokens.BREAK); } // fall through - case 115: break; - case 52: + case 121: break; + case 55: { return symbol(ChocoPyTokens.CLASS); } // fall through - case 116: break; - case 53: + case 122: break; + case 56: { return symbol(ChocoPyTokens.RAISE); } // fall through - case 117: break; - case 54: + case 123: break; + case 57: { return symbol(ChocoPyTokens.WHILE); } // fall through - case 118: break; - case 55: + case 124: break; + case 58: { return symbol(ChocoPyTokens.YIELD); } // fall through - case 119: break; - case 56: + case 125: break; + case 59: { return symbol(ChocoPyTokens.ASSERT); } // fall through - case 120: break; - case 57: + case 126: break; + case 60: { return symbol(ChocoPyTokens.EXCEPT); } // fall through - case 121: break; - case 58: + case 127: break; + case 61: { return symbol(ChocoPyTokens.GLOBAL); } // fall through - case 122: break; - case 59: + case 128: break; + case 62: { return symbol(ChocoPyTokens.IMPORT); } // fall through - case 123: break; - case 60: + case 129: break; + case 63: { return symbol(ChocoPyTokens.LAMBDA); } // fall through - case 124: break; - case 61: + case 130: break; + case 64: { return symbol(ChocoPyTokens.RETURN); } // fall through - case 125: break; - case 62: + case 131: break; + case 65: { return symbol(ChocoPyTokens.FINALLY); } // fall through - case 126: break; - case 63: + case 132: break; + case 66: { return symbol(ChocoPyTokens.CONTINUE); } // fall through - case 127: break; - case 64: + case 133: break; + case 67: { return symbol(ChocoPyTokens.NONLOCAL); } // fall through - case 128: break; + case 134: break; default: zzScanError(ZZ_NO_MATCH); } From 7409d7e19ff5a5db8ddc93cabda54476b1fb3057 Mon Sep 17 00:00:00 2001 From: bill Date: Wed, 17 Feb 2021 23:14:46 +0800 Subject: [PATCH 05/52] Revert "Deal w/ multi-line String Literals." This reverts commit b6f7943d483de31a800fb124118cc8b26f558a32. --- src/main/jflex/chocopy/pa1/ChocoPy.jflex | 1 - src/main/jflex/chocopy/pa1/ChocoPyLexer.java | 567 +++++++++---------- 2 files changed, 270 insertions(+), 298 deletions(-) diff --git a/src/main/jflex/chocopy/pa1/ChocoPy.jflex b/src/main/jflex/chocopy/pa1/ChocoPy.jflex index d7640a7..ebcec10 100644 --- a/src/main/jflex/chocopy/pa1/ChocoPy.jflex +++ b/src/main/jflex/chocopy/pa1/ChocoPy.jflex @@ -184,7 +184,6 @@ Comments = #[^\r\n]* } { {StringLiteral} {currString+=yytext();} - \\$ { /*'\' at the end of line, do nothing.*/ } "\"" {yybegin(AFTER); return symbol(ChocoPyTokens.STRING, currString);} } <> { return symbol(ChocoPyTokens.EOF); } diff --git a/src/main/jflex/chocopy/pa1/ChocoPyLexer.java b/src/main/jflex/chocopy/pa1/ChocoPyLexer.java index ac26ed7..2045209 100644 --- a/src/main/jflex/chocopy/pa1/ChocoPyLexer.java +++ b/src/main/jflex/chocopy/pa1/ChocoPyLexer.java @@ -19,7 +19,6 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner { // Lexical states. public static final int YYINITIAL = 0; public static final int AFTER = 2; - public static final int STR = 4; /** * ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l @@ -28,7 +27,7 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner { * l is of the form l = 2*k, k a non negative integer */ private static final int ZZ_LEXSTATE[] = { - 0, 0, 1, 1, 2, 2 + 0, 0, 1, 1 }; /** @@ -37,7 +36,7 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner { private static final int [] ZZ_CMAP_TOP = zzUnpackcmap_top(); private static final String ZZ_CMAP_TOP_PACKED_0 = - "\1\0\37\u0100\1\u0200\u10df\u0100"; + "\1\0\u10ff\u0100"; private static int [] zzUnpackcmap_top() { int [] result = new int[4352]; @@ -65,19 +64,18 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner { private static final int [] ZZ_CMAP_BLOCKS = zzUnpackcmap_blocks(); private static final String ZZ_CMAP_BLOCKS_PACKED_0 = - "\11\0\1\1\1\2\2\3\1\4\22\0\1\1\1\5"+ - "\1\6\1\7\1\0\1\10\2\0\1\11\1\12\1\13"+ - "\1\14\1\15\1\16\1\17\1\20\1\21\11\22\1\23"+ - "\1\0\1\24\1\25\1\26\2\0\5\27\1\30\7\27"+ - "\1\31\5\27\1\32\6\27\1\33\1\34\1\35\1\0"+ - "\1\27\1\0\1\36\1\37\1\40\1\41\1\42\1\43"+ - "\1\44\1\45\1\46\1\27\1\47\1\50\1\51\1\52"+ - "\1\53\1\54\1\27\1\55\1\56\1\57\1\60\1\27"+ - "\1\61\1\62\1\63\1\27\12\0\1\3\u01a2\0\2\3"+ - "\326\0"; + "\11\0\1\1\1\2\2\0\1\3\22\0\1\1\1\4"+ + "\1\5\1\6\1\0\1\7\2\0\1\10\1\11\1\12"+ + "\1\13\1\14\1\15\1\16\1\17\1\20\11\21\1\22"+ + "\1\0\1\23\1\24\1\25\2\0\5\26\1\27\7\26"+ + "\1\30\5\26\1\31\6\26\1\32\1\33\1\34\1\0"+ + "\1\26\1\0\1\35\1\36\1\37\1\40\1\41\1\42"+ + "\1\43\1\44\1\45\1\26\1\46\1\47\1\50\1\51"+ + "\1\52\1\53\1\26\1\54\1\55\1\56\1\57\1\26"+ + "\1\60\1\61\1\62\1\26\u0185\0"; private static int [] zzUnpackcmap_blocks() { - int [] result = new int[768]; + int [] result = new int[512]; int offset = 0; offset = zzUnpackcmap_blocks(ZZ_CMAP_BLOCKS_PACKED_0, offset, result); return result; @@ -101,22 +99,21 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner { private static final int [] ZZ_ACTION = zzUnpackAction(); private static final String ZZ_ACTION_PACKED_0 = - "\2\0\1\1\1\2\1\3\2\4\1\5\1\6\1\7"+ - "\2\10\1\6\1\11\1\7\1\12\1\13\1\14\1\15"+ - "\1\16\1\17\1\20\1\21\1\22\2\23\1\24\1\25"+ - "\1\26\1\27\4\30\1\31\1\32\20\30\1\1\1\33"+ - "\1\6\1\34\1\35\1\22\1\36\1\37\1\40\4\30"+ - "\1\41\13\30\1\42\1\30\1\43\1\44\2\30\1\45"+ - "\7\30\1\0\2\46\3\30\1\47\5\30\1\50\1\51"+ - "\4\30\1\52\5\30\1\53\3\30\1\54\4\30\1\55"+ - "\1\56\5\30\1\57\1\60\2\30\1\61\4\30\1\62"+ - "\3\30\1\63\1\30\1\64\1\30\1\65\1\66\1\67"+ - "\7\30\1\70\1\30\1\71\1\72\1\73\1\30\1\74"+ - "\1\30\1\75\1\76\1\77\1\30\1\100\1\30\1\101"+ - "\1\30\1\102\1\103"; + "\2\0\1\1\1\2\2\3\1\4\1\5\1\6\2\7"+ + "\2\5\1\6\1\10\1\11\1\12\1\13\1\14\1\15"+ + "\1\16\1\17\1\20\2\21\1\22\1\23\1\24\1\25"+ + "\4\26\1\27\1\30\20\26\1\31\1\0\1\32\1\0"+ + "\1\33\1\20\1\34\1\35\1\36\4\26\1\37\13\26"+ + "\1\40\1\26\1\41\1\42\2\26\1\43\12\26\1\44"+ + "\5\26\1\45\1\46\4\26\1\47\5\26\1\50\3\26"+ + "\1\51\4\26\1\52\1\53\5\26\1\54\1\55\2\26"+ + "\1\56\4\26\1\57\3\26\1\60\1\26\1\61\1\26"+ + "\1\62\1\63\1\64\7\26\1\65\1\26\1\66\1\67"+ + "\1\70\1\26\1\71\1\26\1\72\1\73\1\74\1\26"+ + "\1\75\1\26\1\76\1\26\1\77\1\100"; private static int [] zzUnpackAction() { - int [] result = new int[176]; + int [] result = new int[172]; int offset = 0; offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); return result; @@ -141,31 +138,31 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner { private static final int [] ZZ_ROWMAP = zzUnpackRowMap(); private static final String ZZ_ROWMAP_PACKED_0 = - "\0\0\0\64\0\150\0\234\0\234\0\234\0\320\0\u0104"+ - "\0\234\0\234\0\234\0\u0138\0\u016c\0\234\0\u01a0\0\234"+ - "\0\234\0\234\0\234\0\234\0\234\0\u01d4\0\234\0\u0208"+ - "\0\234\0\u023c\0\234\0\u0270\0\u02a4\0\u02d8\0\u030c\0\u0340"+ - "\0\u0374\0\u03a8\0\234\0\234\0\u03dc\0\u0410\0\u0444\0\u0478"+ - "\0\u04ac\0\u04e0\0\u0514\0\u0548\0\u057c\0\u05b0\0\u05e4\0\u0618"+ - "\0\u064c\0\u0680\0\u06b4\0\u06e8\0\u071c\0\234\0\u0750\0\234"+ - "\0\234\0\234\0\234\0\234\0\234\0\u0784\0\u07b8\0\u07ec"+ - "\0\u0820\0\u0854\0\u0888\0\u08bc\0\u08f0\0\u0924\0\u0958\0\u098c"+ - "\0\u09c0\0\u09f4\0\u0a28\0\u0a5c\0\u0a90\0\u030c\0\u0ac4\0\u030c"+ - "\0\u030c\0\u0af8\0\u0b2c\0\u030c\0\u0b60\0\u0b94\0\u0bc8\0\u0bfc"+ - "\0\u0c30\0\u0c64\0\u0c98\0\u0ccc\0\234\0\u0d00\0\u0d34\0\u0d68"+ - "\0\u0d9c\0\u030c\0\u0dd0\0\u0e04\0\u0e38\0\u0e6c\0\u0ea0\0\u030c"+ - "\0\u030c\0\u0ed4\0\u0f08\0\u0f3c\0\u0f70\0\u030c\0\u0fa4\0\u0fd8"+ - "\0\u100c\0\u1040\0\u1074\0\u030c\0\u10a8\0\u10dc\0\u1110\0\u030c"+ - "\0\u1144\0\u1178\0\u11ac\0\u11e0\0\u030c\0\u030c\0\u1214\0\u1248"+ - "\0\u127c\0\u12b0\0\u12e4\0\u030c\0\u030c\0\u1318\0\u134c\0\u030c"+ - "\0\u1380\0\u13b4\0\u13e8\0\u141c\0\u030c\0\u1450\0\u1484\0\u14b8"+ - "\0\u030c\0\u14ec\0\u030c\0\u1520\0\u030c\0\u030c\0\u030c\0\u1554"+ - "\0\u1588\0\u15bc\0\u15f0\0\u1624\0\u1658\0\u168c\0\u030c\0\u16c0"+ - "\0\u030c\0\u030c\0\u030c\0\u16f4\0\u030c\0\u1728\0\u030c\0\u030c"+ - "\0\u030c\0\u175c\0\u030c\0\u1790\0\u030c\0\u17c4\0\u030c\0\u030c"; + "\0\0\0\63\0\146\0\146\0\146\0\231\0\314\0\146"+ + "\0\146\0\146\0\377\0\u0132\0\u0165\0\u0198\0\146\0\146"+ + "\0\146\0\146\0\146\0\146\0\u01cb\0\146\0\u01fe\0\146"+ + "\0\u0231\0\146\0\u0264\0\u0297\0\u02ca\0\u02fd\0\u0330\0\u0363"+ + "\0\u0396\0\146\0\146\0\u03c9\0\u03fc\0\u042f\0\u0462\0\u0495"+ + "\0\u04c8\0\u04fb\0\u052e\0\u0561\0\u0594\0\u05c7\0\u05fa\0\u062d"+ + "\0\u0660\0\u0693\0\u06c6\0\146\0\u0165\0\146\0\u06f9\0\146"+ + "\0\146\0\146\0\146\0\146\0\u072c\0\u075f\0\u0792\0\u07c5"+ + "\0\u07f8\0\u082b\0\u085e\0\u0891\0\u08c4\0\u08f7\0\u092a\0\u095d"+ + "\0\u0990\0\u09c3\0\u09f6\0\u0a29\0\u02fd\0\u0a5c\0\u02fd\0\u02fd"+ + "\0\u0a8f\0\u0ac2\0\u02fd\0\u0af5\0\u0b28\0\u0b5b\0\u0b8e\0\u0bc1"+ + "\0\u0bf4\0\u0c27\0\u0c5a\0\u0c8d\0\u0cc0\0\u02fd\0\u0cf3\0\u0d26"+ + "\0\u0d59\0\u0d8c\0\u0dbf\0\u02fd\0\u02fd\0\u0df2\0\u0e25\0\u0e58"+ + "\0\u0e8b\0\u02fd\0\u0ebe\0\u0ef1\0\u0f24\0\u0f57\0\u0f8a\0\u02fd"+ + "\0\u0fbd\0\u0ff0\0\u1023\0\u02fd\0\u1056\0\u1089\0\u10bc\0\u10ef"+ + "\0\u02fd\0\u02fd\0\u1122\0\u1155\0\u1188\0\u11bb\0\u11ee\0\u02fd"+ + "\0\u02fd\0\u1221\0\u1254\0\u02fd\0\u1287\0\u12ba\0\u12ed\0\u1320"+ + "\0\u02fd\0\u1353\0\u1386\0\u13b9\0\u02fd\0\u13ec\0\u02fd\0\u141f"+ + "\0\u02fd\0\u02fd\0\u02fd\0\u1452\0\u1485\0\u14b8\0\u14eb\0\u151e"+ + "\0\u1551\0\u1584\0\u02fd\0\u15b7\0\u02fd\0\u02fd\0\u02fd\0\u15ea"+ + "\0\u02fd\0\u161d\0\u02fd\0\u02fd\0\u02fd\0\u1650\0\u02fd\0\u1683"+ + "\0\u02fd\0\u16b6\0\u02fd\0\u02fd"; private static int [] zzUnpackRowMap() { - int [] result = new int[176]; + int [] result = new int[172]; int offset = 0; offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result); return result; @@ -188,101 +185,97 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner { private static final int [] ZZ_TRANS = zzUnpackTrans(); private static final String ZZ_TRANS_PACKED_0 = - "\1\4\1\5\1\6\1\4\1\7\2\4\1\10\54\4"+ - "\1\11\1\12\1\13\1\11\1\14\1\15\1\16\1\17"+ - "\1\20\1\21\1\22\1\23\1\24\1\25\1\26\1\27"+ - "\1\30\1\31\1\32\1\33\1\34\1\35\1\36\1\37"+ - "\1\40\1\41\1\42\1\43\1\11\1\44\1\45\1\46"+ - "\1\47\1\50\1\51\1\52\1\53\1\37\1\54\1\37"+ - "\1\55\1\37\1\56\1\57\1\60\1\61\1\37\1\62"+ - "\1\37\1\63\1\37\1\64\6\65\1\66\25\65\1\67"+ - "\27\65\66\0\1\6\61\0\2\10\1\0\1\10\1\0"+ - "\57\10\2\0\1\13\106\0\1\70\36\0\2\17\1\0"+ - "\1\17\1\0\57\17\26\0\1\71\55\0\1\72\64\0"+ - "\2\32\66\0\1\73\63\0\1\74\63\0\1\75\65\0"+ - "\4\37\3\0\26\37\27\0\4\37\3\0\1\76\25\37"+ - "\27\0\4\37\3\0\15\37\1\77\10\37\27\0\4\37"+ - "\3\0\17\37\1\100\6\37\27\0\4\37\3\0\14\37"+ - "\1\101\3\37\1\102\2\37\1\103\2\37\27\0\4\37"+ - "\3\0\17\37\1\104\6\37\27\0\4\37\3\0\12\37"+ - "\1\105\2\37\1\106\10\37\27\0\4\37\3\0\4\37"+ - "\1\107\21\37\27\0\4\37\3\0\12\37\1\110\11\37"+ - "\1\111\1\37\27\0\4\37\3\0\10\37\1\112\4\37"+ - "\1\113\1\37\1\114\6\37\27\0\4\37\3\0\12\37"+ - "\1\115\13\37\27\0\4\37\3\0\5\37\1\116\5\37"+ - "\1\117\1\120\3\37\1\121\5\37\27\0\4\37\3\0"+ - "\1\122\25\37\27\0\4\37\3\0\15\37\1\123\10\37"+ - "\27\0\4\37\3\0\17\37\1\124\6\37\27\0\4\37"+ - "\3\0\1\125\25\37\27\0\4\37\3\0\1\126\3\37"+ - "\1\127\21\37\27\0\4\37\3\0\17\37\1\130\6\37"+ - "\27\0\4\37\3\0\7\37\1\131\1\132\15\37\27\0"+ - "\4\37\3\0\10\37\1\133\15\37\6\65\1\0\25\65"+ - "\1\134\27\65\2\0\2\135\1\136\1\0\1\65\25\0"+ - "\1\65\15\0\1\65\2\0\1\65\1\0\1\65\33\0"+ - "\4\37\3\0\12\37\1\137\13\37\27\0\4\37\3\0"+ - "\14\37\1\140\11\37\27\0\4\37\3\0\22\37\1\141"+ - "\3\37\27\0\4\37\3\0\3\37\1\142\22\37\27\0"+ - "\4\37\3\0\20\37\1\143\5\37\27\0\4\37\3\0"+ - "\1\144\25\37\27\0\4\37\3\0\4\37\1\145\21\37"+ - "\27\0\4\37\3\0\1\146\25\37\27\0\4\37\3\0"+ - "\14\37\1\147\11\37\27\0\4\37\3\0\5\37\1\150"+ - "\4\37\1\151\13\37\27\0\4\37\3\0\10\37\1\152"+ - "\7\37\1\153\5\37\27\0\4\37\3\0\2\37\1\154"+ - "\23\37\27\0\4\37\3\0\14\37\1\155\11\37\27\0"+ - "\4\37\3\0\17\37\1\156\6\37\27\0\4\37\3\0"+ - "\15\37\1\157\10\37\27\0\4\37\3\0\15\37\1\160"+ - "\10\37\27\0\4\37\3\0\16\37\1\161\7\37\27\0"+ - "\4\37\3\0\13\37\1\162\12\37\27\0\4\37\3\0"+ - "\14\37\1\163\4\37\1\164\4\37\27\0\4\37\3\0"+ - "\20\37\1\165\5\37\27\0\4\37\3\0\10\37\1\166"+ - "\15\37\27\0\4\37\3\0\21\37\1\167\4\37\27\0"+ - "\4\37\3\0\25\37\1\170\27\0\4\37\3\0\10\37"+ - "\1\171\15\37\27\0\4\37\3\0\21\37\1\172\4\37"+ - "\27\0\4\37\3\0\4\37\1\173\21\37\6\0\1\65"+ - "\25\0\1\65\15\0\1\65\2\0\1\65\1\0\1\65"+ - "\6\0\1\135\110\0\4\37\3\0\20\37\1\174\5\37"+ - "\27\0\4\37\3\0\4\37\1\175\21\37\27\0\4\37"+ - "\3\0\4\37\1\176\21\37\27\0\4\37\3\0\4\37"+ - "\1\177\21\37\27\0\4\37\3\0\10\37\1\200\15\37"+ - "\27\0\4\37\3\0\1\201\25\37\27\0\4\37\3\0"+ - "\20\37\1\202\5\37\27\0\4\37\3\0\21\37\1\203"+ - "\4\37\27\0\4\37\3\0\5\37\1\204\20\37\27\0"+ - "\4\37\3\0\4\37\1\205\21\37\27\0\4\37\3\0"+ - "\4\37\1\206\21\37\27\0\4\37\3\0\1\207\25\37"+ - "\27\0\4\37\3\0\13\37\1\210\12\37\27\0\4\37"+ - "\3\0\1\37\1\211\24\37\27\0\4\37\3\0\15\37"+ - "\1\212\10\37\27\0\4\37\3\0\1\37\1\213\24\37"+ - "\27\0\4\37\3\0\12\37\1\214\13\37\27\0\4\37"+ - "\3\0\20\37\1\215\5\37\27\0\4\37\3\0\20\37"+ - "\1\216\5\37\27\0\4\37\3\0\22\37\1\217\3\37"+ - "\27\0\4\37\3\0\12\37\1\220\13\37\27\0\4\37"+ - "\3\0\7\37\1\221\16\37\27\0\4\37\3\0\12\37"+ - "\1\222\13\37\27\0\4\37\3\0\4\37\1\223\21\37"+ - "\27\0\4\37\3\0\17\37\1\224\6\37\27\0\4\37"+ - "\3\0\21\37\1\225\4\37\27\0\4\37\3\0\11\37"+ - "\1\226\14\37\27\0\4\37\3\0\20\37\1\227\5\37"+ - "\27\0\4\37\3\0\10\37\1\230\15\37\27\0\4\37"+ - "\3\0\16\37\1\231\7\37\27\0\4\37\3\0\12\37"+ - "\1\232\13\37\27\0\4\37\3\0\1\233\25\37\27\0"+ - "\4\37\3\0\17\37\1\234\6\37\27\0\4\37\3\0"+ - "\3\37\1\235\22\37\27\0\4\37\3\0\15\37\1\236"+ - "\10\37\27\0\4\37\3\0\4\37\1\237\21\37\27\0"+ - "\4\37\3\0\17\37\1\240\6\37\27\0\4\37\3\0"+ - "\4\37\1\241\21\37\27\0\4\37\3\0\3\37\1\242"+ - "\22\37\27\0\4\37\3\0\21\37\1\243\4\37\27\0"+ - "\4\37\3\0\14\37\1\244\11\37\27\0\4\37\3\0"+ - "\21\37\1\245\4\37\27\0\4\37\3\0\12\37\1\246"+ - "\13\37\27\0\4\37\3\0\12\37\1\247\13\37\27\0"+ - "\4\37\3\0\21\37\1\250\4\37\27\0\4\37\3\0"+ - "\1\251\25\37\27\0\4\37\3\0\2\37\1\252\23\37"+ - "\27\0\4\37\3\0\14\37\1\253\11\37\27\0\4\37"+ - "\3\0\22\37\1\254\3\37\27\0\4\37\3\0\25\37"+ - "\1\255\27\0\4\37\3\0\1\256\25\37\27\0\4\37"+ - "\3\0\4\37\1\257\21\37\27\0\4\37\3\0\12\37"+ - "\1\260\13\37"; + "\1\3\1\4\1\5\1\6\2\3\1\7\54\3\1\10"+ + "\1\11\1\12\1\13\1\14\1\15\1\16\1\17\1\20"+ + "\1\21\1\22\1\23\1\24\1\25\1\26\1\27\1\30"+ + "\1\31\1\32\1\33\1\34\1\35\1\36\1\37\1\40"+ + "\1\41\1\42\1\10\1\43\1\44\1\45\1\46\1\47"+ + "\1\50\1\51\1\52\1\36\1\53\1\36\1\54\1\36"+ + "\1\55\1\56\1\57\1\60\1\36\1\61\1\36\1\62"+ + "\1\36\1\63\65\0\1\5\60\0\2\7\2\0\57\7"+ + "\2\0\1\12\104\0\1\64\36\0\5\65\1\66\25\65"+ + "\1\67\27\65\2\16\2\0\57\16\25\0\1\70\54\0"+ + "\1\71\63\0\2\31\65\0\1\72\62\0\1\73\62\0"+ + "\1\74\64\0\4\36\3\0\26\36\26\0\4\36\3\0"+ + "\1\75\25\36\26\0\4\36\3\0\15\36\1\76\10\36"+ + "\26\0\4\36\3\0\17\36\1\77\6\36\26\0\4\36"+ + "\3\0\14\36\1\100\3\36\1\101\2\36\1\102\2\36"+ + "\26\0\4\36\3\0\17\36\1\103\6\36\26\0\4\36"+ + "\3\0\12\36\1\104\2\36\1\105\10\36\26\0\4\36"+ + "\3\0\4\36\1\106\21\36\26\0\4\36\3\0\12\36"+ + "\1\107\11\36\1\110\1\36\26\0\4\36\3\0\10\36"+ + "\1\111\4\36\1\112\1\36\1\113\6\36\26\0\4\36"+ + "\3\0\12\36\1\114\13\36\26\0\4\36\3\0\5\36"+ + "\1\115\5\36\1\116\1\117\3\36\1\120\5\36\26\0"+ + "\4\36\3\0\1\121\25\36\26\0\4\36\3\0\15\36"+ + "\1\122\10\36\26\0\4\36\3\0\17\36\1\123\6\36"+ + "\26\0\4\36\3\0\1\124\25\36\26\0\4\36\3\0"+ + "\1\125\3\36\1\126\21\36\26\0\4\36\3\0\17\36"+ + "\1\127\6\36\26\0\4\36\3\0\7\36\1\130\1\131"+ + "\15\36\26\0\4\36\3\0\10\36\1\132\15\36\5\0"+ + "\1\65\25\0\1\65\15\0\1\65\2\0\1\65\1\0"+ + "\1\65\32\0\4\36\3\0\12\36\1\133\13\36\26\0"+ + "\4\36\3\0\14\36\1\134\11\36\26\0\4\36\3\0"+ + "\22\36\1\135\3\36\26\0\4\36\3\0\3\36\1\136"+ + "\22\36\26\0\4\36\3\0\20\36\1\137\5\36\26\0"+ + "\4\36\3\0\1\140\25\36\26\0\4\36\3\0\4\36"+ + "\1\141\21\36\26\0\4\36\3\0\1\142\25\36\26\0"+ + "\4\36\3\0\14\36\1\143\11\36\26\0\4\36\3\0"+ + "\5\36\1\144\4\36\1\145\13\36\26\0\4\36\3\0"+ + "\10\36\1\146\7\36\1\147\5\36\26\0\4\36\3\0"+ + "\2\36\1\150\23\36\26\0\4\36\3\0\14\36\1\151"+ + "\11\36\26\0\4\36\3\0\17\36\1\152\6\36\26\0"+ + "\4\36\3\0\15\36\1\153\10\36\26\0\4\36\3\0"+ + "\15\36\1\154\10\36\26\0\4\36\3\0\16\36\1\155"+ + "\7\36\26\0\4\36\3\0\13\36\1\156\12\36\26\0"+ + "\4\36\3\0\14\36\1\157\4\36\1\160\4\36\26\0"+ + "\4\36\3\0\20\36\1\161\5\36\26\0\4\36\3\0"+ + "\10\36\1\162\15\36\26\0\4\36\3\0\21\36\1\163"+ + "\4\36\26\0\4\36\3\0\25\36\1\164\26\0\4\36"+ + "\3\0\10\36\1\165\15\36\26\0\4\36\3\0\21\36"+ + "\1\166\4\36\26\0\4\36\3\0\4\36\1\167\21\36"+ + "\26\0\4\36\3\0\20\36\1\170\5\36\26\0\4\36"+ + "\3\0\4\36\1\171\21\36\26\0\4\36\3\0\4\36"+ + "\1\172\21\36\26\0\4\36\3\0\4\36\1\173\21\36"+ + "\26\0\4\36\3\0\10\36\1\174\15\36\26\0\4\36"+ + "\3\0\1\175\25\36\26\0\4\36\3\0\20\36\1\176"+ + "\5\36\26\0\4\36\3\0\21\36\1\177\4\36\26\0"+ + "\4\36\3\0\5\36\1\200\20\36\26\0\4\36\3\0"+ + "\4\36\1\201\21\36\26\0\4\36\3\0\4\36\1\202"+ + "\21\36\26\0\4\36\3\0\1\203\25\36\26\0\4\36"+ + "\3\0\13\36\1\204\12\36\26\0\4\36\3\0\1\36"+ + "\1\205\24\36\26\0\4\36\3\0\15\36\1\206\10\36"+ + "\26\0\4\36\3\0\1\36\1\207\24\36\26\0\4\36"+ + "\3\0\12\36\1\210\13\36\26\0\4\36\3\0\20\36"+ + "\1\211\5\36\26\0\4\36\3\0\20\36\1\212\5\36"+ + "\26\0\4\36\3\0\22\36\1\213\3\36\26\0\4\36"+ + "\3\0\12\36\1\214\13\36\26\0\4\36\3\0\7\36"+ + "\1\215\16\36\26\0\4\36\3\0\12\36\1\216\13\36"+ + "\26\0\4\36\3\0\4\36\1\217\21\36\26\0\4\36"+ + "\3\0\17\36\1\220\6\36\26\0\4\36\3\0\21\36"+ + "\1\221\4\36\26\0\4\36\3\0\11\36\1\222\14\36"+ + "\26\0\4\36\3\0\20\36\1\223\5\36\26\0\4\36"+ + "\3\0\10\36\1\224\15\36\26\0\4\36\3\0\16\36"+ + "\1\225\7\36\26\0\4\36\3\0\12\36\1\226\13\36"+ + "\26\0\4\36\3\0\1\227\25\36\26\0\4\36\3\0"+ + "\17\36\1\230\6\36\26\0\4\36\3\0\3\36\1\231"+ + "\22\36\26\0\4\36\3\0\15\36\1\232\10\36\26\0"+ + "\4\36\3\0\4\36\1\233\21\36\26\0\4\36\3\0"+ + "\17\36\1\234\6\36\26\0\4\36\3\0\4\36\1\235"+ + "\21\36\26\0\4\36\3\0\3\36\1\236\22\36\26\0"+ + "\4\36\3\0\21\36\1\237\4\36\26\0\4\36\3\0"+ + "\14\36\1\240\11\36\26\0\4\36\3\0\21\36\1\241"+ + "\4\36\26\0\4\36\3\0\12\36\1\242\13\36\26\0"+ + "\4\36\3\0\12\36\1\243\13\36\26\0\4\36\3\0"+ + "\21\36\1\244\4\36\26\0\4\36\3\0\1\245\25\36"+ + "\26\0\4\36\3\0\2\36\1\246\23\36\26\0\4\36"+ + "\3\0\14\36\1\247\11\36\26\0\4\36\3\0\22\36"+ + "\1\250\3\36\26\0\4\36\3\0\25\36\1\251\26\0"+ + "\4\36\3\0\1\252\25\36\26\0\4\36\3\0\4\36"+ + "\1\253\21\36\26\0\4\36\3\0\12\36\1\254\13\36"; private static int [] zzUnpackTrans() { - int [] result = new int[6136]; + int [] result = new int[5865]; int offset = 0; offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result); return result; @@ -325,13 +318,12 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner { private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute(); private static final String ZZ_ATTRIBUTE_PACKED_0 = - "\2\0\1\1\3\11\2\1\3\11\2\1\1\11\1\1"+ - "\6\11\1\1\1\11\1\1\1\11\1\1\1\11\7\1"+ - "\2\11\21\1\1\11\1\1\6\11\36\1\1\0\1\11"+ - "\123\1"; + "\2\0\3\11\2\1\3\11\4\1\6\11\1\1\1\11"+ + "\1\1\1\11\1\1\1\11\7\1\2\11\20\1\1\11"+ + "\1\0\1\11\1\0\5\11\160\1"; private static int [] zzUnpackAttribute() { - int [] result = new int[176]; + int [] result = new int[172]; int offset = 0; offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result); return result; @@ -419,7 +411,6 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner { /** Producer of token-related values for the parser. */ final ComplexSymbolFactory symbolFactory = new ComplexSymbolFactory(); private int currIndent = 0; - private int currString = ""; private ArrayList stack = new ArrayList(20); /** Return a terminal symbol of syntactic category TYPE and no * semantic value at the current source location. */ @@ -843,11 +834,6 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner { else { switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { case 1: - { currString+=yytext(); - } - // fall through - case 68: break; - case 2: { yypushback(1); if(top() > currIndent) { @@ -862,8 +848,8 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner { } } // fall through - case 69: break; - case 3: + case 65: break; + case 2: { String space = yytext(); if(space == "\t") currIndent += 8; @@ -871,331 +857,318 @@ public class ChocoPyLexer implements java_cup.runtime.Scanner { currIndent ++; } // fall through - case 70: break; - case 4: + case 66: break; + case 3: { currIndent = 0; } // fall through - case 71: break; - case 5: + case 67: break; + case 4: { /* ignored */ } // fall through - case 72: break; - case 6: + case 68: break; + case 5: { return symbol(ChocoPyTokens.UNRECOGNIZED); } // fall through - case 73: break; - case 7: + case 69: break; + case 6: { /* ignore */ } // fall through - case 74: break; - case 8: + case 70: break; + case 7: { return symbol(ChocoPyTokens.NEWLINE); yybegin(YYINITIAL); currIndent = 0; } // fall through - case 75: break; - case 9: - { yystart(STR); currString = ""; - } - // fall through - case 76: break; - case 10: + case 71: break; + case 8: { return symbol(ChocoPyTokens.MOD); } // fall through - case 77: break; - case 11: + case 72: break; + case 9: { return symbol(ChocoPyTokens.LPAR); } // fall through - case 78: break; - case 12: + case 73: break; + case 10: { return symbol(ChocoPyTokens.RPAR); } // fall through - case 79: break; - case 13: + case 74: break; + case 11: { return symbol(ChocoPyTokens.MUL); } // fall through - case 80: break; - case 14: + case 75: break; + case 12: { return symbol(ChocoPyTokens.PLUS); } // fall through - case 81: break; - case 15: + case 76: break; + case 13: { return symbol(ChocoPyTokens.COMMA); } // fall through - case 82: break; - case 16: + case 77: break; + case 14: { return symbol(ChocoPyTokens.MINUS); } // fall through - case 83: break; - case 17: + case 78: break; + case 15: { return symbol(ChocoPyTokens.DOT); } // fall through - case 84: break; - case 18: + case 79: break; + case 16: { return symbol(ChocoPyTokens.DIV); } // fall through - case 85: break; - case 19: + case 80: break; + case 17: { return symbol(ChocoPyTokens.NUMBER, Integer.parseInt(yytext())); } // fall through - case 86: break; - case 20: + case 81: break; + case 18: { return symbol(ChocoPyTokens.COLON); } // fall through - case 87: break; - case 21: + case 82: break; + case 19: { return symbol(ChocoPyTokens.LT); } // fall through - case 88: break; - case 22: + case 83: break; + case 20: { return symbol(ChocoPyTokens.ASSIGN); } // fall through - case 89: break; - case 23: + case 84: break; + case 21: { return symbol(ChocoPyTokens.GT); } // fall through - case 90: break; - case 24: + case 85: break; + case 22: { return symbol(ChocoPyTokens.NAMES, yytext()); } // fall through - case 91: break; - case 25: + case 86: break; + case 23: { return symbol(ChocoPyTokens.LBR); } // fall through - case 92: break; - case 26: + case 87: break; + case 24: { return symbol(ChocoPyTokens.RBR); } // fall through - case 93: break; - case 27: - { yybegin(AFTER); return symbol(ChocoPyTokens.STRING, currString); + case 88: break; + case 25: + { return symbol(ChocoPyTokens.NEQ); } // fall through - case 94: break; - case 28: - { return symbol(ChocoPyTokens.NEQ); + case 89: break; + case 26: + { return symbol(ChocoPyTokens.STRING, yytext()); } // fall through - case 95: break; - case 29: + case 90: break; + case 27: { return symbol(ChocoPyTokens.ARROW); } // fall through - case 96: break; - case 30: + case 91: break; + case 28: { return symbol(ChocoPyTokens.LEQ); } // fall through - case 97: break; - case 31: + case 92: break; + case 29: { return symbol(ChocoPyTokens.EQUAL); } // fall through - case 98: break; - case 32: + case 93: break; + case 30: { return symbol(ChocoPyTokens.GEQ); } // fall through - case 99: break; - case 33: + case 94: break; + case 31: { return symbol(ChocoPyTokens.AS); } // fall through - case 100: break; - case 34: + case 95: break; + case 32: { return symbol(ChocoPyTokens.IF); } // fall through - case 101: break; - case 35: + case 96: break; + case 33: { return symbol(ChocoPyTokens.IN); } // fall through - case 102: break; - case 36: + case 97: break; + case 34: { return symbol(ChocoPyTokens.IS); } // fall through - case 103: break; - case 37: + case 98: break; + case 35: { return symbol(ChocoPyTokens.OR); } // fall through - case 104: break; - case 38: - // lookahead expression with fixed base length - zzMarkedPos = Character.offsetByCodePoints - (zzBufferL, zzStartRead, zzEndRead - zzStartRead, zzStartRead, 1); - { /*'\' at the end of line, do nothing.*/ - } - // fall through - case 105: break; - case 39: + case 99: break; + case 36: { return symbol(ChocoPyTokens.AND); } // fall through - case 106: break; - case 40: + case 100: break; + case 37: { return symbol(ChocoPyTokens.DEF); } // fall through - case 107: break; - case 41: + case 101: break; + case 38: { return symbol(ChocoPyTokens.DEL); } // fall through - case 108: break; - case 42: + case 102: break; + case 39: { return symbol(ChocoPyTokens.FOR); } // fall through - case 109: break; - case 43: + case 103: break; + case 40: { return symbol(ChocoPyTokens.NOT); } // fall through - case 110: break; - case 44: + case 104: break; + case 41: { return symbol(ChocoPyTokens.TRY); } // fall through - case 111: break; - case 45: + case 105: break; + case 42: { return symbol(ChocoPyTokens.NONE); } // fall through - case 112: break; - case 46: + case 106: break; + case 43: { return symbol(ChocoPyTokens.BOOL, true); } // fall through - case 113: break; - case 47: + case 107: break; + case 44: { return symbol(ChocoPyTokens.ELIF); } // fall through - case 114: break; - case 48: + case 108: break; + case 45: { return symbol(ChocoPyTokens.ELSE); } // fall through - case 115: break; - case 49: + case 109: break; + case 46: { return symbol(ChocoPyTokens.FROM); } // fall through - case 116: break; - case 50: + case 110: break; + case 47: { return symbol(ChocoPyTokens.PASS); } // fall through - case 117: break; - case 51: + case 111: break; + case 48: { return symbol(ChocoPyTokens.WITH); } // fall through - case 118: break; - case 52: + case 112: break; + case 49: { return symbol(ChocoPyTokens.BOOL, false); } // fall through - case 119: break; - case 53: + case 113: break; + case 50: { return symbol(ChocoPyTokens.AWAIT); } // fall through - case 120: break; - case 54: + case 114: break; + case 51: { return symbol(ChocoPyTokens.BREAK); } // fall through - case 121: break; - case 55: + case 115: break; + case 52: { return symbol(ChocoPyTokens.CLASS); } // fall through - case 122: break; - case 56: + case 116: break; + case 53: { return symbol(ChocoPyTokens.RAISE); } // fall through - case 123: break; - case 57: + case 117: break; + case 54: { return symbol(ChocoPyTokens.WHILE); } // fall through - case 124: break; - case 58: + case 118: break; + case 55: { return symbol(ChocoPyTokens.YIELD); } // fall through - case 125: break; - case 59: + case 119: break; + case 56: { return symbol(ChocoPyTokens.ASSERT); } // fall through - case 126: break; - case 60: + case 120: break; + case 57: { return symbol(ChocoPyTokens.EXCEPT); } // fall through - case 127: break; - case 61: + case 121: break; + case 58: { return symbol(ChocoPyTokens.GLOBAL); } // fall through - case 128: break; - case 62: + case 122: break; + case 59: { return symbol(ChocoPyTokens.IMPORT); } // fall through - case 129: break; - case 63: + case 123: break; + case 60: { return symbol(ChocoPyTokens.LAMBDA); } // fall through - case 130: break; - case 64: + case 124: break; + case 61: { return symbol(ChocoPyTokens.RETURN); } // fall through - case 131: break; - case 65: + case 125: break; + case 62: { return symbol(ChocoPyTokens.FINALLY); } // fall through - case 132: break; - case 66: + case 126: break; + case 63: { return symbol(ChocoPyTokens.CONTINUE); } // fall through - case 133: break; - case 67: + case 127: break; + case 64: { return symbol(ChocoPyTokens.NONLOCAL); } // fall through - case 134: break; + case 128: break; default: zzScanError(ZZ_NO_MATCH); } From 42628a34f785f373dac85e92c905594736cc3b8c Mon Sep 17 00:00:00 2001 From: bill Date: Wed, 17 Feb 2021 23:16:20 +0800 Subject: [PATCH 06/52] Revert "initial works on the lexer" This reverts commit 997178ba9cd1d191edcd01f1d896627a91f3e722. --- src/main/cup/chocopy/pa1/ChocoPy.cup | 5 - src/main/jflex/chocopy/pa1/ChocoPy.jflex | 136 +- src/main/jflex/chocopy/pa1/ChocoPyLexer.java | 1260 ------------------ 3 files changed, 13 insertions(+), 1388 deletions(-) delete mode 100644 src/main/jflex/chocopy/pa1/ChocoPyLexer.java diff --git a/src/main/cup/chocopy/pa1/ChocoPy.cup b/src/main/cup/chocopy/pa1/ChocoPy.cup index 0585cf7..d4ff444 100644 --- a/src/main/cup/chocopy/pa1/ChocoPy.cup +++ b/src/main/cup/chocopy/pa1/ChocoPy.cup @@ -144,11 +144,6 @@ action code {: */ terminal NEWLINE; terminal String PLUS; -terminal String MINUS; -terminal String MUL; -terminal String DIV; -terminal String NAMES; - terminal Integer NUMBER; /* Returned by the lexer for erroneous tokens. Since it does not appear in * the grammar, it indicates a syntax error. */ diff --git a/src/main/jflex/chocopy/pa1/ChocoPy.jflex b/src/main/jflex/chocopy/pa1/ChocoPy.jflex index ebcec10..9aafe7f 100644 --- a/src/main/jflex/chocopy/pa1/ChocoPy.jflex +++ b/src/main/jflex/chocopy/pa1/ChocoPy.jflex @@ -1,6 +1,6 @@ package chocopy.pa1; import java_cup.runtime.*; -import java.util.ArrayList; + %% /*** Do not change the flags below unless you know what you are doing. ***/ @@ -8,7 +8,7 @@ import java.util.ArrayList; %unicode %line %column -%states AFTER, STR + %class ChocoPyLexer %public @@ -32,13 +32,11 @@ import java.util.ArrayList; /** Producer of token-related values for the parser. */ final ComplexSymbolFactory symbolFactory = new ComplexSymbolFactory(); - private int currIndent = 0; - private int currString = ""; - private ArrayList stack = new ArrayList(20); + /** Return a terminal symbol of syntactic category TYPE and no * semantic value at the current source location. */ private Symbol symbol(int type) { - return symbol(type); + return symbol(type, yytext()); } /** Return a terminal symbol of syntactic category TYPE and semantic @@ -49,17 +47,7 @@ import java.util.ArrayList; new ComplexSymbolFactory.Location(yyline + 1,yycolumn + yylength()), value); } - private void push(int indent){ - stack.add(indent); - } - private int pop(){ - if(stack.isEmpty()) return 0; - return stack.remove(stack.size() - 1); - } - private int top(){ - if(stack.isEmpty) return 0; - return stack.get(stack.size() - 1); - } + %} /* Macros (regexes used in rules below) */ @@ -67,125 +55,27 @@ import java.util.ArrayList; WhiteSpace = [ \t] LineBreak = \r|\n|\r\n -IntegerLiteral = 0|[1-9][0-9]* -StringLiteral = ([^\"\\]|(\\\")|(\\t)|(\\r)|(\\n)|(\\\\))* -Names = (_|[a-z]|[A-Z])(_|[a-z]|[A-Z])* -Comments = #[^\r\n]* +IntegerLiteral = 0 | [1-9][0-9]* + %% -{ - {WhiteSpace} - { - String space = yytext(); - if(space == "\t") - currIndent += 8; - else - currIndent ++; - } - {LineBreak} - { - currIndent = 0; - } - {Comments} { /* ignored */ } - [^ \t\r\n#] - { - yypushback(1); - if(top() > currIndent) - { - pop(); - return symbol(ChocoPyTokens.DEDENT); - } - yystart(AFTER); - if(top()< currIndent) - { - push(currIndent); - return symbol(ChocoPyTokens.INDENT); - } - } -} - { + + { /* Delimiters. */ - {LineBreak} { return symbol(ChocoPyTokens.NEWLINE); yybegin(YYINITIAL); currIndent = 0;} - ":" { return symbol(ChocoPyTokens.COLON); } - "," { return symbol(ChocoPyTokens.COMMA); } + {LineBreak} { return symbol(ChocoPyTokens.NEWLINE); } /* Literals. */ {IntegerLiteral} { return symbol(ChocoPyTokens.NUMBER, Integer.parseInt(yytext())); } -// {StringLiteral} { return symbol(ChocoPyTokens.STRING, yytext());} - "\"" {yystart(STR); currString = "";} - "False" { return symbol(ChocoPyTokens.BOOL, false); } - "True" { return symbol(ChocoPyTokens.BOOL, true); } - "None" { return symbol(ChocoPyTokens.NONE); } - - /*Keywords*/ - "if" {return symbol(ChocoPyTokens.IF);} - "else" {return symbol(ChocoPyTokens.ELSE);} - "elif" {return symbol(ChocoPyTokens.ELIF);} - "while" {return symbol(ChocoPyTokens.WHILE);} - "class" {return symbol(ChocoPyTokens.CLASS);} - "def" {return symbol(ChocoPyTokens.DEF);} - "lambda" {return symbol(ChocoPyTokens.LAMBDA);} - "as" { return symbol(ChocoPyTokens.AS); } - "for" { return symbol(ChocoPyTokens.FOR); } - "global" { return symbol(ChocoPyTokens.GLOBAL); } - "in" { return symbol(ChocoPyTokens.IN); } - "nonlocal" { return symbol(ChocoPyTokens.NONLOCAL); } - "pass" { return symbol(ChocoPyTokens.PASS); } - "return" { return symbol(ChocoPyTokens.RETURN); } - "assert" { return symbol(ChocoPyTokens.ASSERT); } - "await" { return symbol(ChocoPyTokens.AWAIT); } - "break" { return symbol(ChocoPyTokens.BREAK); } - "continue" { return symbol(ChocoPyTokens.CONTINUE); } - "del" { return symbol(ChocoPyTokens.DEL); } - "except" { return symbol(ChocoPyTokens.EXCEPT); } - "finally" { return symbol(ChocoPyTokens.FINALLY); } - "from" { return symbol(ChocoPyTokens.FROM); } - "import" { return symbol(ChocoPyTokens.IMPORT); } - "raise" { return symbol(ChocoPyTokens.RAISE); } - "try" { return symbol(ChocoPyTokens.TRY); } - "with" { return symbol(ChocoPyTokens.WITH); } - "yield" { return symbol(ChocoPyTokens.YIELD); } - /* Operators. */ - "+" { return symbol(ChocoPyTokens.PLUS); } - "-" { return symbol(ChocoPyTokens.MINUS); } - "*" { return symbol(ChocoPyTokens.MUL); } - "//" { return symbol(ChocoPyTokens.DIV); } - "/" { return symbol(ChocoPyTokens.DIV); } - "%" { return symbol(ChocoPyTokens.MOD); } - ">" { return symbol(ChocoPyTokens.GT); } - "<" { return symbol(ChocoPyTokens.LT); } - "==" { return symbol(ChocoPyTokens.EQUAL); } - "!=" { return symbol(ChocoPyTokens.NEQ); } - ">=" { return symbol(ChocoPyTokens.GEQ); } - "<=" { return symbol(ChocoPyTokens.LEQ); } - "=" { return symbol(ChocoPyTokens.ASSIGN); } - "and" { return symbol(ChocoPyTokens.AND); } - "or" { return symbol(ChocoPyTokens.OR); } - "not" { return symbol(ChocoPyTokens.NOT); } - "." { return symbol(ChocoPyTokens.DOT); } - "(" { return symbol(ChocoPyTokens.LPAR); } - ")" { return symbol(ChocoPyTokens.RPAR); } - "[" { return symbol(ChocoPyTokens.LBR); } - "]" { return symbol(ChocoPyTokens.RBR); } - "->" { return symbol(ChocoPyTokens.ARROW); } - "is" { return symbol(ChocoPyTokens.IS); } - - - /*Identifiers*/ - {Names} {return symbol(ChocoPyTokens.NAMES, yytext());} + "+" { return symbol(ChocoPyTokens.PLUS, yytext()); } + /* Whitespace. */ {WhiteSpace} { /* ignore */ } - /* Comment. */ - {Comments} { /* ignore */ } -} -{ - {StringLiteral} {currString+=yytext();} - "\"" {yybegin(AFTER); return symbol(ChocoPyTokens.STRING, currString);} } + <> { return symbol(ChocoPyTokens.EOF); } /* Error fallback. */ diff --git a/src/main/jflex/chocopy/pa1/ChocoPyLexer.java b/src/main/jflex/chocopy/pa1/ChocoPyLexer.java deleted file mode 100644 index 2045209..0000000 --- a/src/main/jflex/chocopy/pa1/ChocoPyLexer.java +++ /dev/null @@ -1,1260 +0,0 @@ -// DO NOT EDIT -// Generated by JFlex 1.8.2 http://jflex.de/ -// source: ChocoPy.jflex - -package chocopy.pa1; -import java_cup.runtime.*; -import java.util.ArrayList; - -// See https://github.com/jflex-de/jflex/issues/222 -@SuppressWarnings("FallThrough") -public class ChocoPyLexer implements java_cup.runtime.Scanner { - - /** This character denotes the end of file. */ - public static final int YYEOF = -1; - - /** Initial size of the lookahead buffer. */ - private static final int ZZ_BUFFERSIZE = 16384; - - // Lexical states. - public static final int YYINITIAL = 0; - public static final int AFTER = 2; - - /** - * ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l - * ZZ_LEXSTATE[l+1] is the state in the DFA for the lexical state l - * at the beginning of a line - * l is of the form l = 2*k, k a non negative integer - */ - private static final int ZZ_LEXSTATE[] = { - 0, 0, 1, 1 - }; - - /** - * Top-level table for translating characters to character classes - */ - private static final int [] ZZ_CMAP_TOP = zzUnpackcmap_top(); - - private static final String ZZ_CMAP_TOP_PACKED_0 = - "\1\0\u10ff\u0100"; - - private static int [] zzUnpackcmap_top() { - int [] result = new int[4352]; - int offset = 0; - offset = zzUnpackcmap_top(ZZ_CMAP_TOP_PACKED_0, offset, result); - return result; - } - - private static int zzUnpackcmap_top(String packed, int offset, int [] result) { - int i = 0; /* index in packed string */ - int j = offset; /* index in unpacked array */ - int l = packed.length(); - while (i < l) { - int count = packed.charAt(i++); - int value = packed.charAt(i++); - do result[j++] = value; while (--count > 0); - } - return j; - } - - - /** - * Second-level tables for translating characters to character classes - */ - private static final int [] ZZ_CMAP_BLOCKS = zzUnpackcmap_blocks(); - - private static final String ZZ_CMAP_BLOCKS_PACKED_0 = - "\11\0\1\1\1\2\2\0\1\3\22\0\1\1\1\4"+ - "\1\5\1\6\1\0\1\7\2\0\1\10\1\11\1\12"+ - "\1\13\1\14\1\15\1\16\1\17\1\20\11\21\1\22"+ - "\1\0\1\23\1\24\1\25\2\0\5\26\1\27\7\26"+ - "\1\30\5\26\1\31\6\26\1\32\1\33\1\34\1\0"+ - "\1\26\1\0\1\35\1\36\1\37\1\40\1\41\1\42"+ - "\1\43\1\44\1\45\1\26\1\46\1\47\1\50\1\51"+ - "\1\52\1\53\1\26\1\54\1\55\1\56\1\57\1\26"+ - "\1\60\1\61\1\62\1\26\u0185\0"; - - private static int [] zzUnpackcmap_blocks() { - int [] result = new int[512]; - int offset = 0; - offset = zzUnpackcmap_blocks(ZZ_CMAP_BLOCKS_PACKED_0, offset, result); - return result; - } - - private static int zzUnpackcmap_blocks(String packed, int offset, int [] result) { - int i = 0; /* index in packed string */ - int j = offset; /* index in unpacked array */ - int l = packed.length(); - while (i < l) { - int count = packed.charAt(i++); - int value = packed.charAt(i++); - do result[j++] = value; while (--count > 0); - } - return j; - } - - /** - * Translates DFA states to action switch labels. - */ - private static final int [] ZZ_ACTION = zzUnpackAction(); - - private static final String ZZ_ACTION_PACKED_0 = - "\2\0\1\1\1\2\2\3\1\4\1\5\1\6\2\7"+ - "\2\5\1\6\1\10\1\11\1\12\1\13\1\14\1\15"+ - "\1\16\1\17\1\20\2\21\1\22\1\23\1\24\1\25"+ - "\4\26\1\27\1\30\20\26\1\31\1\0\1\32\1\0"+ - "\1\33\1\20\1\34\1\35\1\36\4\26\1\37\13\26"+ - "\1\40\1\26\1\41\1\42\2\26\1\43\12\26\1\44"+ - "\5\26\1\45\1\46\4\26\1\47\5\26\1\50\3\26"+ - "\1\51\4\26\1\52\1\53\5\26\1\54\1\55\2\26"+ - "\1\56\4\26\1\57\3\26\1\60\1\26\1\61\1\26"+ - "\1\62\1\63\1\64\7\26\1\65\1\26\1\66\1\67"+ - "\1\70\1\26\1\71\1\26\1\72\1\73\1\74\1\26"+ - "\1\75\1\26\1\76\1\26\1\77\1\100"; - - private static int [] zzUnpackAction() { - int [] result = new int[172]; - int offset = 0; - offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); - return result; - } - - private static int zzUnpackAction(String packed, int offset, int [] result) { - int i = 0; /* index in packed string */ - int j = offset; /* index in unpacked array */ - int l = packed.length(); - while (i < l) { - int count = packed.charAt(i++); - int value = packed.charAt(i++); - do result[j++] = value; while (--count > 0); - } - return j; - } - - - /** - * Translates a state to a row index in the transition table - */ - private static final int [] ZZ_ROWMAP = zzUnpackRowMap(); - - private static final String ZZ_ROWMAP_PACKED_0 = - "\0\0\0\63\0\146\0\146\0\146\0\231\0\314\0\146"+ - "\0\146\0\146\0\377\0\u0132\0\u0165\0\u0198\0\146\0\146"+ - "\0\146\0\146\0\146\0\146\0\u01cb\0\146\0\u01fe\0\146"+ - "\0\u0231\0\146\0\u0264\0\u0297\0\u02ca\0\u02fd\0\u0330\0\u0363"+ - "\0\u0396\0\146\0\146\0\u03c9\0\u03fc\0\u042f\0\u0462\0\u0495"+ - "\0\u04c8\0\u04fb\0\u052e\0\u0561\0\u0594\0\u05c7\0\u05fa\0\u062d"+ - "\0\u0660\0\u0693\0\u06c6\0\146\0\u0165\0\146\0\u06f9\0\146"+ - "\0\146\0\146\0\146\0\146\0\u072c\0\u075f\0\u0792\0\u07c5"+ - "\0\u07f8\0\u082b\0\u085e\0\u0891\0\u08c4\0\u08f7\0\u092a\0\u095d"+ - "\0\u0990\0\u09c3\0\u09f6\0\u0a29\0\u02fd\0\u0a5c\0\u02fd\0\u02fd"+ - "\0\u0a8f\0\u0ac2\0\u02fd\0\u0af5\0\u0b28\0\u0b5b\0\u0b8e\0\u0bc1"+ - "\0\u0bf4\0\u0c27\0\u0c5a\0\u0c8d\0\u0cc0\0\u02fd\0\u0cf3\0\u0d26"+ - "\0\u0d59\0\u0d8c\0\u0dbf\0\u02fd\0\u02fd\0\u0df2\0\u0e25\0\u0e58"+ - "\0\u0e8b\0\u02fd\0\u0ebe\0\u0ef1\0\u0f24\0\u0f57\0\u0f8a\0\u02fd"+ - "\0\u0fbd\0\u0ff0\0\u1023\0\u02fd\0\u1056\0\u1089\0\u10bc\0\u10ef"+ - "\0\u02fd\0\u02fd\0\u1122\0\u1155\0\u1188\0\u11bb\0\u11ee\0\u02fd"+ - "\0\u02fd\0\u1221\0\u1254\0\u02fd\0\u1287\0\u12ba\0\u12ed\0\u1320"+ - "\0\u02fd\0\u1353\0\u1386\0\u13b9\0\u02fd\0\u13ec\0\u02fd\0\u141f"+ - "\0\u02fd\0\u02fd\0\u02fd\0\u1452\0\u1485\0\u14b8\0\u14eb\0\u151e"+ - "\0\u1551\0\u1584\0\u02fd\0\u15b7\0\u02fd\0\u02fd\0\u02fd\0\u15ea"+ - "\0\u02fd\0\u161d\0\u02fd\0\u02fd\0\u02fd\0\u1650\0\u02fd\0\u1683"+ - "\0\u02fd\0\u16b6\0\u02fd\0\u02fd"; - - private static int [] zzUnpackRowMap() { - int [] result = new int[172]; - int offset = 0; - offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result); - return result; - } - - private static int zzUnpackRowMap(String packed, int offset, int [] result) { - int i = 0; /* index in packed string */ - int j = offset; /* index in unpacked array */ - int l = packed.length(); - while (i < l) { - int high = packed.charAt(i++) << 16; - result[j++] = high | packed.charAt(i++); - } - return j; - } - - /** - * The transition table of the DFA - */ - private static final int [] ZZ_TRANS = zzUnpackTrans(); - - private static final String ZZ_TRANS_PACKED_0 = - "\1\3\1\4\1\5\1\6\2\3\1\7\54\3\1\10"+ - "\1\11\1\12\1\13\1\14\1\15\1\16\1\17\1\20"+ - "\1\21\1\22\1\23\1\24\1\25\1\26\1\27\1\30"+ - "\1\31\1\32\1\33\1\34\1\35\1\36\1\37\1\40"+ - "\1\41\1\42\1\10\1\43\1\44\1\45\1\46\1\47"+ - "\1\50\1\51\1\52\1\36\1\53\1\36\1\54\1\36"+ - "\1\55\1\56\1\57\1\60\1\36\1\61\1\36\1\62"+ - "\1\36\1\63\65\0\1\5\60\0\2\7\2\0\57\7"+ - "\2\0\1\12\104\0\1\64\36\0\5\65\1\66\25\65"+ - "\1\67\27\65\2\16\2\0\57\16\25\0\1\70\54\0"+ - "\1\71\63\0\2\31\65\0\1\72\62\0\1\73\62\0"+ - "\1\74\64\0\4\36\3\0\26\36\26\0\4\36\3\0"+ - "\1\75\25\36\26\0\4\36\3\0\15\36\1\76\10\36"+ - "\26\0\4\36\3\0\17\36\1\77\6\36\26\0\4\36"+ - "\3\0\14\36\1\100\3\36\1\101\2\36\1\102\2\36"+ - "\26\0\4\36\3\0\17\36\1\103\6\36\26\0\4\36"+ - "\3\0\12\36\1\104\2\36\1\105\10\36\26\0\4\36"+ - "\3\0\4\36\1\106\21\36\26\0\4\36\3\0\12\36"+ - "\1\107\11\36\1\110\1\36\26\0\4\36\3\0\10\36"+ - "\1\111\4\36\1\112\1\36\1\113\6\36\26\0\4\36"+ - "\3\0\12\36\1\114\13\36\26\0\4\36\3\0\5\36"+ - "\1\115\5\36\1\116\1\117\3\36\1\120\5\36\26\0"+ - "\4\36\3\0\1\121\25\36\26\0\4\36\3\0\15\36"+ - "\1\122\10\36\26\0\4\36\3\0\17\36\1\123\6\36"+ - "\26\0\4\36\3\0\1\124\25\36\26\0\4\36\3\0"+ - "\1\125\3\36\1\126\21\36\26\0\4\36\3\0\17\36"+ - "\1\127\6\36\26\0\4\36\3\0\7\36\1\130\1\131"+ - "\15\36\26\0\4\36\3\0\10\36\1\132\15\36\5\0"+ - "\1\65\25\0\1\65\15\0\1\65\2\0\1\65\1\0"+ - "\1\65\32\0\4\36\3\0\12\36\1\133\13\36\26\0"+ - "\4\36\3\0\14\36\1\134\11\36\26\0\4\36\3\0"+ - "\22\36\1\135\3\36\26\0\4\36\3\0\3\36\1\136"+ - "\22\36\26\0\4\36\3\0\20\36\1\137\5\36\26\0"+ - "\4\36\3\0\1\140\25\36\26\0\4\36\3\0\4\36"+ - "\1\141\21\36\26\0\4\36\3\0\1\142\25\36\26\0"+ - "\4\36\3\0\14\36\1\143\11\36\26\0\4\36\3\0"+ - "\5\36\1\144\4\36\1\145\13\36\26\0\4\36\3\0"+ - "\10\36\1\146\7\36\1\147\5\36\26\0\4\36\3\0"+ - "\2\36\1\150\23\36\26\0\4\36\3\0\14\36\1\151"+ - "\11\36\26\0\4\36\3\0\17\36\1\152\6\36\26\0"+ - "\4\36\3\0\15\36\1\153\10\36\26\0\4\36\3\0"+ - "\15\36\1\154\10\36\26\0\4\36\3\0\16\36\1\155"+ - "\7\36\26\0\4\36\3\0\13\36\1\156\12\36\26\0"+ - "\4\36\3\0\14\36\1\157\4\36\1\160\4\36\26\0"+ - "\4\36\3\0\20\36\1\161\5\36\26\0\4\36\3\0"+ - "\10\36\1\162\15\36\26\0\4\36\3\0\21\36\1\163"+ - "\4\36\26\0\4\36\3\0\25\36\1\164\26\0\4\36"+ - "\3\0\10\36\1\165\15\36\26\0\4\36\3\0\21\36"+ - "\1\166\4\36\26\0\4\36\3\0\4\36\1\167\21\36"+ - "\26\0\4\36\3\0\20\36\1\170\5\36\26\0\4\36"+ - "\3\0\4\36\1\171\21\36\26\0\4\36\3\0\4\36"+ - "\1\172\21\36\26\0\4\36\3\0\4\36\1\173\21\36"+ - "\26\0\4\36\3\0\10\36\1\174\15\36\26\0\4\36"+ - "\3\0\1\175\25\36\26\0\4\36\3\0\20\36\1\176"+ - "\5\36\26\0\4\36\3\0\21\36\1\177\4\36\26\0"+ - "\4\36\3\0\5\36\1\200\20\36\26\0\4\36\3\0"+ - "\4\36\1\201\21\36\26\0\4\36\3\0\4\36\1\202"+ - "\21\36\26\0\4\36\3\0\1\203\25\36\26\0\4\36"+ - "\3\0\13\36\1\204\12\36\26\0\4\36\3\0\1\36"+ - "\1\205\24\36\26\0\4\36\3\0\15\36\1\206\10\36"+ - "\26\0\4\36\3\0\1\36\1\207\24\36\26\0\4\36"+ - "\3\0\12\36\1\210\13\36\26\0\4\36\3\0\20\36"+ - "\1\211\5\36\26\0\4\36\3\0\20\36\1\212\5\36"+ - "\26\0\4\36\3\0\22\36\1\213\3\36\26\0\4\36"+ - "\3\0\12\36\1\214\13\36\26\0\4\36\3\0\7\36"+ - "\1\215\16\36\26\0\4\36\3\0\12\36\1\216\13\36"+ - "\26\0\4\36\3\0\4\36\1\217\21\36\26\0\4\36"+ - "\3\0\17\36\1\220\6\36\26\0\4\36\3\0\21\36"+ - "\1\221\4\36\26\0\4\36\3\0\11\36\1\222\14\36"+ - "\26\0\4\36\3\0\20\36\1\223\5\36\26\0\4\36"+ - "\3\0\10\36\1\224\15\36\26\0\4\36\3\0\16\36"+ - "\1\225\7\36\26\0\4\36\3\0\12\36\1\226\13\36"+ - "\26\0\4\36\3\0\1\227\25\36\26\0\4\36\3\0"+ - "\17\36\1\230\6\36\26\0\4\36\3\0\3\36\1\231"+ - "\22\36\26\0\4\36\3\0\15\36\1\232\10\36\26\0"+ - "\4\36\3\0\4\36\1\233\21\36\26\0\4\36\3\0"+ - "\17\36\1\234\6\36\26\0\4\36\3\0\4\36\1\235"+ - "\21\36\26\0\4\36\3\0\3\36\1\236\22\36\26\0"+ - "\4\36\3\0\21\36\1\237\4\36\26\0\4\36\3\0"+ - "\14\36\1\240\11\36\26\0\4\36\3\0\21\36\1\241"+ - "\4\36\26\0\4\36\3\0\12\36\1\242\13\36\26\0"+ - "\4\36\3\0\12\36\1\243\13\36\26\0\4\36\3\0"+ - "\21\36\1\244\4\36\26\0\4\36\3\0\1\245\25\36"+ - "\26\0\4\36\3\0\2\36\1\246\23\36\26\0\4\36"+ - "\3\0\14\36\1\247\11\36\26\0\4\36\3\0\22\36"+ - "\1\250\3\36\26\0\4\36\3\0\25\36\1\251\26\0"+ - "\4\36\3\0\1\252\25\36\26\0\4\36\3\0\4\36"+ - "\1\253\21\36\26\0\4\36\3\0\12\36\1\254\13\36"; - - private static int [] zzUnpackTrans() { - int [] result = new int[5865]; - int offset = 0; - offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result); - return result; - } - - private static int zzUnpackTrans(String packed, int offset, int [] result) { - int i = 0; /* index in packed string */ - int j = offset; /* index in unpacked array */ - int l = packed.length(); - while (i < l) { - int count = packed.charAt(i++); - int value = packed.charAt(i++); - value--; - do result[j++] = value; while (--count > 0); - } - return j; - } - - - /** Error code for "Unknown internal scanner error". */ - private static final int ZZ_UNKNOWN_ERROR = 0; - /** Error code for "could not match input". */ - private static final int ZZ_NO_MATCH = 1; - /** Error code for "pushback value was too large". */ - private static final int ZZ_PUSHBACK_2BIG = 2; - - /** - * Error messages for {@link #ZZ_UNKNOWN_ERROR}, {@link #ZZ_NO_MATCH}, and - * {@link #ZZ_PUSHBACK_2BIG} respectively. - */ - private static final String ZZ_ERROR_MSG[] = { - "Unknown internal scanner error", - "Error: could not match input", - "Error: pushback value was too large" - }; - - /** - * ZZ_ATTRIBUTE[aState] contains the attributes of state {@code aState} - */ - private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute(); - - private static final String ZZ_ATTRIBUTE_PACKED_0 = - "\2\0\3\11\2\1\3\11\4\1\6\11\1\1\1\11"+ - "\1\1\1\11\1\1\1\11\7\1\2\11\20\1\1\11"+ - "\1\0\1\11\1\0\5\11\160\1"; - - private static int [] zzUnpackAttribute() { - int [] result = new int[172]; - int offset = 0; - offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result); - return result; - } - - private static int zzUnpackAttribute(String packed, int offset, int [] result) { - int i = 0; /* index in packed string */ - int j = offset; /* index in unpacked array */ - int l = packed.length(); - while (i < l) { - int count = packed.charAt(i++); - int value = packed.charAt(i++); - do result[j++] = value; while (--count > 0); - } - return j; - } - - /** Input device. */ - private java.io.Reader zzReader; - - /** Current state of the DFA. */ - private int zzState; - - /** Current lexical state. */ - private int zzLexicalState = YYINITIAL; - - /** - * This buffer contains the current text to be matched and is the source of the {@link #yytext()} - * string. - */ - private char zzBuffer[] = new char[ZZ_BUFFERSIZE]; - - /** Text position at the last accepting state. */ - private int zzMarkedPos; - - /** Current text position in the buffer. */ - private int zzCurrentPos; - - /** Marks the beginning of the {@link #yytext()} string in the buffer. */ - private int zzStartRead; - - /** Marks the last character in the buffer, that has been read from input. */ - private int zzEndRead; - - /** - * Whether the scanner is at the end of file. - * @see #yyatEOF - */ - private boolean zzAtEOF; - - /** - * The number of occupied positions in {@link #zzBuffer} beyond {@link #zzEndRead}. - * - *

When a lead/high surrogate has been read from the input stream into the final - * {@link #zzBuffer} position, this will have a value of 1; otherwise, it will have a value of 0. - */ - private int zzFinalHighSurrogate = 0; - - /** Number of newlines encountered up to the start of the matched text. */ - private int yyline; - - /** Number of characters from the last newline up to the start of the matched text. */ - private int yycolumn; - - /** Number of characters up to the start of the matched text. */ - @SuppressWarnings("unused") - private long yychar; - - /** Whether the scanner is currently at the beginning of a line. */ - @SuppressWarnings("unused") - private boolean zzAtBOL = true; - - /** Whether the user-EOF-code has already been executed. */ - @SuppressWarnings("unused") - private boolean zzEOFDone; - - /* user code: */ - /* The code below includes some convenience methods to create tokens - * of a given type and optionally a value that the CUP parser can - * understand. Specifically, a lot of the logic below deals with - * embedded information about where in the source code a given token - * was recognized, so that the parser can report errors accurately. - * (It need not be modified for this project.) */ - - /** Producer of token-related values for the parser. */ - final ComplexSymbolFactory symbolFactory = new ComplexSymbolFactory(); - private int currIndent = 0; - private ArrayList stack = new ArrayList(20); - /** Return a terminal symbol of syntactic category TYPE and no - * semantic value at the current source location. */ - private Symbol symbol(int type) { - return symbol(type); - } - - /** Return a terminal symbol of syntactic category TYPE and semantic - * value VALUE at the current source location. */ - private Symbol symbol(int type, Object value) { - return symbolFactory.newSymbol(ChocoPyTokens.terminalNames[type], type, - new ComplexSymbolFactory.Location(yyline + 1, yycolumn + 1), - new ComplexSymbolFactory.Location(yyline + 1,yycolumn + yylength()), - value); - } - private void push(int indent){ - stack.add(indent); - } - private int pop(){ - if(stack.isEmpty()) return 0; - return stack.remove(stack.size() - 1); - } - private int top(){ - if(stack.isEmpty) return 0; - return stack.get(stack.size() - 1); - } - - - /** - * Creates a new scanner - * - * @param in the java.io.Reader to read input from. - */ - public ChocoPyLexer(java.io.Reader in) { - this.zzReader = in; - } - - /** - * Translates raw input code points to DFA table row - */ - private static int zzCMap(int input) { - int offset = input & 255; - return offset == input ? ZZ_CMAP_BLOCKS[offset] : ZZ_CMAP_BLOCKS[ZZ_CMAP_TOP[input >> 8] | offset]; - } - - /** - * Refills the input buffer. - * - * @return {@code false} iff there was new input. - * @exception java.io.IOException if any I/O-Error occurs - */ - private boolean zzRefill() throws java.io.IOException { - - /* first: make room (if you can) */ - if (zzStartRead > 0) { - zzEndRead += zzFinalHighSurrogate; - zzFinalHighSurrogate = 0; - System.arraycopy(zzBuffer, zzStartRead, - zzBuffer, 0, - zzEndRead - zzStartRead); - - /* translate stored positions */ - zzEndRead -= zzStartRead; - zzCurrentPos -= zzStartRead; - zzMarkedPos -= zzStartRead; - zzStartRead = 0; - } - - /* is the buffer big enough? */ - if (zzCurrentPos >= zzBuffer.length - zzFinalHighSurrogate) { - /* if not: blow it up */ - char newBuffer[] = new char[zzBuffer.length * 2]; - System.arraycopy(zzBuffer, 0, newBuffer, 0, zzBuffer.length); - zzBuffer = newBuffer; - zzEndRead += zzFinalHighSurrogate; - zzFinalHighSurrogate = 0; - } - - /* fill the buffer with new input */ - int requested = zzBuffer.length - zzEndRead; - int numRead = zzReader.read(zzBuffer, zzEndRead, requested); - - /* not supposed to occur according to specification of java.io.Reader */ - if (numRead == 0) { - throw new java.io.IOException( - "Reader returned 0 characters. See JFlex examples/zero-reader for a workaround."); - } - if (numRead > 0) { - zzEndRead += numRead; - if (Character.isHighSurrogate(zzBuffer[zzEndRead - 1])) { - if (numRead == requested) { // We requested too few chars to encode a full Unicode character - --zzEndRead; - zzFinalHighSurrogate = 1; - } else { // There is room in the buffer for at least one more char - int c = zzReader.read(); // Expecting to read a paired low surrogate char - if (c == -1) { - return true; - } else { - zzBuffer[zzEndRead++] = (char)c; - } - } - } - /* potentially more input available */ - return false; - } - - /* numRead < 0 ==> end of stream */ - return true; - } - - - /** - * Closes the input reader. - * - * @throws java.io.IOException if the reader could not be closed. - */ - public final void yyclose() throws java.io.IOException { - zzAtEOF = true; // indicate end of file - zzEndRead = zzStartRead; // invalidate buffer - - if (zzReader != null) { - zzReader.close(); - } - } - - - /** - * Resets the scanner to read from a new input stream. - * - *

Does not close the old reader. - * - *

All internal variables are reset, the old input stream cannot be reused (internal - * buffer is discarded and lost). Lexical state is set to {@code ZZ_INITIAL}. - * - *

Internal scan buffer is resized down to its initial length, if it has grown. - * - * @param reader The new input stream. - */ - public final void yyreset(java.io.Reader reader) { - zzReader = reader; - zzEOFDone = false; - yyResetPosition(); - zzLexicalState = YYINITIAL; - if (zzBuffer.length > ZZ_BUFFERSIZE) { - zzBuffer = new char[ZZ_BUFFERSIZE]; - } - } - - /** - * Resets the input position. - */ - private final void yyResetPosition() { - zzAtBOL = true; - zzAtEOF = false; - zzCurrentPos = 0; - zzMarkedPos = 0; - zzStartRead = 0; - zzEndRead = 0; - zzFinalHighSurrogate = 0; - yyline = 0; - yycolumn = 0; - yychar = 0L; - } - - - /** - * Returns whether the scanner has reached the end of the reader it reads from. - * - * @return whether the scanner has reached EOF. - */ - public final boolean yyatEOF() { - return zzAtEOF; - } - - - /** - * Returns the current lexical state. - * - * @return the current lexical state. - */ - public final int yystate() { - return zzLexicalState; - } - - - /** - * Enters a new lexical state. - * - * @param newState the new lexical state - */ - public final void yybegin(int newState) { - zzLexicalState = newState; - } - - - /** - * Returns the text matched by the current regular expression. - * - * @return the matched text. - */ - public final String yytext() { - return new String(zzBuffer, zzStartRead, zzMarkedPos-zzStartRead); - } - - - /** - * Returns the character at the given position from the matched text. - * - *

It is equivalent to {@code yytext().charAt(pos)}, but faster. - * - * @param position the position of the character to fetch. A value from 0 to {@code yylength()-1}. - * - * @return the character at {@code position}. - */ - public final char yycharat(int position) { - return zzBuffer[zzStartRead + position]; - } - - - /** - * How many characters were matched. - * - * @return the length of the matched text region. - */ - public final int yylength() { - return zzMarkedPos-zzStartRead; - } - - - /** - * Reports an error that occurred while scanning. - * - *

In a well-formed scanner (no or only correct usage of {@code yypushback(int)} and a - * match-all fallback rule) this method will only be called with things that - * "Can't Possibly Happen". - * - *

If this method is called, something is seriously wrong (e.g. a JFlex bug producing a faulty - * scanner etc.). - * - *

Usual syntax/scanner level error handling should be done in error fallback rules. - * - * @param errorCode the code of the error message to display. - */ - private static void zzScanError(int errorCode) { - String message; - try { - message = ZZ_ERROR_MSG[errorCode]; - } catch (ArrayIndexOutOfBoundsException e) { - message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR]; - } - - throw new Error(message); - } - - - /** - * Pushes the specified amount of characters back into the input stream. - * - *

They will be read again by then next call of the scanning method. - * - * @param number the number of characters to be read again. This number must not be greater than - * {@link #yylength()}. - */ - public void yypushback(int number) { - if ( number > yylength() ) - zzScanError(ZZ_PUSHBACK_2BIG); - - zzMarkedPos -= number; - } - - - - - /** - * Resumes scanning until the next regular expression is matched, the end of input is encountered - * or an I/O-Error occurs. - * - * @return the next token. - * @exception java.io.IOException if any I/O-Error occurs. - */ - @Override public java_cup.runtime.Symbol next_token() throws java.io.IOException { - int zzInput; - int zzAction; - - // cached fields: - int zzCurrentPosL; - int zzMarkedPosL; - int zzEndReadL = zzEndRead; - char[] zzBufferL = zzBuffer; - - int [] zzTransL = ZZ_TRANS; - int [] zzRowMapL = ZZ_ROWMAP; - int [] zzAttrL = ZZ_ATTRIBUTE; - - while (true) { - zzMarkedPosL = zzMarkedPos; - - boolean zzR = false; - int zzCh; - int zzCharCount; - for (zzCurrentPosL = zzStartRead ; - zzCurrentPosL < zzMarkedPosL ; - zzCurrentPosL += zzCharCount ) { - zzCh = Character.codePointAt(zzBufferL, zzCurrentPosL, zzMarkedPosL); - zzCharCount = Character.charCount(zzCh); - switch (zzCh) { - case '\u000B': // fall through - case '\u000C': // fall through - case '\u0085': // fall through - case '\u2028': // fall through - case '\u2029': - yyline++; - yycolumn = 0; - zzR = false; - break; - case '\r': - yyline++; - yycolumn = 0; - zzR = true; - break; - case '\n': - if (zzR) - zzR = false; - else { - yyline++; - yycolumn = 0; - } - break; - default: - zzR = false; - yycolumn += zzCharCount; - } - } - - if (zzR) { - // peek one character ahead if it is - // (if we have counted one line too much) - boolean zzPeek; - if (zzMarkedPosL < zzEndReadL) - zzPeek = zzBufferL[zzMarkedPosL] == '\n'; - else if (zzAtEOF) - zzPeek = false; - else { - boolean eof = zzRefill(); - zzEndReadL = zzEndRead; - zzMarkedPosL = zzMarkedPos; - zzBufferL = zzBuffer; - if (eof) - zzPeek = false; - else - zzPeek = zzBufferL[zzMarkedPosL] == '\n'; - } - if (zzPeek) yyline--; - } - zzAction = -1; - - zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; - - zzState = ZZ_LEXSTATE[zzLexicalState]; - - // set up zzAction for empty match case: - int zzAttributes = zzAttrL[zzState]; - if ( (zzAttributes & 1) == 1 ) { - zzAction = zzState; - } - - - zzForAction: { - while (true) { - - if (zzCurrentPosL < zzEndReadL) { - zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL, zzEndReadL); - zzCurrentPosL += Character.charCount(zzInput); - } - else if (zzAtEOF) { - zzInput = YYEOF; - break zzForAction; - } - else { - // store back cached positions - zzCurrentPos = zzCurrentPosL; - zzMarkedPos = zzMarkedPosL; - boolean eof = zzRefill(); - // get translated positions and possibly new buffer - zzCurrentPosL = zzCurrentPos; - zzMarkedPosL = zzMarkedPos; - zzBufferL = zzBuffer; - zzEndReadL = zzEndRead; - if (eof) { - zzInput = YYEOF; - break zzForAction; - } - else { - zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL, zzEndReadL); - zzCurrentPosL += Character.charCount(zzInput); - } - } - int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMap(zzInput) ]; - if (zzNext == -1) break zzForAction; - zzState = zzNext; - - zzAttributes = zzAttrL[zzState]; - if ( (zzAttributes & 1) == 1 ) { - zzAction = zzState; - zzMarkedPosL = zzCurrentPosL; - if ( (zzAttributes & 8) == 8 ) break zzForAction; - } - - } - } - - // store back cached position - zzMarkedPos = zzMarkedPosL; - - if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { - zzAtEOF = true; - { - return symbol(ChocoPyTokens.EOF); - } - } - else { - switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { - case 1: - { yypushback(1); - if(top() > currIndent) - { - pop(); - return symbol(ChocoPyTokens.DEDENT); - } - yystart(AFTER); - if(top()< currIndent) - { - push(currIndent); - return symbol(ChocoPyTokens.INDENT); - } - } - // fall through - case 65: break; - case 2: - { String space = yytext(); - if(space == "\t") - currIndent += 8; - else - currIndent ++; - } - // fall through - case 66: break; - case 3: - { currIndent = 0; - } - // fall through - case 67: break; - case 4: - { /* ignored */ - } - // fall through - case 68: break; - case 5: - { return symbol(ChocoPyTokens.UNRECOGNIZED); - } - // fall through - case 69: break; - case 6: - { /* ignore */ - } - // fall through - case 70: break; - case 7: - { return symbol(ChocoPyTokens.NEWLINE); yybegin(YYINITIAL); currIndent = 0; - } - // fall through - case 71: break; - case 8: - { return symbol(ChocoPyTokens.MOD); - } - // fall through - case 72: break; - case 9: - { return symbol(ChocoPyTokens.LPAR); - } - // fall through - case 73: break; - case 10: - { return symbol(ChocoPyTokens.RPAR); - } - // fall through - case 74: break; - case 11: - { return symbol(ChocoPyTokens.MUL); - } - // fall through - case 75: break; - case 12: - { return symbol(ChocoPyTokens.PLUS); - } - // fall through - case 76: break; - case 13: - { return symbol(ChocoPyTokens.COMMA); - } - // fall through - case 77: break; - case 14: - { return symbol(ChocoPyTokens.MINUS); - } - // fall through - case 78: break; - case 15: - { return symbol(ChocoPyTokens.DOT); - } - // fall through - case 79: break; - case 16: - { return symbol(ChocoPyTokens.DIV); - } - // fall through - case 80: break; - case 17: - { return symbol(ChocoPyTokens.NUMBER, - Integer.parseInt(yytext())); - } - // fall through - case 81: break; - case 18: - { return symbol(ChocoPyTokens.COLON); - } - // fall through - case 82: break; - case 19: - { return symbol(ChocoPyTokens.LT); - } - // fall through - case 83: break; - case 20: - { return symbol(ChocoPyTokens.ASSIGN); - } - // fall through - case 84: break; - case 21: - { return symbol(ChocoPyTokens.GT); - } - // fall through - case 85: break; - case 22: - { return symbol(ChocoPyTokens.NAMES, yytext()); - } - // fall through - case 86: break; - case 23: - { return symbol(ChocoPyTokens.LBR); - } - // fall through - case 87: break; - case 24: - { return symbol(ChocoPyTokens.RBR); - } - // fall through - case 88: break; - case 25: - { return symbol(ChocoPyTokens.NEQ); - } - // fall through - case 89: break; - case 26: - { return symbol(ChocoPyTokens.STRING, yytext()); - } - // fall through - case 90: break; - case 27: - { return symbol(ChocoPyTokens.ARROW); - } - // fall through - case 91: break; - case 28: - { return symbol(ChocoPyTokens.LEQ); - } - // fall through - case 92: break; - case 29: - { return symbol(ChocoPyTokens.EQUAL); - } - // fall through - case 93: break; - case 30: - { return symbol(ChocoPyTokens.GEQ); - } - // fall through - case 94: break; - case 31: - { return symbol(ChocoPyTokens.AS); - } - // fall through - case 95: break; - case 32: - { return symbol(ChocoPyTokens.IF); - } - // fall through - case 96: break; - case 33: - { return symbol(ChocoPyTokens.IN); - } - // fall through - case 97: break; - case 34: - { return symbol(ChocoPyTokens.IS); - } - // fall through - case 98: break; - case 35: - { return symbol(ChocoPyTokens.OR); - } - // fall through - case 99: break; - case 36: - { return symbol(ChocoPyTokens.AND); - } - // fall through - case 100: break; - case 37: - { return symbol(ChocoPyTokens.DEF); - } - // fall through - case 101: break; - case 38: - { return symbol(ChocoPyTokens.DEL); - } - // fall through - case 102: break; - case 39: - { return symbol(ChocoPyTokens.FOR); - } - // fall through - case 103: break; - case 40: - { return symbol(ChocoPyTokens.NOT); - } - // fall through - case 104: break; - case 41: - { return symbol(ChocoPyTokens.TRY); - } - // fall through - case 105: break; - case 42: - { return symbol(ChocoPyTokens.NONE); - } - // fall through - case 106: break; - case 43: - { return symbol(ChocoPyTokens.BOOL, true); - } - // fall through - case 107: break; - case 44: - { return symbol(ChocoPyTokens.ELIF); - } - // fall through - case 108: break; - case 45: - { return symbol(ChocoPyTokens.ELSE); - } - // fall through - case 109: break; - case 46: - { return symbol(ChocoPyTokens.FROM); - } - // fall through - case 110: break; - case 47: - { return symbol(ChocoPyTokens.PASS); - } - // fall through - case 111: break; - case 48: - { return symbol(ChocoPyTokens.WITH); - } - // fall through - case 112: break; - case 49: - { return symbol(ChocoPyTokens.BOOL, false); - } - // fall through - case 113: break; - case 50: - { return symbol(ChocoPyTokens.AWAIT); - } - // fall through - case 114: break; - case 51: - { return symbol(ChocoPyTokens.BREAK); - } - // fall through - case 115: break; - case 52: - { return symbol(ChocoPyTokens.CLASS); - } - // fall through - case 116: break; - case 53: - { return symbol(ChocoPyTokens.RAISE); - } - // fall through - case 117: break; - case 54: - { return symbol(ChocoPyTokens.WHILE); - } - // fall through - case 118: break; - case 55: - { return symbol(ChocoPyTokens.YIELD); - } - // fall through - case 119: break; - case 56: - { return symbol(ChocoPyTokens.ASSERT); - } - // fall through - case 120: break; - case 57: - { return symbol(ChocoPyTokens.EXCEPT); - } - // fall through - case 121: break; - case 58: - { return symbol(ChocoPyTokens.GLOBAL); - } - // fall through - case 122: break; - case 59: - { return symbol(ChocoPyTokens.IMPORT); - } - // fall through - case 123: break; - case 60: - { return symbol(ChocoPyTokens.LAMBDA); - } - // fall through - case 124: break; - case 61: - { return symbol(ChocoPyTokens.RETURN); - } - // fall through - case 125: break; - case 62: - { return symbol(ChocoPyTokens.FINALLY); - } - // fall through - case 126: break; - case 63: - { return symbol(ChocoPyTokens.CONTINUE); - } - // fall through - case 127: break; - case 64: - { return symbol(ChocoPyTokens.NONLOCAL); - } - // fall through - case 128: break; - default: - zzScanError(ZZ_NO_MATCH); - } - } - } - } - - /** - * Converts an int token code into the name of the - * token by reflection on the cup symbol class/interface ChocoPyTokens - */ - private static String getTokenName(int token) { - try { - java.lang.reflect.Field [] classFields = ChocoPyTokens.class.getFields(); - for (int i = 0; i < classFields.length; i++) { - if (classFields[i].getInt(null) == token) { - return classFields[i].getName(); - } - } - } catch (Exception e) { - e.printStackTrace(System.err); - } - - return "UNKNOWN TOKEN"; - } - - /** - * Same as next_token but also prints the token to standard out - * for debugging. - */ - public java_cup.runtime.Symbol debug_next_token() throws java.io.IOException { - java_cup.runtime.Symbol s = next_token(); - System.out.println( "line:" + (yyline+1) + " col:" + (yycolumn+1) + " --"+ yytext() + "--" + getTokenName(s.sym) + "--"); - return s; - } - - /** - * Runs the scanner on input files. - * - * This main method is the debugging routine for the scanner. - * It prints debugging information about each returned token to - * System.out until the end of file is reached, or an error occured. - * - * @param argv the command line, contains the filenames to run - * the scanner on. - */ - public static void main(String[] argv) { - if (argv.length == 0) { - System.out.println("Usage : java ChocoPyLexer [ --encoding ] "); - } - else { - int firstFilePos = 0; - String encodingName = "UTF-8"; - if (argv[0].equals("--encoding")) { - firstFilePos = 2; - encodingName = argv[1]; - try { - // Side-effect: is encodingName valid? - java.nio.charset.Charset.forName(encodingName); - } catch (Exception e) { - System.out.println("Invalid encoding '" + encodingName + "'"); - return; - } - } - for (int i = firstFilePos; i < argv.length; i++) { - ChocoPyLexer scanner = null; - try { - java.io.FileInputStream stream = new java.io.FileInputStream(argv[i]); - java.io.Reader reader = new java.io.InputStreamReader(stream, encodingName); - scanner = new ChocoPyLexer(reader); - while ( !scanner.zzAtEOF ) scanner.debug_next_token(); - } - catch (java.io.FileNotFoundException e) { - System.out.println("File not found : \""+argv[i]+"\""); - } - catch (java.io.IOException e) { - System.out.println("IO error scanning file \""+argv[i]+"\""); - System.out.println(e); - } - catch (Exception e) { - System.out.println("Unexpected exception:"); - e.printStackTrace(); - } - } - } - } - - -} From 62330bd2370d572325a28b06f9b53b838e659371 Mon Sep 17 00:00:00 2001 From: bill Date: Thu, 18 Feb 2021 00:07:18 +0800 Subject: [PATCH 07/52] Fixed some typos, added comments. --- .gitignore | 3 + src/main/jflex/chocopy/pa1/ChocoPy.jflex | 79 +++++++++++++++++------- 2 files changed, 60 insertions(+), 22 deletions(-) diff --git a/.gitignore b/.gitignore index 21cc758..987fe16 100644 --- a/.gitignore +++ b/.gitignore @@ -147,3 +147,6 @@ tramp Session.vim .netrwhist *~ + +# JFlex +src/main/jflex/chocopy/pa1/ChocoPyLexer.java diff --git a/src/main/jflex/chocopy/pa1/ChocoPy.jflex b/src/main/jflex/chocopy/pa1/ChocoPy.jflex index d7640a7..24c0328 100644 --- a/src/main/jflex/chocopy/pa1/ChocoPy.jflex +++ b/src/main/jflex/chocopy/pa1/ChocoPy.jflex @@ -32,9 +32,10 @@ import java.util.ArrayList; /** Producer of token-related values for the parser. */ final ComplexSymbolFactory symbolFactory = new ComplexSymbolFactory(); - private int currIndent = 0; + private int currIndent = 0; //Current Indentation Level private int currString = ""; - private ArrayList stack = new ArrayList(20); + /*A stack that keeps track of the spaces in each Indentation Level*/ + private ArrayList stack = new ArrayList(20); /** Return a terminal symbol of syntactic category TYPE and no * semantic value at the current source location. */ private Symbol symbol(int type) { @@ -57,7 +58,7 @@ import java.util.ArrayList; return stack.remove(stack.size() - 1); } private int top(){ - if(stack.isEmpty) return 0; + if(stack.isEmpty()) return 0; return stack.get(stack.size() - 1); } %} @@ -67,39 +68,74 @@ import java.util.ArrayList; WhiteSpace = [ \t] LineBreak = \r|\n|\r\n -IntegerLiteral = 0|[1-9][0-9]* -StringLiteral = ([^\"\\]|(\\\")|(\\t)|(\\r)|(\\n)|(\\\\))* -Names = (_|[a-z]|[A-Z])(_|[a-z]|[A-Z])* +IntegerLiteral = 0|[1-9][0-9]* // Accroding to the manual, 00+ is illeagal +StringLiteral = ([^\"\\]|(\\\")|(\\t)|(\\r)|(\\n)|(\\\\))* // \n, \r, \t, \\, \" and Anything except \ and " +Identifiers = (_|[a-z]|[A-Z])(_|[a-z]|[A-Z][0-9])* Comments = #[^\r\n]* %% { {WhiteSpace} { - String space = yytext(); - if(space == "\t") - currIndent += 8; + /*Add indentation */ + if(yytext() == "\t") + currIndent += 8; //'\t' = 8 spaces else currIndent ++; } - {LineBreak} +/* +# This python code will test if '\t' is 8 spaces +# It will run and print '1\n2' +# Please tell me if your Python reports an error +# Or you find documentations that says otherwise + +if True: + print(1) # \t + print(2) # 8 spaces +*/ + + {LineBreak} { + /* + If this is a blank line, start over on the next line. + An empty line should just be ignored, therefore we don't + pass a NEWLINE to Cup. + */ currIndent = 0; } - {Comments} { /* ignored */ } - [^ \t\r\n#] + {Comments} { /* ignored */ } //Ignore blank lines + + /*If it's not a blank line (Current character isn't a + Whitespace/linebreak/comment), deal with indentation here and + start accepting whatever is on this line in `AFTER' state*/ + [^ \t\r\n#] { + //rewind the current character. yypushback(1); if(top() > currIndent) - { + { + /* + If the indentation of the line < indents current level should have, + keep dedenting until it reaches the right level. + It's like a loop, because we're not changing the state + and we rewinded the current character. So it will keep + going until top()<= currIndent and it will switch to + AFTER state. + */ pop(); - return symbol(ChocoPyTokens.DEDENT); + return symbol(ChocoPyTokens.DEDENT, currIndent); } + /*Otherwise, we will start dealing with the rest + of the line after indentation in from the next token.*/ yystart(AFTER); if(top()< currIndent) - { + { + /* + If current indentation > indents current level should have, + start a new level which will have `currIndent' spaces. + */ push(currIndent); - return symbol(ChocoPyTokens.INDENT); + return symbol(ChocoPyTokens.INDENT, currIndent); } } } @@ -113,8 +149,7 @@ Comments = #[^\r\n]* /* Literals. */ {IntegerLiteral} { return symbol(ChocoPyTokens.NUMBER, Integer.parseInt(yytext())); } -// {StringLiteral} { return symbol(ChocoPyTokens.STRING, yytext());} - "\"" {yystart(STR); currString = "";} + "\"" {yystart(STR); currString = "";} //Start taking a string when see a " "False" { return symbol(ChocoPyTokens.BOOL, false); } "True" { return symbol(ChocoPyTokens.BOOL, true); } "None" { return symbol(ChocoPyTokens.NONE); } @@ -154,7 +189,7 @@ Comments = #[^\r\n]* "-" { return symbol(ChocoPyTokens.MINUS); } "*" { return symbol(ChocoPyTokens.MUL); } "//" { return symbol(ChocoPyTokens.DIV); } - "/" { return symbol(ChocoPyTokens.DIV); } + "/" { return symbol(ChocoPyTokens.DIV); } //Accroding to manual, chocopy don't have fp division, '/', '//' should be integr division "%" { return symbol(ChocoPyTokens.MOD); } ">" { return symbol(ChocoPyTokens.GT); } "<" { return symbol(ChocoPyTokens.LT); } @@ -176,16 +211,16 @@ Comments = #[^\r\n]* /*Identifiers*/ - {Names} {return symbol(ChocoPyTokens.NAMES, yytext());} + {Identifiers} {return symbol(ChocoPyTokens.ID, yytext());} /* Whitespace. */ {WhiteSpace} { /* ignore */ } /* Comment. */ {Comments} { /* ignore */ } } { - {StringLiteral} {currString+=yytext();} + {StringLiteral} {currString += yytext();} \\$ { /*'\' at the end of line, do nothing.*/ } - "\"" {yybegin(AFTER); return symbol(ChocoPyTokens.STRING, currString);} + "\"" {yybegin(AFTER); return symbol(ChocoPyTokens.STRING, currString);} // accepted a ", return to AFTER state } <> { return symbol(ChocoPyTokens.EOF); } From d5097498b7b103865f919305ba4a32f651d7e594 Mon Sep 17 00:00:00 2001 From: bill Date: Thu, 18 Feb 2021 00:27:21 +0800 Subject: [PATCH 08/52] more comments --- src/main/jflex/chocopy/pa1/ChocoPy.jflex | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/src/main/jflex/chocopy/pa1/ChocoPy.jflex b/src/main/jflex/chocopy/pa1/ChocoPy.jflex index 24c0328..dc0677f 100644 --- a/src/main/jflex/chocopy/pa1/ChocoPy.jflex +++ b/src/main/jflex/chocopy/pa1/ChocoPy.jflex @@ -50,6 +50,7 @@ import java.util.ArrayList; new ComplexSymbolFactory.Location(yyline + 1,yycolumn + yylength()), value); } + private void push(int indent){ stack.add(indent); } @@ -73,7 +74,15 @@ StringLiteral = ([^\"\\]|(\\\")|(\\t)|(\\r)|(\\n)|(\\\\))* // \n, \r, \t, \\, \" Identifiers = (_|[a-z]|[A-Z])(_|[a-z]|[A-Z][0-9])* Comments = #[^\r\n]* %% - +//YYINITIAL state is where we're dealing with indentations. +//We will set the state to YYINITIAL when starting a +//new line unless this line is within a string, e.g.: +/* +"this is \ +a string across \ +multiple lines\ +" +*/ { {WhiteSpace} { @@ -115,8 +124,10 @@ if True: if(top() > currIndent) { /* - If the indentation of the line < indents current level should have, - keep dedenting until it reaches the right level. + If the indentation of the line is less than number of + indents current level should have, + keep dedenting until it reaches the level with the same + number of indents. It's like a loop, because we're not changing the state and we rewinded the current character. So it will keep going until top()<= currIndent and it will switch to @@ -126,12 +137,12 @@ if True: return symbol(ChocoPyTokens.DEDENT, currIndent); } /*Otherwise, we will start dealing with the rest - of the line after indentation in from the next token.*/ + of the line after indentation in AFTER state. */ yystart(AFTER); if(top()< currIndent) { /* - If current indentation > indents current level should have, + If current indentation is more than indents current level should have, start a new level which will have `currIndent' spaces. */ push(currIndent); From ecb8d23418dd389b5160205022981e36b2c54425 Mon Sep 17 00:00:00 2001 From: bill Date: Thu, 18 Feb 2021 00:36:30 +0800 Subject: [PATCH 09/52] bug fixes --- src/main/jflex/chocopy/pa1/ChocoPy.jflex | 8 +- src/main/jflex/chocopy/pa1/ChocoPyLexer.java | 1287 ------------------ 2 files changed, 4 insertions(+), 1291 deletions(-) delete mode 100644 src/main/jflex/chocopy/pa1/ChocoPyLexer.java diff --git a/src/main/jflex/chocopy/pa1/ChocoPy.jflex b/src/main/jflex/chocopy/pa1/ChocoPy.jflex index dc0677f..ccb7187 100644 --- a/src/main/jflex/chocopy/pa1/ChocoPy.jflex +++ b/src/main/jflex/chocopy/pa1/ChocoPy.jflex @@ -33,7 +33,7 @@ import java.util.ArrayList; /** Producer of token-related values for the parser. */ final ComplexSymbolFactory symbolFactory = new ComplexSymbolFactory(); private int currIndent = 0; //Current Indentation Level - private int currString = ""; + private String currString = ""; /*A stack that keeps track of the spaces in each Indentation Level*/ private ArrayList stack = new ArrayList(20); /** Return a terminal symbol of syntactic category TYPE and no @@ -70,7 +70,7 @@ WhiteSpace = [ \t] LineBreak = \r|\n|\r\n IntegerLiteral = 0|[1-9][0-9]* // Accroding to the manual, 00+ is illeagal -StringLiteral = ([^\"\\]|(\\\")|(\\t)|(\\r)|(\\n)|(\\\\))* // \n, \r, \t, \\, \" and Anything except \ and " +StringLiteral = ([^\"\\]|(\\\")|(\\t)|(\\r)|(\\n)|(\\\\))+ // \n, \r, \t, \\, \" and Anything except \ and " Identifiers = (_|[a-z]|[A-Z])(_|[a-z]|[A-Z][0-9])* Comments = #[^\r\n]* %% @@ -138,7 +138,7 @@ if True: } /*Otherwise, we will start dealing with the rest of the line after indentation in AFTER state. */ - yystart(AFTER); + yybegin(AFTER); if(top()< currIndent) { /* @@ -160,7 +160,7 @@ if True: /* Literals. */ {IntegerLiteral} { return symbol(ChocoPyTokens.NUMBER, Integer.parseInt(yytext())); } - "\"" {yystart(STR); currString = "";} //Start taking a string when see a " + "\"" {yybegin(STR); currString = "";} //Start taking a string when see a " "False" { return symbol(ChocoPyTokens.BOOL, false); } "True" { return symbol(ChocoPyTokens.BOOL, true); } "None" { return symbol(ChocoPyTokens.NONE); } diff --git a/src/main/jflex/chocopy/pa1/ChocoPyLexer.java b/src/main/jflex/chocopy/pa1/ChocoPyLexer.java deleted file mode 100644 index ac26ed7..0000000 --- a/src/main/jflex/chocopy/pa1/ChocoPyLexer.java +++ /dev/null @@ -1,1287 +0,0 @@ -// DO NOT EDIT -// Generated by JFlex 1.8.2 http://jflex.de/ -// source: ChocoPy.jflex - -package chocopy.pa1; -import java_cup.runtime.*; -import java.util.ArrayList; - -// See https://github.com/jflex-de/jflex/issues/222 -@SuppressWarnings("FallThrough") -public class ChocoPyLexer implements java_cup.runtime.Scanner { - - /** This character denotes the end of file. */ - public static final int YYEOF = -1; - - /** Initial size of the lookahead buffer. */ - private static final int ZZ_BUFFERSIZE = 16384; - - // Lexical states. - public static final int YYINITIAL = 0; - public static final int AFTER = 2; - public static final int STR = 4; - - /** - * ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l - * ZZ_LEXSTATE[l+1] is the state in the DFA for the lexical state l - * at the beginning of a line - * l is of the form l = 2*k, k a non negative integer - */ - private static final int ZZ_LEXSTATE[] = { - 0, 0, 1, 1, 2, 2 - }; - - /** - * Top-level table for translating characters to character classes - */ - private static final int [] ZZ_CMAP_TOP = zzUnpackcmap_top(); - - private static final String ZZ_CMAP_TOP_PACKED_0 = - "\1\0\37\u0100\1\u0200\u10df\u0100"; - - private static int [] zzUnpackcmap_top() { - int [] result = new int[4352]; - int offset = 0; - offset = zzUnpackcmap_top(ZZ_CMAP_TOP_PACKED_0, offset, result); - return result; - } - - private static int zzUnpackcmap_top(String packed, int offset, int [] result) { - int i = 0; /* index in packed string */ - int j = offset; /* index in unpacked array */ - int l = packed.length(); - while (i < l) { - int count = packed.charAt(i++); - int value = packed.charAt(i++); - do result[j++] = value; while (--count > 0); - } - return j; - } - - - /** - * Second-level tables for translating characters to character classes - */ - private static final int [] ZZ_CMAP_BLOCKS = zzUnpackcmap_blocks(); - - private static final String ZZ_CMAP_BLOCKS_PACKED_0 = - "\11\0\1\1\1\2\2\3\1\4\22\0\1\1\1\5"+ - "\1\6\1\7\1\0\1\10\2\0\1\11\1\12\1\13"+ - "\1\14\1\15\1\16\1\17\1\20\1\21\11\22\1\23"+ - "\1\0\1\24\1\25\1\26\2\0\5\27\1\30\7\27"+ - "\1\31\5\27\1\32\6\27\1\33\1\34\1\35\1\0"+ - "\1\27\1\0\1\36\1\37\1\40\1\41\1\42\1\43"+ - "\1\44\1\45\1\46\1\27\1\47\1\50\1\51\1\52"+ - "\1\53\1\54\1\27\1\55\1\56\1\57\1\60\1\27"+ - "\1\61\1\62\1\63\1\27\12\0\1\3\u01a2\0\2\3"+ - "\326\0"; - - private static int [] zzUnpackcmap_blocks() { - int [] result = new int[768]; - int offset = 0; - offset = zzUnpackcmap_blocks(ZZ_CMAP_BLOCKS_PACKED_0, offset, result); - return result; - } - - private static int zzUnpackcmap_blocks(String packed, int offset, int [] result) { - int i = 0; /* index in packed string */ - int j = offset; /* index in unpacked array */ - int l = packed.length(); - while (i < l) { - int count = packed.charAt(i++); - int value = packed.charAt(i++); - do result[j++] = value; while (--count > 0); - } - return j; - } - - /** - * Translates DFA states to action switch labels. - */ - private static final int [] ZZ_ACTION = zzUnpackAction(); - - private static final String ZZ_ACTION_PACKED_0 = - "\2\0\1\1\1\2\1\3\2\4\1\5\1\6\1\7"+ - "\2\10\1\6\1\11\1\7\1\12\1\13\1\14\1\15"+ - "\1\16\1\17\1\20\1\21\1\22\2\23\1\24\1\25"+ - "\1\26\1\27\4\30\1\31\1\32\20\30\1\1\1\33"+ - "\1\6\1\34\1\35\1\22\1\36\1\37\1\40\4\30"+ - "\1\41\13\30\1\42\1\30\1\43\1\44\2\30\1\45"+ - "\7\30\1\0\2\46\3\30\1\47\5\30\1\50\1\51"+ - "\4\30\1\52\5\30\1\53\3\30\1\54\4\30\1\55"+ - "\1\56\5\30\1\57\1\60\2\30\1\61\4\30\1\62"+ - "\3\30\1\63\1\30\1\64\1\30\1\65\1\66\1\67"+ - "\7\30\1\70\1\30\1\71\1\72\1\73\1\30\1\74"+ - "\1\30\1\75\1\76\1\77\1\30\1\100\1\30\1\101"+ - "\1\30\1\102\1\103"; - - private static int [] zzUnpackAction() { - int [] result = new int[176]; - int offset = 0; - offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); - return result; - } - - private static int zzUnpackAction(String packed, int offset, int [] result) { - int i = 0; /* index in packed string */ - int j = offset; /* index in unpacked array */ - int l = packed.length(); - while (i < l) { - int count = packed.charAt(i++); - int value = packed.charAt(i++); - do result[j++] = value; while (--count > 0); - } - return j; - } - - - /** - * Translates a state to a row index in the transition table - */ - private static final int [] ZZ_ROWMAP = zzUnpackRowMap(); - - private static final String ZZ_ROWMAP_PACKED_0 = - "\0\0\0\64\0\150\0\234\0\234\0\234\0\320\0\u0104"+ - "\0\234\0\234\0\234\0\u0138\0\u016c\0\234\0\u01a0\0\234"+ - "\0\234\0\234\0\234\0\234\0\234\0\u01d4\0\234\0\u0208"+ - "\0\234\0\u023c\0\234\0\u0270\0\u02a4\0\u02d8\0\u030c\0\u0340"+ - "\0\u0374\0\u03a8\0\234\0\234\0\u03dc\0\u0410\0\u0444\0\u0478"+ - "\0\u04ac\0\u04e0\0\u0514\0\u0548\0\u057c\0\u05b0\0\u05e4\0\u0618"+ - "\0\u064c\0\u0680\0\u06b4\0\u06e8\0\u071c\0\234\0\u0750\0\234"+ - "\0\234\0\234\0\234\0\234\0\234\0\u0784\0\u07b8\0\u07ec"+ - "\0\u0820\0\u0854\0\u0888\0\u08bc\0\u08f0\0\u0924\0\u0958\0\u098c"+ - "\0\u09c0\0\u09f4\0\u0a28\0\u0a5c\0\u0a90\0\u030c\0\u0ac4\0\u030c"+ - "\0\u030c\0\u0af8\0\u0b2c\0\u030c\0\u0b60\0\u0b94\0\u0bc8\0\u0bfc"+ - "\0\u0c30\0\u0c64\0\u0c98\0\u0ccc\0\234\0\u0d00\0\u0d34\0\u0d68"+ - "\0\u0d9c\0\u030c\0\u0dd0\0\u0e04\0\u0e38\0\u0e6c\0\u0ea0\0\u030c"+ - "\0\u030c\0\u0ed4\0\u0f08\0\u0f3c\0\u0f70\0\u030c\0\u0fa4\0\u0fd8"+ - "\0\u100c\0\u1040\0\u1074\0\u030c\0\u10a8\0\u10dc\0\u1110\0\u030c"+ - "\0\u1144\0\u1178\0\u11ac\0\u11e0\0\u030c\0\u030c\0\u1214\0\u1248"+ - "\0\u127c\0\u12b0\0\u12e4\0\u030c\0\u030c\0\u1318\0\u134c\0\u030c"+ - "\0\u1380\0\u13b4\0\u13e8\0\u141c\0\u030c\0\u1450\0\u1484\0\u14b8"+ - "\0\u030c\0\u14ec\0\u030c\0\u1520\0\u030c\0\u030c\0\u030c\0\u1554"+ - "\0\u1588\0\u15bc\0\u15f0\0\u1624\0\u1658\0\u168c\0\u030c\0\u16c0"+ - "\0\u030c\0\u030c\0\u030c\0\u16f4\0\u030c\0\u1728\0\u030c\0\u030c"+ - "\0\u030c\0\u175c\0\u030c\0\u1790\0\u030c\0\u17c4\0\u030c\0\u030c"; - - private static int [] zzUnpackRowMap() { - int [] result = new int[176]; - int offset = 0; - offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result); - return result; - } - - private static int zzUnpackRowMap(String packed, int offset, int [] result) { - int i = 0; /* index in packed string */ - int j = offset; /* index in unpacked array */ - int l = packed.length(); - while (i < l) { - int high = packed.charAt(i++) << 16; - result[j++] = high | packed.charAt(i++); - } - return j; - } - - /** - * The transition table of the DFA - */ - private static final int [] ZZ_TRANS = zzUnpackTrans(); - - private static final String ZZ_TRANS_PACKED_0 = - "\1\4\1\5\1\6\1\4\1\7\2\4\1\10\54\4"+ - "\1\11\1\12\1\13\1\11\1\14\1\15\1\16\1\17"+ - "\1\20\1\21\1\22\1\23\1\24\1\25\1\26\1\27"+ - "\1\30\1\31\1\32\1\33\1\34\1\35\1\36\1\37"+ - "\1\40\1\41\1\42\1\43\1\11\1\44\1\45\1\46"+ - "\1\47\1\50\1\51\1\52\1\53\1\37\1\54\1\37"+ - "\1\55\1\37\1\56\1\57\1\60\1\61\1\37\1\62"+ - "\1\37\1\63\1\37\1\64\6\65\1\66\25\65\1\67"+ - "\27\65\66\0\1\6\61\0\2\10\1\0\1\10\1\0"+ - "\57\10\2\0\1\13\106\0\1\70\36\0\2\17\1\0"+ - "\1\17\1\0\57\17\26\0\1\71\55\0\1\72\64\0"+ - "\2\32\66\0\1\73\63\0\1\74\63\0\1\75\65\0"+ - "\4\37\3\0\26\37\27\0\4\37\3\0\1\76\25\37"+ - "\27\0\4\37\3\0\15\37\1\77\10\37\27\0\4\37"+ - "\3\0\17\37\1\100\6\37\27\0\4\37\3\0\14\37"+ - "\1\101\3\37\1\102\2\37\1\103\2\37\27\0\4\37"+ - "\3\0\17\37\1\104\6\37\27\0\4\37\3\0\12\37"+ - "\1\105\2\37\1\106\10\37\27\0\4\37\3\0\4\37"+ - "\1\107\21\37\27\0\4\37\3\0\12\37\1\110\11\37"+ - "\1\111\1\37\27\0\4\37\3\0\10\37\1\112\4\37"+ - "\1\113\1\37\1\114\6\37\27\0\4\37\3\0\12\37"+ - "\1\115\13\37\27\0\4\37\3\0\5\37\1\116\5\37"+ - "\1\117\1\120\3\37\1\121\5\37\27\0\4\37\3\0"+ - "\1\122\25\37\27\0\4\37\3\0\15\37\1\123\10\37"+ - "\27\0\4\37\3\0\17\37\1\124\6\37\27\0\4\37"+ - "\3\0\1\125\25\37\27\0\4\37\3\0\1\126\3\37"+ - "\1\127\21\37\27\0\4\37\3\0\17\37\1\130\6\37"+ - "\27\0\4\37\3\0\7\37\1\131\1\132\15\37\27\0"+ - "\4\37\3\0\10\37\1\133\15\37\6\65\1\0\25\65"+ - "\1\134\27\65\2\0\2\135\1\136\1\0\1\65\25\0"+ - "\1\65\15\0\1\65\2\0\1\65\1\0\1\65\33\0"+ - "\4\37\3\0\12\37\1\137\13\37\27\0\4\37\3\0"+ - "\14\37\1\140\11\37\27\0\4\37\3\0\22\37\1\141"+ - "\3\37\27\0\4\37\3\0\3\37\1\142\22\37\27\0"+ - "\4\37\3\0\20\37\1\143\5\37\27\0\4\37\3\0"+ - "\1\144\25\37\27\0\4\37\3\0\4\37\1\145\21\37"+ - "\27\0\4\37\3\0\1\146\25\37\27\0\4\37\3\0"+ - "\14\37\1\147\11\37\27\0\4\37\3\0\5\37\1\150"+ - "\4\37\1\151\13\37\27\0\4\37\3\0\10\37\1\152"+ - "\7\37\1\153\5\37\27\0\4\37\3\0\2\37\1\154"+ - "\23\37\27\0\4\37\3\0\14\37\1\155\11\37\27\0"+ - "\4\37\3\0\17\37\1\156\6\37\27\0\4\37\3\0"+ - "\15\37\1\157\10\37\27\0\4\37\3\0\15\37\1\160"+ - "\10\37\27\0\4\37\3\0\16\37\1\161\7\37\27\0"+ - "\4\37\3\0\13\37\1\162\12\37\27\0\4\37\3\0"+ - "\14\37\1\163\4\37\1\164\4\37\27\0\4\37\3\0"+ - "\20\37\1\165\5\37\27\0\4\37\3\0\10\37\1\166"+ - "\15\37\27\0\4\37\3\0\21\37\1\167\4\37\27\0"+ - "\4\37\3\0\25\37\1\170\27\0\4\37\3\0\10\37"+ - "\1\171\15\37\27\0\4\37\3\0\21\37\1\172\4\37"+ - "\27\0\4\37\3\0\4\37\1\173\21\37\6\0\1\65"+ - "\25\0\1\65\15\0\1\65\2\0\1\65\1\0\1\65"+ - "\6\0\1\135\110\0\4\37\3\0\20\37\1\174\5\37"+ - "\27\0\4\37\3\0\4\37\1\175\21\37\27\0\4\37"+ - "\3\0\4\37\1\176\21\37\27\0\4\37\3\0\4\37"+ - "\1\177\21\37\27\0\4\37\3\0\10\37\1\200\15\37"+ - "\27\0\4\37\3\0\1\201\25\37\27\0\4\37\3\0"+ - "\20\37\1\202\5\37\27\0\4\37\3\0\21\37\1\203"+ - "\4\37\27\0\4\37\3\0\5\37\1\204\20\37\27\0"+ - "\4\37\3\0\4\37\1\205\21\37\27\0\4\37\3\0"+ - "\4\37\1\206\21\37\27\0\4\37\3\0\1\207\25\37"+ - "\27\0\4\37\3\0\13\37\1\210\12\37\27\0\4\37"+ - "\3\0\1\37\1\211\24\37\27\0\4\37\3\0\15\37"+ - "\1\212\10\37\27\0\4\37\3\0\1\37\1\213\24\37"+ - "\27\0\4\37\3\0\12\37\1\214\13\37\27\0\4\37"+ - "\3\0\20\37\1\215\5\37\27\0\4\37\3\0\20\37"+ - "\1\216\5\37\27\0\4\37\3\0\22\37\1\217\3\37"+ - "\27\0\4\37\3\0\12\37\1\220\13\37\27\0\4\37"+ - "\3\0\7\37\1\221\16\37\27\0\4\37\3\0\12\37"+ - "\1\222\13\37\27\0\4\37\3\0\4\37\1\223\21\37"+ - "\27\0\4\37\3\0\17\37\1\224\6\37\27\0\4\37"+ - "\3\0\21\37\1\225\4\37\27\0\4\37\3\0\11\37"+ - "\1\226\14\37\27\0\4\37\3\0\20\37\1\227\5\37"+ - "\27\0\4\37\3\0\10\37\1\230\15\37\27\0\4\37"+ - "\3\0\16\37\1\231\7\37\27\0\4\37\3\0\12\37"+ - "\1\232\13\37\27\0\4\37\3\0\1\233\25\37\27\0"+ - "\4\37\3\0\17\37\1\234\6\37\27\0\4\37\3\0"+ - "\3\37\1\235\22\37\27\0\4\37\3\0\15\37\1\236"+ - "\10\37\27\0\4\37\3\0\4\37\1\237\21\37\27\0"+ - "\4\37\3\0\17\37\1\240\6\37\27\0\4\37\3\0"+ - "\4\37\1\241\21\37\27\0\4\37\3\0\3\37\1\242"+ - "\22\37\27\0\4\37\3\0\21\37\1\243\4\37\27\0"+ - "\4\37\3\0\14\37\1\244\11\37\27\0\4\37\3\0"+ - "\21\37\1\245\4\37\27\0\4\37\3\0\12\37\1\246"+ - "\13\37\27\0\4\37\3\0\12\37\1\247\13\37\27\0"+ - "\4\37\3\0\21\37\1\250\4\37\27\0\4\37\3\0"+ - "\1\251\25\37\27\0\4\37\3\0\2\37\1\252\23\37"+ - "\27\0\4\37\3\0\14\37\1\253\11\37\27\0\4\37"+ - "\3\0\22\37\1\254\3\37\27\0\4\37\3\0\25\37"+ - "\1\255\27\0\4\37\3\0\1\256\25\37\27\0\4\37"+ - "\3\0\4\37\1\257\21\37\27\0\4\37\3\0\12\37"+ - "\1\260\13\37"; - - private static int [] zzUnpackTrans() { - int [] result = new int[6136]; - int offset = 0; - offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result); - return result; - } - - private static int zzUnpackTrans(String packed, int offset, int [] result) { - int i = 0; /* index in packed string */ - int j = offset; /* index in unpacked array */ - int l = packed.length(); - while (i < l) { - int count = packed.charAt(i++); - int value = packed.charAt(i++); - value--; - do result[j++] = value; while (--count > 0); - } - return j; - } - - - /** Error code for "Unknown internal scanner error". */ - private static final int ZZ_UNKNOWN_ERROR = 0; - /** Error code for "could not match input". */ - private static final int ZZ_NO_MATCH = 1; - /** Error code for "pushback value was too large". */ - private static final int ZZ_PUSHBACK_2BIG = 2; - - /** - * Error messages for {@link #ZZ_UNKNOWN_ERROR}, {@link #ZZ_NO_MATCH}, and - * {@link #ZZ_PUSHBACK_2BIG} respectively. - */ - private static final String ZZ_ERROR_MSG[] = { - "Unknown internal scanner error", - "Error: could not match input", - "Error: pushback value was too large" - }; - - /** - * ZZ_ATTRIBUTE[aState] contains the attributes of state {@code aState} - */ - private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute(); - - private static final String ZZ_ATTRIBUTE_PACKED_0 = - "\2\0\1\1\3\11\2\1\3\11\2\1\1\11\1\1"+ - "\6\11\1\1\1\11\1\1\1\11\1\1\1\11\7\1"+ - "\2\11\21\1\1\11\1\1\6\11\36\1\1\0\1\11"+ - "\123\1"; - - private static int [] zzUnpackAttribute() { - int [] result = new int[176]; - int offset = 0; - offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result); - return result; - } - - private static int zzUnpackAttribute(String packed, int offset, int [] result) { - int i = 0; /* index in packed string */ - int j = offset; /* index in unpacked array */ - int l = packed.length(); - while (i < l) { - int count = packed.charAt(i++); - int value = packed.charAt(i++); - do result[j++] = value; while (--count > 0); - } - return j; - } - - /** Input device. */ - private java.io.Reader zzReader; - - /** Current state of the DFA. */ - private int zzState; - - /** Current lexical state. */ - private int zzLexicalState = YYINITIAL; - - /** - * This buffer contains the current text to be matched and is the source of the {@link #yytext()} - * string. - */ - private char zzBuffer[] = new char[ZZ_BUFFERSIZE]; - - /** Text position at the last accepting state. */ - private int zzMarkedPos; - - /** Current text position in the buffer. */ - private int zzCurrentPos; - - /** Marks the beginning of the {@link #yytext()} string in the buffer. */ - private int zzStartRead; - - /** Marks the last character in the buffer, that has been read from input. */ - private int zzEndRead; - - /** - * Whether the scanner is at the end of file. - * @see #yyatEOF - */ - private boolean zzAtEOF; - - /** - * The number of occupied positions in {@link #zzBuffer} beyond {@link #zzEndRead}. - * - *

When a lead/high surrogate has been read from the input stream into the final - * {@link #zzBuffer} position, this will have a value of 1; otherwise, it will have a value of 0. - */ - private int zzFinalHighSurrogate = 0; - - /** Number of newlines encountered up to the start of the matched text. */ - private int yyline; - - /** Number of characters from the last newline up to the start of the matched text. */ - private int yycolumn; - - /** Number of characters up to the start of the matched text. */ - @SuppressWarnings("unused") - private long yychar; - - /** Whether the scanner is currently at the beginning of a line. */ - @SuppressWarnings("unused") - private boolean zzAtBOL = true; - - /** Whether the user-EOF-code has already been executed. */ - @SuppressWarnings("unused") - private boolean zzEOFDone; - - /* user code: */ - /* The code below includes some convenience methods to create tokens - * of a given type and optionally a value that the CUP parser can - * understand. Specifically, a lot of the logic below deals with - * embedded information about where in the source code a given token - * was recognized, so that the parser can report errors accurately. - * (It need not be modified for this project.) */ - - /** Producer of token-related values for the parser. */ - final ComplexSymbolFactory symbolFactory = new ComplexSymbolFactory(); - private int currIndent = 0; - private int currString = ""; - private ArrayList stack = new ArrayList(20); - /** Return a terminal symbol of syntactic category TYPE and no - * semantic value at the current source location. */ - private Symbol symbol(int type) { - return symbol(type); - } - - /** Return a terminal symbol of syntactic category TYPE and semantic - * value VALUE at the current source location. */ - private Symbol symbol(int type, Object value) { - return symbolFactory.newSymbol(ChocoPyTokens.terminalNames[type], type, - new ComplexSymbolFactory.Location(yyline + 1, yycolumn + 1), - new ComplexSymbolFactory.Location(yyline + 1,yycolumn + yylength()), - value); - } - private void push(int indent){ - stack.add(indent); - } - private int pop(){ - if(stack.isEmpty()) return 0; - return stack.remove(stack.size() - 1); - } - private int top(){ - if(stack.isEmpty) return 0; - return stack.get(stack.size() - 1); - } - - - /** - * Creates a new scanner - * - * @param in the java.io.Reader to read input from. - */ - public ChocoPyLexer(java.io.Reader in) { - this.zzReader = in; - } - - /** - * Translates raw input code points to DFA table row - */ - private static int zzCMap(int input) { - int offset = input & 255; - return offset == input ? ZZ_CMAP_BLOCKS[offset] : ZZ_CMAP_BLOCKS[ZZ_CMAP_TOP[input >> 8] | offset]; - } - - /** - * Refills the input buffer. - * - * @return {@code false} iff there was new input. - * @exception java.io.IOException if any I/O-Error occurs - */ - private boolean zzRefill() throws java.io.IOException { - - /* first: make room (if you can) */ - if (zzStartRead > 0) { - zzEndRead += zzFinalHighSurrogate; - zzFinalHighSurrogate = 0; - System.arraycopy(zzBuffer, zzStartRead, - zzBuffer, 0, - zzEndRead - zzStartRead); - - /* translate stored positions */ - zzEndRead -= zzStartRead; - zzCurrentPos -= zzStartRead; - zzMarkedPos -= zzStartRead; - zzStartRead = 0; - } - - /* is the buffer big enough? */ - if (zzCurrentPos >= zzBuffer.length - zzFinalHighSurrogate) { - /* if not: blow it up */ - char newBuffer[] = new char[zzBuffer.length * 2]; - System.arraycopy(zzBuffer, 0, newBuffer, 0, zzBuffer.length); - zzBuffer = newBuffer; - zzEndRead += zzFinalHighSurrogate; - zzFinalHighSurrogate = 0; - } - - /* fill the buffer with new input */ - int requested = zzBuffer.length - zzEndRead; - int numRead = zzReader.read(zzBuffer, zzEndRead, requested); - - /* not supposed to occur according to specification of java.io.Reader */ - if (numRead == 0) { - throw new java.io.IOException( - "Reader returned 0 characters. See JFlex examples/zero-reader for a workaround."); - } - if (numRead > 0) { - zzEndRead += numRead; - if (Character.isHighSurrogate(zzBuffer[zzEndRead - 1])) { - if (numRead == requested) { // We requested too few chars to encode a full Unicode character - --zzEndRead; - zzFinalHighSurrogate = 1; - } else { // There is room in the buffer for at least one more char - int c = zzReader.read(); // Expecting to read a paired low surrogate char - if (c == -1) { - return true; - } else { - zzBuffer[zzEndRead++] = (char)c; - } - } - } - /* potentially more input available */ - return false; - } - - /* numRead < 0 ==> end of stream */ - return true; - } - - - /** - * Closes the input reader. - * - * @throws java.io.IOException if the reader could not be closed. - */ - public final void yyclose() throws java.io.IOException { - zzAtEOF = true; // indicate end of file - zzEndRead = zzStartRead; // invalidate buffer - - if (zzReader != null) { - zzReader.close(); - } - } - - - /** - * Resets the scanner to read from a new input stream. - * - *

Does not close the old reader. - * - *

All internal variables are reset, the old input stream cannot be reused (internal - * buffer is discarded and lost). Lexical state is set to {@code ZZ_INITIAL}. - * - *

Internal scan buffer is resized down to its initial length, if it has grown. - * - * @param reader The new input stream. - */ - public final void yyreset(java.io.Reader reader) { - zzReader = reader; - zzEOFDone = false; - yyResetPosition(); - zzLexicalState = YYINITIAL; - if (zzBuffer.length > ZZ_BUFFERSIZE) { - zzBuffer = new char[ZZ_BUFFERSIZE]; - } - } - - /** - * Resets the input position. - */ - private final void yyResetPosition() { - zzAtBOL = true; - zzAtEOF = false; - zzCurrentPos = 0; - zzMarkedPos = 0; - zzStartRead = 0; - zzEndRead = 0; - zzFinalHighSurrogate = 0; - yyline = 0; - yycolumn = 0; - yychar = 0L; - } - - - /** - * Returns whether the scanner has reached the end of the reader it reads from. - * - * @return whether the scanner has reached EOF. - */ - public final boolean yyatEOF() { - return zzAtEOF; - } - - - /** - * Returns the current lexical state. - * - * @return the current lexical state. - */ - public final int yystate() { - return zzLexicalState; - } - - - /** - * Enters a new lexical state. - * - * @param newState the new lexical state - */ - public final void yybegin(int newState) { - zzLexicalState = newState; - } - - - /** - * Returns the text matched by the current regular expression. - * - * @return the matched text. - */ - public final String yytext() { - return new String(zzBuffer, zzStartRead, zzMarkedPos-zzStartRead); - } - - - /** - * Returns the character at the given position from the matched text. - * - *

It is equivalent to {@code yytext().charAt(pos)}, but faster. - * - * @param position the position of the character to fetch. A value from 0 to {@code yylength()-1}. - * - * @return the character at {@code position}. - */ - public final char yycharat(int position) { - return zzBuffer[zzStartRead + position]; - } - - - /** - * How many characters were matched. - * - * @return the length of the matched text region. - */ - public final int yylength() { - return zzMarkedPos-zzStartRead; - } - - - /** - * Reports an error that occurred while scanning. - * - *

In a well-formed scanner (no or only correct usage of {@code yypushback(int)} and a - * match-all fallback rule) this method will only be called with things that - * "Can't Possibly Happen". - * - *

If this method is called, something is seriously wrong (e.g. a JFlex bug producing a faulty - * scanner etc.). - * - *

Usual syntax/scanner level error handling should be done in error fallback rules. - * - * @param errorCode the code of the error message to display. - */ - private static void zzScanError(int errorCode) { - String message; - try { - message = ZZ_ERROR_MSG[errorCode]; - } catch (ArrayIndexOutOfBoundsException e) { - message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR]; - } - - throw new Error(message); - } - - - /** - * Pushes the specified amount of characters back into the input stream. - * - *

They will be read again by then next call of the scanning method. - * - * @param number the number of characters to be read again. This number must not be greater than - * {@link #yylength()}. - */ - public void yypushback(int number) { - if ( number > yylength() ) - zzScanError(ZZ_PUSHBACK_2BIG); - - zzMarkedPos -= number; - } - - - - - /** - * Resumes scanning until the next regular expression is matched, the end of input is encountered - * or an I/O-Error occurs. - * - * @return the next token. - * @exception java.io.IOException if any I/O-Error occurs. - */ - @Override public java_cup.runtime.Symbol next_token() throws java.io.IOException { - int zzInput; - int zzAction; - - // cached fields: - int zzCurrentPosL; - int zzMarkedPosL; - int zzEndReadL = zzEndRead; - char[] zzBufferL = zzBuffer; - - int [] zzTransL = ZZ_TRANS; - int [] zzRowMapL = ZZ_ROWMAP; - int [] zzAttrL = ZZ_ATTRIBUTE; - - while (true) { - zzMarkedPosL = zzMarkedPos; - - boolean zzR = false; - int zzCh; - int zzCharCount; - for (zzCurrentPosL = zzStartRead ; - zzCurrentPosL < zzMarkedPosL ; - zzCurrentPosL += zzCharCount ) { - zzCh = Character.codePointAt(zzBufferL, zzCurrentPosL, zzMarkedPosL); - zzCharCount = Character.charCount(zzCh); - switch (zzCh) { - case '\u000B': // fall through - case '\u000C': // fall through - case '\u0085': // fall through - case '\u2028': // fall through - case '\u2029': - yyline++; - yycolumn = 0; - zzR = false; - break; - case '\r': - yyline++; - yycolumn = 0; - zzR = true; - break; - case '\n': - if (zzR) - zzR = false; - else { - yyline++; - yycolumn = 0; - } - break; - default: - zzR = false; - yycolumn += zzCharCount; - } - } - - if (zzR) { - // peek one character ahead if it is - // (if we have counted one line too much) - boolean zzPeek; - if (zzMarkedPosL < zzEndReadL) - zzPeek = zzBufferL[zzMarkedPosL] == '\n'; - else if (zzAtEOF) - zzPeek = false; - else { - boolean eof = zzRefill(); - zzEndReadL = zzEndRead; - zzMarkedPosL = zzMarkedPos; - zzBufferL = zzBuffer; - if (eof) - zzPeek = false; - else - zzPeek = zzBufferL[zzMarkedPosL] == '\n'; - } - if (zzPeek) yyline--; - } - zzAction = -1; - - zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; - - zzState = ZZ_LEXSTATE[zzLexicalState]; - - // set up zzAction for empty match case: - int zzAttributes = zzAttrL[zzState]; - if ( (zzAttributes & 1) == 1 ) { - zzAction = zzState; - } - - - zzForAction: { - while (true) { - - if (zzCurrentPosL < zzEndReadL) { - zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL, zzEndReadL); - zzCurrentPosL += Character.charCount(zzInput); - } - else if (zzAtEOF) { - zzInput = YYEOF; - break zzForAction; - } - else { - // store back cached positions - zzCurrentPos = zzCurrentPosL; - zzMarkedPos = zzMarkedPosL; - boolean eof = zzRefill(); - // get translated positions and possibly new buffer - zzCurrentPosL = zzCurrentPos; - zzMarkedPosL = zzMarkedPos; - zzBufferL = zzBuffer; - zzEndReadL = zzEndRead; - if (eof) { - zzInput = YYEOF; - break zzForAction; - } - else { - zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL, zzEndReadL); - zzCurrentPosL += Character.charCount(zzInput); - } - } - int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMap(zzInput) ]; - if (zzNext == -1) break zzForAction; - zzState = zzNext; - - zzAttributes = zzAttrL[zzState]; - if ( (zzAttributes & 1) == 1 ) { - zzAction = zzState; - zzMarkedPosL = zzCurrentPosL; - if ( (zzAttributes & 8) == 8 ) break zzForAction; - } - - } - } - - // store back cached position - zzMarkedPos = zzMarkedPosL; - - if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { - zzAtEOF = true; - { - return symbol(ChocoPyTokens.EOF); - } - } - else { - switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { - case 1: - { currString+=yytext(); - } - // fall through - case 68: break; - case 2: - { yypushback(1); - if(top() > currIndent) - { - pop(); - return symbol(ChocoPyTokens.DEDENT); - } - yystart(AFTER); - if(top()< currIndent) - { - push(currIndent); - return symbol(ChocoPyTokens.INDENT); - } - } - // fall through - case 69: break; - case 3: - { String space = yytext(); - if(space == "\t") - currIndent += 8; - else - currIndent ++; - } - // fall through - case 70: break; - case 4: - { currIndent = 0; - } - // fall through - case 71: break; - case 5: - { /* ignored */ - } - // fall through - case 72: break; - case 6: - { return symbol(ChocoPyTokens.UNRECOGNIZED); - } - // fall through - case 73: break; - case 7: - { /* ignore */ - } - // fall through - case 74: break; - case 8: - { return symbol(ChocoPyTokens.NEWLINE); yybegin(YYINITIAL); currIndent = 0; - } - // fall through - case 75: break; - case 9: - { yystart(STR); currString = ""; - } - // fall through - case 76: break; - case 10: - { return symbol(ChocoPyTokens.MOD); - } - // fall through - case 77: break; - case 11: - { return symbol(ChocoPyTokens.LPAR); - } - // fall through - case 78: break; - case 12: - { return symbol(ChocoPyTokens.RPAR); - } - // fall through - case 79: break; - case 13: - { return symbol(ChocoPyTokens.MUL); - } - // fall through - case 80: break; - case 14: - { return symbol(ChocoPyTokens.PLUS); - } - // fall through - case 81: break; - case 15: - { return symbol(ChocoPyTokens.COMMA); - } - // fall through - case 82: break; - case 16: - { return symbol(ChocoPyTokens.MINUS); - } - // fall through - case 83: break; - case 17: - { return symbol(ChocoPyTokens.DOT); - } - // fall through - case 84: break; - case 18: - { return symbol(ChocoPyTokens.DIV); - } - // fall through - case 85: break; - case 19: - { return symbol(ChocoPyTokens.NUMBER, - Integer.parseInt(yytext())); - } - // fall through - case 86: break; - case 20: - { return symbol(ChocoPyTokens.COLON); - } - // fall through - case 87: break; - case 21: - { return symbol(ChocoPyTokens.LT); - } - // fall through - case 88: break; - case 22: - { return symbol(ChocoPyTokens.ASSIGN); - } - // fall through - case 89: break; - case 23: - { return symbol(ChocoPyTokens.GT); - } - // fall through - case 90: break; - case 24: - { return symbol(ChocoPyTokens.NAMES, yytext()); - } - // fall through - case 91: break; - case 25: - { return symbol(ChocoPyTokens.LBR); - } - // fall through - case 92: break; - case 26: - { return symbol(ChocoPyTokens.RBR); - } - // fall through - case 93: break; - case 27: - { yybegin(AFTER); return symbol(ChocoPyTokens.STRING, currString); - } - // fall through - case 94: break; - case 28: - { return symbol(ChocoPyTokens.NEQ); - } - // fall through - case 95: break; - case 29: - { return symbol(ChocoPyTokens.ARROW); - } - // fall through - case 96: break; - case 30: - { return symbol(ChocoPyTokens.LEQ); - } - // fall through - case 97: break; - case 31: - { return symbol(ChocoPyTokens.EQUAL); - } - // fall through - case 98: break; - case 32: - { return symbol(ChocoPyTokens.GEQ); - } - // fall through - case 99: break; - case 33: - { return symbol(ChocoPyTokens.AS); - } - // fall through - case 100: break; - case 34: - { return symbol(ChocoPyTokens.IF); - } - // fall through - case 101: break; - case 35: - { return symbol(ChocoPyTokens.IN); - } - // fall through - case 102: break; - case 36: - { return symbol(ChocoPyTokens.IS); - } - // fall through - case 103: break; - case 37: - { return symbol(ChocoPyTokens.OR); - } - // fall through - case 104: break; - case 38: - // lookahead expression with fixed base length - zzMarkedPos = Character.offsetByCodePoints - (zzBufferL, zzStartRead, zzEndRead - zzStartRead, zzStartRead, 1); - { /*'\' at the end of line, do nothing.*/ - } - // fall through - case 105: break; - case 39: - { return symbol(ChocoPyTokens.AND); - } - // fall through - case 106: break; - case 40: - { return symbol(ChocoPyTokens.DEF); - } - // fall through - case 107: break; - case 41: - { return symbol(ChocoPyTokens.DEL); - } - // fall through - case 108: break; - case 42: - { return symbol(ChocoPyTokens.FOR); - } - // fall through - case 109: break; - case 43: - { return symbol(ChocoPyTokens.NOT); - } - // fall through - case 110: break; - case 44: - { return symbol(ChocoPyTokens.TRY); - } - // fall through - case 111: break; - case 45: - { return symbol(ChocoPyTokens.NONE); - } - // fall through - case 112: break; - case 46: - { return symbol(ChocoPyTokens.BOOL, true); - } - // fall through - case 113: break; - case 47: - { return symbol(ChocoPyTokens.ELIF); - } - // fall through - case 114: break; - case 48: - { return symbol(ChocoPyTokens.ELSE); - } - // fall through - case 115: break; - case 49: - { return symbol(ChocoPyTokens.FROM); - } - // fall through - case 116: break; - case 50: - { return symbol(ChocoPyTokens.PASS); - } - // fall through - case 117: break; - case 51: - { return symbol(ChocoPyTokens.WITH); - } - // fall through - case 118: break; - case 52: - { return symbol(ChocoPyTokens.BOOL, false); - } - // fall through - case 119: break; - case 53: - { return symbol(ChocoPyTokens.AWAIT); - } - // fall through - case 120: break; - case 54: - { return symbol(ChocoPyTokens.BREAK); - } - // fall through - case 121: break; - case 55: - { return symbol(ChocoPyTokens.CLASS); - } - // fall through - case 122: break; - case 56: - { return symbol(ChocoPyTokens.RAISE); - } - // fall through - case 123: break; - case 57: - { return symbol(ChocoPyTokens.WHILE); - } - // fall through - case 124: break; - case 58: - { return symbol(ChocoPyTokens.YIELD); - } - // fall through - case 125: break; - case 59: - { return symbol(ChocoPyTokens.ASSERT); - } - // fall through - case 126: break; - case 60: - { return symbol(ChocoPyTokens.EXCEPT); - } - // fall through - case 127: break; - case 61: - { return symbol(ChocoPyTokens.GLOBAL); - } - // fall through - case 128: break; - case 62: - { return symbol(ChocoPyTokens.IMPORT); - } - // fall through - case 129: break; - case 63: - { return symbol(ChocoPyTokens.LAMBDA); - } - // fall through - case 130: break; - case 64: - { return symbol(ChocoPyTokens.RETURN); - } - // fall through - case 131: break; - case 65: - { return symbol(ChocoPyTokens.FINALLY); - } - // fall through - case 132: break; - case 66: - { return symbol(ChocoPyTokens.CONTINUE); - } - // fall through - case 133: break; - case 67: - { return symbol(ChocoPyTokens.NONLOCAL); - } - // fall through - case 134: break; - default: - zzScanError(ZZ_NO_MATCH); - } - } - } - } - - /** - * Converts an int token code into the name of the - * token by reflection on the cup symbol class/interface ChocoPyTokens - */ - private static String getTokenName(int token) { - try { - java.lang.reflect.Field [] classFields = ChocoPyTokens.class.getFields(); - for (int i = 0; i < classFields.length; i++) { - if (classFields[i].getInt(null) == token) { - return classFields[i].getName(); - } - } - } catch (Exception e) { - e.printStackTrace(System.err); - } - - return "UNKNOWN TOKEN"; - } - - /** - * Same as next_token but also prints the token to standard out - * for debugging. - */ - public java_cup.runtime.Symbol debug_next_token() throws java.io.IOException { - java_cup.runtime.Symbol s = next_token(); - System.out.println( "line:" + (yyline+1) + " col:" + (yycolumn+1) + " --"+ yytext() + "--" + getTokenName(s.sym) + "--"); - return s; - } - - /** - * Runs the scanner on input files. - * - * This main method is the debugging routine for the scanner. - * It prints debugging information about each returned token to - * System.out until the end of file is reached, or an error occured. - * - * @param argv the command line, contains the filenames to run - * the scanner on. - */ - public static void main(String[] argv) { - if (argv.length == 0) { - System.out.println("Usage : java ChocoPyLexer [ --encoding ] "); - } - else { - int firstFilePos = 0; - String encodingName = "UTF-8"; - if (argv[0].equals("--encoding")) { - firstFilePos = 2; - encodingName = argv[1]; - try { - // Side-effect: is encodingName valid? - java.nio.charset.Charset.forName(encodingName); - } catch (Exception e) { - System.out.println("Invalid encoding '" + encodingName + "'"); - return; - } - } - for (int i = firstFilePos; i < argv.length; i++) { - ChocoPyLexer scanner = null; - try { - java.io.FileInputStream stream = new java.io.FileInputStream(argv[i]); - java.io.Reader reader = new java.io.InputStreamReader(stream, encodingName); - scanner = new ChocoPyLexer(reader); - while ( !scanner.zzAtEOF ) scanner.debug_next_token(); - } - catch (java.io.FileNotFoundException e) { - System.out.println("File not found : \""+argv[i]+"\""); - } - catch (java.io.IOException e) { - System.out.println("IO error scanning file \""+argv[i]+"\""); - System.out.println(e); - } - catch (Exception e) { - System.out.println("Unexpected exception:"); - e.printStackTrace(); - } - } - } - } - - -} From e844793c0292c3713b021b741b34d46e2f8968a4 Mon Sep 17 00:00:00 2001 From: Sanjar Ahmadov Date: Wed, 17 Feb 2021 13:34:39 -0500 Subject: [PATCH 10/52] Added terminals to parser --- src/main/cup/chocopy/pa1/ChocoPy.cup | 73 +++++++++++++++++++++++++++- 1 file changed, 71 insertions(+), 2 deletions(-) diff --git a/src/main/cup/chocopy/pa1/ChocoPy.cup b/src/main/cup/chocopy/pa1/ChocoPy.cup index d4ff444..c1b8605 100644 --- a/src/main/cup/chocopy/pa1/ChocoPy.cup +++ b/src/main/cup/chocopy/pa1/ChocoPy.cup @@ -142,9 +142,78 @@ action code {: * semantic value of type for these symbols that may be referenced * in actions ( {: ... :} ). */ +terminal INDENT; +terminal DEDENT; +terminal String ID; +terminal String STRING; + + + +/* Terminal Delimiters */ terminal NEWLINE; -terminal String PLUS; -terminal Integer NUMBER; +terminal String COLON; +terminal String COMMA; + +/* Terminal Literals */ +terminal Integer NUMBER; +terminal Boolean BOOL; +terminal String NONE; + +/* Terminal Keywords */ +terminal String IF; +terminal String ELSE; +terminal String ELIF; +terminal String WHILE; +terminal String CLASS; +terminal String DEF; +terminal String LAMBDA; +terminal String AS; +terminal String FOR; +terminal String GLOBAL; +terminal String IN; +terminal String NONLOCAL; +terminal String PASS; +terminal String RETURN; +terminal String ASSERT; +terminal String AWAIT; +terminal String BREAK; +terminal String CONTINUE; +terminal String DEL; +terminal String EXCEPT; +terminal String FINALLY; +terminal String FROM; +terminal String IMPORT; +terminal String RAISE; +terminal String TRY; +terminal String WITH; +terminal String YIELD; + + +/* Terminal Operators */ +terminal String PLUS; +terminal String MINUS; +terminal String MUL; +terminal String DIV; +terminal String MOD; +terminal String GT; +terminal String LT; +terminal String EQUAL; +terminal String NEQ; +terminal String GEQ; +terminal String LEQ; +terminal String ASSIGN; +terminal String AND; +terminal String OR; +terminal String NOT; +terminal String DOT; +terminal String LPAR; +terminal String RPAR; +terminal String LBR; +terminal String RBR; +terminal String ARROW; +terminal String IS; + + /* Returned by the lexer for erroneous tokens. Since it does not appear in * the grammar, it indicates a syntax error. */ terminal UNRECOGNIZED; From 4cd3062255ea9e6376a554cdcf4d152112177b96 Mon Sep 17 00:00:00 2001 From: Sanjar Ahmadov Date: Wed, 17 Feb 2021 14:44:11 -0500 Subject: [PATCH 11/52] Added precedences --- src/main/cup/chocopy/pa1/ChocoPy.cup | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/cup/chocopy/pa1/ChocoPy.cup b/src/main/cup/chocopy/pa1/ChocoPy.cup index c1b8605..f6abdda 100644 --- a/src/main/cup/chocopy/pa1/ChocoPy.cup +++ b/src/main/cup/chocopy/pa1/ChocoPy.cup @@ -213,7 +213,6 @@ terminal String RBR; terminal String ARROW; terminal String IS; - /* Returned by the lexer for erroneous tokens. Since it does not appear in * the grammar, it indicates a syntax error. */ terminal UNRECOGNIZED; @@ -231,7 +230,13 @@ non terminal Expr expr, binary_expr; /* Precedences (lowest to highest) for resolving what would otherwise be * ambiguities in the form of shift/reduce conflicts.. */ -precedence left PLUS; +precedence left OR; +precedence left AND; +precedence left NOT; +precedence nonassoc EQUAL, NEQ, LT, GT, LEQ, GEQ, IS; +precedence left PLUS, MINUS; +precedence left MUL, DIV, MOD; +precedence left DOT, COMMA, LBR, RBR; /* The start symbol. */ start with program; From 2ab3fddc66a086be21df37951b1c72a1c0964b5f Mon Sep 17 00:00:00 2001 From: bill Date: Thu, 18 Feb 2021 20:38:43 +0800 Subject: [PATCH 12/52] Bug fixed: unreachable code; symbol(value) not implemented. --- src/main/jflex/chocopy/pa1/ChocoPy.jflex | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/jflex/chocopy/pa1/ChocoPy.jflex b/src/main/jflex/chocopy/pa1/ChocoPy.jflex index ccb7187..9cc41de 100644 --- a/src/main/jflex/chocopy/pa1/ChocoPy.jflex +++ b/src/main/jflex/chocopy/pa1/ChocoPy.jflex @@ -39,7 +39,7 @@ import java.util.ArrayList; /** Return a terminal symbol of syntactic category TYPE and no * semantic value at the current source location. */ private Symbol symbol(int type) { - return symbol(type); + return symbol(type, null); } /** Return a terminal symbol of syntactic category TYPE and semantic @@ -142,8 +142,9 @@ if True: if(top()< currIndent) { /* - If current indentation is more than indents current level should have, - start a new level which will have `currIndent' spaces. + If current indentation is more than the number of indents + current level should have, start a new level which will have + `currIndent' indents. */ push(currIndent); return symbol(ChocoPyTokens.INDENT, currIndent); @@ -153,7 +154,7 @@ if True: { /* Delimiters. */ - {LineBreak} { return symbol(ChocoPyTokens.NEWLINE); yybegin(YYINITIAL); currIndent = 0;} + {LineBreak} { yybegin(YYINITIAL); currIndent = 0;return symbol(ChocoPyTokens.NEWLINE);} ":" { return symbol(ChocoPyTokens.COLON); } "," { return symbol(ChocoPyTokens.COMMA); } From d247243be145771d4d5df624a3ec67a00acf151b Mon Sep 17 00:00:00 2001 From: Sanjar Ahmadov Date: Thu, 18 Feb 2021 15:26:14 -0500 Subject: [PATCH 13/52] Added first 10 (till var_def) rules of grammer from lauguage reference --- src/main/cup/chocopy/pa1/ChocoPy.cup | 118 ++++++++++++++++++++++++++- 1 file changed, 114 insertions(+), 4 deletions(-) diff --git a/src/main/cup/chocopy/pa1/ChocoPy.cup b/src/main/cup/chocopy/pa1/ChocoPy.cup index f6abdda..fb1f495 100644 --- a/src/main/cup/chocopy/pa1/ChocoPy.cup +++ b/src/main/cup/chocopy/pa1/ChocoPy.cup @@ -130,6 +130,18 @@ action code {: return new ComplexSymbolFactory.Location(first.getLocation()[0], first.getLocation()[1]); } + + /** Return the rightmost non-whitespace location in NODES, or null if NODES + * is empty. Assumes that the nodes of NODES are ordered in increasing + * order of location, from left to right. */ + ComplexSymbolFactory.Location getRight(List nodes) { + if (nodes.isEmpty()) { + return null; + } + Node last = nodes.get(nodes.size()-1); + return new ComplexSymbolFactory.Location(last.getLocation()[2], + last.getLocation()[3]); + } :} @@ -213,6 +225,7 @@ terminal String RBR; terminal String ARROW; terminal String IS; + /* Returned by the lexer for erroneous tokens. Since it does not appear in * the grammar, it indicates a syntax error. */ terminal UNRECOGNIZED; @@ -223,10 +236,22 @@ terminal UNRECOGNIZED; * defines the listed nonterminal identifier symbols to have semantic values * of type . */ non terminal Program program; -non terminal List program_head; +non terminal List program_head, class_body, class_body_defs, fun_body_decs; non terminal List stmt_list, opt_stmt_list; non terminal Stmt stmt, expr_stmt; non terminal Expr expr, binary_expr; +non terminal VarDef var_def; +non terminal ClassDef class_def; +non terminal FuncDef fun_def; +non terminal Literal literal; +non terminal TypedVar typed_var; +non terminal TypeAnnotation type, ret_type; +non terminal Identifier identifier; +non terminal List typed_vars; +non terminal GlobalDecl global_decl; +non terminal NonLocalDecl nonlocal_decl; + + /* Precedences (lowest to highest) for resolving what would otherwise be * ambiguities in the form of shift/reduce conflicts.. */ @@ -244,16 +269,97 @@ start with program; /***** GRAMMAR RULES *****/ +/* Rules are defined in the order given by the language reference */ + +/* program */ program ::= program_head:d opt_stmt_list:s {: RESULT = new Program(d.isEmpty() ? getLeft(s) : getLeft(d), sxright, d, s, errors); :} ; -/* Initial list of declarations. */ -program_head ::= /* not implemented; currently matches empty string */ - {: RESULT = empty(); :} +program_head ::= program_head:d var_def:vd {: RESULT = combine(d, vd); :} + | program_head:d class_def:cd {: RESULT = combine(d, cd); :} + | program_head:d fun_def:fd {: RESULT = combine(d, fd); :} + | program_head:d error:e {: RESULT = d; :} + | {: RESULT = empty(); :} + ; + + +/* class_def */ +class_def ::= CLASS:c identifier:id LPAR identifier:parentId RPAR COLON NEWLINE INDENT class_body:cb DEDENT {: RESULT = new ClassDef(cxleft, getRight(cb), id, parentId, cb); :}; + + +/* class_body */ +class_body ::= PASS NEWLINE {: RESULT = empty(); :} + | class_body_defs:defs {: RESULT = defs; :} + ; + +class_body_defs ::= class_body_defs:defs var_def:vd {: RESULT = combine(defs, vd); :} + | class_body_defs:defs fun_def:fd {: RESULT = combine(defs, fd); :} + | class_body_defs:defs error {: RESULT = defs; :} + | var_def:vd {: RESULT = single(vd); :} + | fun_def:fd {: RESULT = single(fd); :} + ; + + +/* fun_def */ +fun_def ::= DEF:def identifier:id LPAR typed_vars:params RPAR ret_type:rt COLON NEWLINE INDENT fun_body_decs:fbd stmt_list:sl DEDENT + {: RESULT = new FuncDef(defxleft, getRight(sl), id, params, rt, fbd, sl); :} + ; + +ret_type ::= ARROW type:t {: RESULT= t; :} + | {: RESULT= null; :} + ; + +typed_vars ::= typed_var:tv {: RESULT= single(tv); :} + | typed_vars:tvs COMMA typed_var:tv {: RESULT= combine(tvs, tv); :} + | typed_vars:tvs COMMA error {: RESULT= tvs; :} + | {: RESULT= empty(); :} + ; + + + +/* fun_body */ +fun_body_decs ::= fun_body_decs:fbd global_decl:gd {: RESULT= combine(fbd, gd); :} + | fun_body_decs:fbd nonlocal_decl:nd {: RESULT= combine(fbd, nd); :} + | fun_body_decs:fbd var_def:vd {: RESULT= combine(fbd, vd); :} + | fun_body_decs:fbd fun_def:fd {: RESULT= combine(fbd, fd); :} + | fun_body_decs:fbd error {: RESULT= fbd; :} + | {: RESULT= empty(); :} ; + + +/* typed_var */ +typed_var ::= identifier:id COLON type:t {: RESULT = new TypedVar(idxleft, txright, id, t); :}; + + +/* type */ +type ::= identifier:id {: RESULT = new ClassType(idxleft, idxright, id.name); :} + | STRING:str {: RESULT = new ClassType(strxleft, strxright, str); :} + | LBR:lbr type:t RBR:rbr {: RESULT = new ListType(lbrxleft, rbrxright, t); :} + ; + + +/* global_decl */ +global_decl ::= GLOBAL:g identifier:id NEWLINE {: RESULT = new GlobalDecl(gxleft, idxright, id); :}; + + +/* nonlocal_decl */ +nonlocal_decl ::= NONLOCAL:n identifier:id NEWLINE {: RESULT = new NonLocalDecl(nxleft, idxright, id); :}; + + +/* var_def */ +var_def ::= typed_var:t ASSIGN literal:l NEWLINE {: RESULT = new VarDef(txleft, lxright, t, l); :}; + + +/* literal */ +literal ::= NONE:n {: RESULT = new NoneLiteral(nxleft, nxright); :} + | BOOL:b {: RESULT = new BooleanLiteral(bxleft, bxright, b); :} + | NUMBER:n {: RESULT = new IntegerLiteral(nxleft, nxright, n); :} + | STRING:s {: RESULT = new StringLiteral(sxleft, sxright, s); :} + ; + opt_stmt_list ::= {: RESULT = empty(); :} | stmt_list:s {: RESULT = s; :} @@ -286,3 +392,7 @@ binary_expr ::= expr:e1 PLUS:op expr:e2 {: RESULT = new BinaryExpr(e1xleft, e2xright, e1, op, e2); :} ; + + +/* Extras - rules below have not been given in language reference, we have them to ease implementation */ +identifier ::= ID:idStr {: RESULT = new Identifier(idStrxleft, idStrxright, idStr); :}; From 27b46f386d1bee3457d4c93fca9f208e399d7939 Mon Sep 17 00:00:00 2001 From: bill Date: Sat, 20 Feb 2021 04:04:06 +0800 Subject: [PATCH 14/52] Lexer will pass the original tokens even if it can be inferred to match the type of terminal defined in .cup file. --- src/main/jflex/chocopy/pa1/ChocoPy.jflex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/jflex/chocopy/pa1/ChocoPy.jflex b/src/main/jflex/chocopy/pa1/ChocoPy.jflex index 9cc41de..8ecbb02 100644 --- a/src/main/jflex/chocopy/pa1/ChocoPy.jflex +++ b/src/main/jflex/chocopy/pa1/ChocoPy.jflex @@ -39,7 +39,7 @@ import java.util.ArrayList; /** Return a terminal symbol of syntactic category TYPE and no * semantic value at the current source location. */ private Symbol symbol(int type) { - return symbol(type, null); + return symbol(type, yytext()); } /** Return a terminal symbol of syntactic category TYPE and semantic From cf3bd4d7457356b3f53056652943fa9beebfbfe8 Mon Sep 17 00:00:00 2001 From: Sanjar Ahmadov Date: Fri, 19 Feb 2021 18:44:22 -0500 Subject: [PATCH 15/52] Finished all grammar - passes 24 test cases --- src/main/cup/chocopy/pa1/ChocoPy.cup | 150 ++++++++++++++++++++++----- 1 file changed, 122 insertions(+), 28 deletions(-) diff --git a/src/main/cup/chocopy/pa1/ChocoPy.cup b/src/main/cup/chocopy/pa1/ChocoPy.cup index fb1f495..40f819a 100644 --- a/src/main/cup/chocopy/pa1/ChocoPy.cup +++ b/src/main/cup/chocopy/pa1/ChocoPy.cup @@ -237,19 +237,25 @@ terminal UNRECOGNIZED; * of type . */ non terminal Program program; non terminal List program_head, class_body, class_body_defs, fun_body_decs; -non terminal List stmt_list, opt_stmt_list; -non terminal Stmt stmt, expr_stmt; -non terminal Expr expr, binary_expr; +non terminal List stmt_list, opt_stmt_list, block, else_body; +non terminal Stmt stmt, simple_stmt; +non terminal Expr expr, binary_expr, pexpr, cexpr, cmp_pexpr; non terminal VarDef var_def; non terminal ClassDef class_def; non terminal FuncDef fun_def; non terminal Literal literal; +non terminal StringLiteral bin_op, comp_op; non terminal TypedVar typed_var; non terminal TypeAnnotation type, ret_type; non terminal Identifier identifier; non terminal List typed_vars; non terminal GlobalDecl global_decl; non terminal NonLocalDecl nonlocal_decl; +non terminal List opt_target, expr_list; +non terminal Expr target; +non terminal MemberExpr member_expr; +non terminal IndexExpr index_expr; + @@ -262,6 +268,7 @@ precedence nonassoc EQUAL, NEQ, LT, GT, LEQ, GEQ, IS; precedence left PLUS, MINUS; precedence left MUL, DIV, MOD; precedence left DOT, COMMA, LBR, RBR; +precedence left IF, ELSE; /* The start symbol. */ start with program; @@ -284,6 +291,10 @@ program_head ::= program_head:d var_def:vd {: RESULT = combine(d, v | program_head:d error:e {: RESULT = d; :} | {: RESULT = empty(); :} ; + +opt_stmt_list ::= {: RESULT = empty(); :} + | stmt_list:s {: RESULT = s; :} + ; /* class_def */ @@ -318,8 +329,7 @@ typed_vars ::= typed_var:tv {: RESULT= single(tv | {: RESULT= empty(); :} ; - - + /* fun_body */ fun_body_decs ::= fun_body_decs:fbd global_decl:gd {: RESULT= combine(fbd, gd); :} | fun_body_decs:fbd nonlocal_decl:nd {: RESULT= combine(fbd, nd); :} @@ -353,46 +363,130 @@ nonlocal_decl ::= NONLOCAL:n identifier:id NEWLINE {: RESULT = new NonLoc var_def ::= typed_var:t ASSIGN literal:l NEWLINE {: RESULT = new VarDef(txleft, lxright, t, l); :}; +/* stmt */ +stmt ::= simple_stmt:s NEWLINE {: RESULT = s; :} + | IF:i expr:cond COLON block:b else_body:elb {: RESULT = new IfStmt(ixleft, getRight(elb), cond, b, elb); :} + | WHILE:wh expr:cond COLON block:b {: RESULT = new WhileStmt(whxleft, getRight(b), cond, b); :} + | FOR:f identifier:id IN expr:e COLON block:b {: RESULT = new ForStmt(fxleft, getRight(b), id, e, b); :} + ; + + +else_body ::= ELSE:el COLON block:b {: RESULT = b; :} + | ELIF:el expr:cond COLON block:b else_body:elb {: RESULT = single(new IfStmt(elxleft, getRight(elb), cond, b, elb)); :} + | {: RESULT = empty(); :} + ; + +/* simple_stmt */ +simple_stmt ::= PASS:p {: RESULT = null; :} + | expr:e {: RESULT = new ExprStmt(exleft, exright, e); :} + | RETURN:r expr:e {: RESULT = new ReturnStmt(rxleft, exright, e); :} + | RETURN {: RESULT = null; :} + | opt_target:ot expr:e {: RESULT = new AssignStmt(getLeft(ot), exright, ot, e); :} + ; + + +opt_target ::= opt_target:ot target:t ASSIGN {: RESULT = combine(ot, t); :} + | target:t ASSIGN {: RESULT = single(t); :} + ; + + +/* block */ +block ::= NEWLINE INDENT stmt_list:sl DEDENT {: RESULT = sl; :}; + + /* literal */ literal ::= NONE:n {: RESULT = new NoneLiteral(nxleft, nxright); :} | BOOL:b {: RESULT = new BooleanLiteral(bxleft, bxright, b); :} | NUMBER:n {: RESULT = new IntegerLiteral(nxleft, nxright, n); :} | STRING:s {: RESULT = new StringLiteral(sxleft, sxright, s); :} ; + + +/* expr */ +expr ::= pexpr:ce {: RESULT = ce; :} + | NOT:n expr:exp {: RESULT = new UnaryExpr(nxleft, expxright, n, exp); :} + | expr:e1 AND:a expr:e2 {: RESULT = new BinaryExpr(e1xleft, e2xright, e1, a, e2); :} + | expr:e1 OR:o expr:e2 {: RESULT = new BinaryExpr(e1xleft, e2xright, e1, o, e2); :} + | expr:e1 IF expr:e2 ELSE expr:e3 {: RESULT = new IfExpr(e1xleft, e3xright, e2, e1, e3); :} + ; -opt_stmt_list ::= {: RESULT = empty(); :} - | stmt_list:s {: RESULT = s; :} - ; +/* cexpr */ +/* +cexpr ::= pexpr:pe {: RESULT = new Expr(pexleft, pexright); :} + | cmp_pexpr:cp {: RESULT = new Expr(cpxleft, cpxright); :} + ; -stmt_list ::= stmt:s {: RESULT = single(s); :} - | stmt_list:l stmt:s {: RESULT = combine(l, s); :} - | stmt_list:l error {: RESULT = l; :} - /* If there is a syntax error in the source, this says to discard - * symbols from the parsing stack and perform reductions until - * there is a stmt_list on top of the stack, and then to discard - * input symbols until it is possible to shift again, reporting - * a syntax error. */ + +cmp_pexpr ::= pexpr:p comp_op:co cmp_pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, co, p2); :} + | pexpr:p {: RESULT = new Expr(pxleft, pxright); :} + ; +*/ + +/* pexpr */ +pexpr ::= identifier:id {: RESULT = id; :} + | literal:l {: RESULT = l; :} + | LBR:lbr expr_list:l RBR:rbr {: RESULT = new ListExpr(lbrxleft, rbrxright, l); :} + | LPAR:lpar expr:e RPAR:rpar {: RESULT = e; :} + | member_expr:m {: RESULT = m; :} + | index_expr:i {: RESULT = i; :} + | member_expr:m LPAR expr_list:l RPAR:rpar {: RESULT = new MethodCallExpr(mxleft, rparxright, m, l); :} + | identifier:id LPAR expr_list:l RPAR:rpar {: RESULT = new CallExpr(idxleft, rparxright, id, l); :} + | pexpr:p1 bin_op:bo pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, bo.value, p2); :} + | MINUS:m pexpr:p {: RESULT = new UnaryExpr(mxleft, pxright, m, p); :} + | pexpr:p1 comp_op:co pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, co.value, p2); :} + ; + +expr_list ::= expr:e {: RESULT = single(e); :} + | expr_list:el COMMA expr:e {: RESULT = combine(el, e); :} + | {: RESULT = null; :} ; -stmt ::= expr_stmt:s NEWLINE {: RESULT = s; :} - ; -expr_stmt ::= expr:e {: RESULT = new ExprStmt(exleft, exright, e); :} - ; +/* bin_op */ +bin_op ::= PLUS:a {: RESULT = new StringLiteral(axleft, axright, "+"); :} + | MINUS:a {: RESULT = new StringLiteral(axleft, axright, "-"); :} + | MUL:a {: RESULT = new StringLiteral(axleft, axright, "*"); :} + | DIV:a {: RESULT = new StringLiteral(axleft, axright, "/"); :} + | MOD:a {: RESULT = new StringLiteral(axleft, axright, "%"); :} + ; -expr ::= binary_expr:e {: RESULT = e; :} - | NUMBER:n {: RESULT = new IntegerLiteral(nxleft, nxright, n); :} - ; +/* comp_op */ +comp_op ::= EQUAL:a {: RESULT = new StringLiteral(axleft, axright, "=="); :} + | NEQ:a {: RESULT = new StringLiteral(axleft, axright, "!="); :} + | LEQ:a {: RESULT = new StringLiteral(axleft, axright, "<="); :} + | GEQ:a {: RESULT = new StringLiteral(axleft, axright, ">="); :} + | LT:a {: RESULT = new StringLiteral(axleft, axright, "<"); :} + | GT:a {: RESULT = new StringLiteral(axleft, axright, ">"); :} + | IS:a {: RESULT = new StringLiteral(axleft, axright, "is"); :} + ; + +/* member_expr */ +member_expr ::= pexpr:p DOT identifier:id {: RESULT = new MemberExpr(pxleft, idxright, p, id); :} + ; -/* A binary expression, illustrating how to find the left and right - * source position of a phrase. */ -binary_expr ::= expr:e1 PLUS:op expr:e2 - {: RESULT = new BinaryExpr(e1xleft, e2xright, - e1, op, e2); :} +/* index_expr */ +index_expr ::= pexpr:p LBR expr:e RBR:rbr {: RESULT = new IndexExpr(pxleft, rbrxright, p, e); :} ; + +/* target */ +target ::= identifier:id {: RESULT = id; :} + | member_expr:m {: RESULT = m; :} + | index_expr:i {: RESULT = i; :} + ; /* Extras - rules below have not been given in language reference, we have them to ease implementation */ identifier ::= ID:idStr {: RESULT = new Identifier(idStrxleft, idStrxright, idStr); :}; + + +stmt_list ::= stmt:s {: RESULT = single(s); :} + | stmt_list:l stmt:s {: RESULT = combine(l, s); :} + | stmt_list:l error {: RESULT = l; :} + /* If there is a syntax error in the source, this says to discard + * symbols from the parsing stack and perform reductions until + * there is a stmt_list on top of the stack, and then to discard + * input symbols until it is possible to shift again, reporting + * a syntax error. */ + ; \ No newline at end of file From 7b2e1dab3f8dcd16642ad514011b43275a5baf03 Mon Sep 17 00:00:00 2001 From: Sanjar Ahmadov Date: Fri, 19 Feb 2021 18:45:13 -0500 Subject: [PATCH 16/52] Added test scripts to ease testing --- build.sh | 3 +++ full_test.sh | 3 +++ test.sh | 12 ++++++++++++ 3 files changed, 18 insertions(+) create mode 100755 build.sh create mode 100755 full_test.sh create mode 100755 test.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..f4e6621 --- /dev/null +++ b/build.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +mvn clean package -e diff --git a/full_test.sh b/full_test.sh new file mode 100755 index 0000000..19504c9 --- /dev/null +++ b/full_test.sh @@ -0,0 +1,3 @@ +#!/bin/bash +./build.sh +./test.sh diff --git a/test.sh b/test.sh new file mode 100755 index 0000000..7060f44 --- /dev/null +++ b/test.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +FILENAME=$1 + +if [ -z "$1" ] ; then + echo "Running all test cases. Usage for individual test cases: test.sh FILENAME (inside src/test/data/pa1/sample/ folder)" + java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy --pass=s --test --dir src/test/data/pa1/sample/ + exit 1 +fi + +java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy \ + --pass=s --test src/test/data/pa1/sample/${FILENAME} From 1c02aa84d85b4382e8d97332bf83fb98e1b65d0f Mon Sep 17 00:00:00 2001 From: Sanjar Ahmadov Date: Fri, 19 Feb 2021 19:03:02 -0500 Subject: [PATCH 17/52] Added cexpr --- src/main/cup/chocopy/pa1/ChocoPy.cup | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/main/cup/chocopy/pa1/ChocoPy.cup b/src/main/cup/chocopy/pa1/ChocoPy.cup index 40f819a..e4004ff 100644 --- a/src/main/cup/chocopy/pa1/ChocoPy.cup +++ b/src/main/cup/chocopy/pa1/ChocoPy.cup @@ -403,7 +403,7 @@ literal ::= NONE:n {: RESULT = new NoneLi /* expr */ -expr ::= pexpr:ce {: RESULT = ce; :} +expr ::= cexpr:ce {: RESULT = ce; :} | NOT:n expr:exp {: RESULT = new UnaryExpr(nxleft, expxright, n, exp); :} | expr:e1 AND:a expr:e2 {: RESULT = new BinaryExpr(e1xleft, e2xright, e1, a, e2); :} | expr:e1 OR:o expr:e2 {: RESULT = new BinaryExpr(e1xleft, e2xright, e1, o, e2); :} @@ -412,29 +412,23 @@ expr ::= pexpr:ce {: RESULT = ce; :} /* cexpr */ -/* -cexpr ::= pexpr:pe {: RESULT = new Expr(pexleft, pexright); :} - | cmp_pexpr:cp {: RESULT = new Expr(cpxleft, cpxright); :} +cexpr ::= pexpr:pe {: RESULT = pe; :} + | pexpr:p1 comp_op:co cexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, co.value, p2); :} ; -cmp_pexpr ::= pexpr:p comp_op:co cmp_pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, co, p2); :} - | pexpr:p {: RESULT = new Expr(pxleft, pxright); :} - ; -*/ /* pexpr */ pexpr ::= identifier:id {: RESULT = id; :} | literal:l {: RESULT = l; :} | LBR:lbr expr_list:l RBR:rbr {: RESULT = new ListExpr(lbrxleft, rbrxright, l); :} - | LPAR:lpar expr:e RPAR:rpar {: RESULT = e; :} + | LPAR:lpar expr:e RPAR:rpar {: RESULT = e; :} | member_expr:m {: RESULT = m; :} | index_expr:i {: RESULT = i; :} | member_expr:m LPAR expr_list:l RPAR:rpar {: RESULT = new MethodCallExpr(mxleft, rparxright, m, l); :} | identifier:id LPAR expr_list:l RPAR:rpar {: RESULT = new CallExpr(idxleft, rparxright, id, l); :} | pexpr:p1 bin_op:bo pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, bo.value, p2); :} | MINUS:m pexpr:p {: RESULT = new UnaryExpr(mxleft, pxright, m, p); :} - | pexpr:p1 comp_op:co pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, co.value, p2); :} ; expr_list ::= expr:e {: RESULT = single(e); :} From 0672838265f037bbe321007d84c961370e2804fc Mon Sep 17 00:00:00 2001 From: Sanjar Ahmadov Date: Fri, 19 Feb 2021 19:06:13 -0500 Subject: [PATCH 18/52] Cleanup --- src/main/cup/chocopy/pa1/ChocoPy.cup | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/cup/chocopy/pa1/ChocoPy.cup b/src/main/cup/chocopy/pa1/ChocoPy.cup index e4004ff..13e324c 100644 --- a/src/main/cup/chocopy/pa1/ChocoPy.cup +++ b/src/main/cup/chocopy/pa1/ChocoPy.cup @@ -239,7 +239,7 @@ non terminal Program program; non terminal List program_head, class_body, class_body_defs, fun_body_decs; non terminal List stmt_list, opt_stmt_list, block, else_body; non terminal Stmt stmt, simple_stmt; -non terminal Expr expr, binary_expr, pexpr, cexpr, cmp_pexpr; +non terminal Expr expr, pexpr, cexpr; non terminal VarDef var_def; non terminal ClassDef class_def; non terminal FuncDef fun_def; @@ -376,6 +376,7 @@ else_body ::= ELSE:el COLON block:b {: RES | {: RESULT = empty(); :} ; + /* simple_stmt */ simple_stmt ::= PASS:p {: RESULT = null; :} | expr:e {: RESULT = new ExprStmt(exleft, exright, e); :} @@ -417,7 +418,6 @@ cexpr ::= pexpr:pe {: RESULT = pe; :} ; - /* pexpr */ pexpr ::= identifier:id {: RESULT = id; :} | literal:l {: RESULT = l; :} @@ -456,14 +456,17 @@ comp_op ::= EQUAL:a {: RESULT = new Stri | IS:a {: RESULT = new StringLiteral(axleft, axright, "is"); :} ; + /* member_expr */ member_expr ::= pexpr:p DOT identifier:id {: RESULT = new MemberExpr(pxleft, idxright, p, id); :} ; + /* index_expr */ index_expr ::= pexpr:p LBR expr:e RBR:rbr {: RESULT = new IndexExpr(pxleft, rbrxright, p, e); :} ; + /* target */ target ::= identifier:id {: RESULT = id; :} | member_expr:m {: RESULT = m; :} From c5c9bb2f0d177dc9a983d7fa5bd3e2529117ee54 Mon Sep 17 00:00:00 2001 From: bill Date: Sat, 20 Feb 2021 19:46:30 +0800 Subject: [PATCH 19/52] Changes made on Flex to adapt for merging. --- src/main/jflex/chocopy/pa1/ChocoPy.jflex | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/main/jflex/chocopy/pa1/ChocoPy.jflex b/src/main/jflex/chocopy/pa1/ChocoPy.jflex index 8ecbb02..8699d5c 100644 --- a/src/main/jflex/chocopy/pa1/ChocoPy.jflex +++ b/src/main/jflex/chocopy/pa1/ChocoPy.jflex @@ -34,6 +34,7 @@ import java.util.ArrayList; final ComplexSymbolFactory symbolFactory = new ComplexSymbolFactory(); private int currIndent = 0; //Current Indentation Level private String currString = ""; + private int str_l = 0, str_c = 0; //Start location of a string. /*A stack that keeps track of the spaces in each Indentation Level*/ private ArrayList stack = new ArrayList(20); /** Return a terminal symbol of syntactic category TYPE and no @@ -45,6 +46,7 @@ import java.util.ArrayList; /** Return a terminal symbol of syntactic category TYPE and semantic * value VALUE at the current source location. */ private Symbol symbol(int type, Object value) { + //System.out.println(yytext() + ChocoPyTokens.terminalNames[type]); return symbolFactory.newSymbol(ChocoPyTokens.terminalNames[type], type, new ComplexSymbolFactory.Location(yyline + 1, yycolumn + 1), new ComplexSymbolFactory.Location(yyline + 1,yycolumn + yylength()), @@ -134,6 +136,7 @@ if True: AFTER state. */ pop(); + //System.out.println("dedent"); return symbol(ChocoPyTokens.DEDENT, currIndent); } /*Otherwise, we will start dealing with the rest @@ -146,6 +149,8 @@ if True: current level should have, start a new level which will have `currIndent' indents. */ + //System.out.println("indent"); + push(currIndent); return symbol(ChocoPyTokens.INDENT, currIndent); } @@ -161,7 +166,7 @@ if True: /* Literals. */ {IntegerLiteral} { return symbol(ChocoPyTokens.NUMBER, Integer.parseInt(yytext())); } - "\"" {yybegin(STR); currString = "";} //Start taking a string when see a " + "\"" {yybegin(STR); str_l = yyline + 1; str_c = yycolumn + 1; currString = "";} //Start taking a string when see a " "False" { return symbol(ChocoPyTokens.BOOL, false); } "True" { return symbol(ChocoPyTokens.BOOL, true); } "None" { return symbol(ChocoPyTokens.NONE); } @@ -223,7 +228,7 @@ if True: /*Identifiers*/ - {Identifiers} {return symbol(ChocoPyTokens.ID, yytext());} + {Identifiers} {return symbol(ChocoPyTokens.ID, yytext());} /* Whitespace. */ {WhiteSpace} { /* ignore */ } /* Comment. */ @@ -232,9 +237,12 @@ if True: { {StringLiteral} {currString += yytext();} \\$ { /*'\' at the end of line, do nothing.*/ } - "\"" {yybegin(AFTER); return symbol(ChocoPyTokens.STRING, currString);} // accepted a ", return to AFTER state + "\"" {yybegin(AFTER); return symbolFactory.newSymbol(ChocoPyTokens.terminalNames[ChocoPyTokens.STRING], ChocoPyTokens.STRING, + new ComplexSymbolFactory.Location(str_l, str_c), + new ComplexSymbolFactory.Location(yyline + 1,yycolumn + yylength()), + currString);} // accepted a ", return to AFTER state } -<> { return symbol(ChocoPyTokens.EOF); } +<> { if(!stack.isEmpty()){ return symbol(ChocoPyTokens.DEDENT, pop());} return symbol(ChocoPyTokens.EOF);} /* Error fallback. */ [^] { return symbol(ChocoPyTokens.UNRECOGNIZED); } From ab6c72e690319326465a4ad63629ff47b0ff8da0 Mon Sep 17 00:00:00 2001 From: bill Date: Sat, 20 Feb 2021 21:42:01 +0800 Subject: [PATCH 20/52] Simple fixes for the errors. --- src/main/cup/chocopy/pa1/ChocoPy.cup | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/main/cup/chocopy/pa1/ChocoPy.cup b/src/main/cup/chocopy/pa1/ChocoPy.cup index 13e324c..bb26a36 100644 --- a/src/main/cup/chocopy/pa1/ChocoPy.cup +++ b/src/main/cup/chocopy/pa1/ChocoPy.cup @@ -268,7 +268,7 @@ precedence nonassoc EQUAL, NEQ, LT, GT, LEQ, GEQ, IS; precedence left PLUS, MINUS; precedence left MUL, DIV, MOD; precedence left DOT, COMMA, LBR, RBR; -precedence left IF, ELSE; +precedence right IF, ELSE; /* The start symbol. */ start with program; @@ -315,12 +315,12 @@ class_body_defs ::= class_body_defs:defs var_def:vd {: RESULT = combine(de /* fun_def */ -fun_def ::= DEF:def identifier:id LPAR typed_vars:params RPAR ret_type:rt COLON NEWLINE INDENT fun_body_decs:fbd stmt_list:sl DEDENT - {: RESULT = new FuncDef(defxleft, getRight(sl), id, params, rt, fbd, sl); :} +fun_def ::= DEF:def identifier:id LPAR typed_vars:params RPAR ret_type:rt COLON:col NEWLINE INDENT fun_body_decs:fbd stmt_list:sl DEDENT + {: TypeAnnotation _rt = rt;if(rt.getLocation()[0] == -2) _rt = new ClassType( colxright, colxright, "");RESULT = new FuncDef(defxleft, getRight(sl), id, params, _rt, fbd, sl); :} ; ret_type ::= ARROW type:t {: RESULT= t; :} - | {: RESULT= null; :} + | {: RESULT= new ClassType(new ComplexSymbolFactory.Location(-2,-1), new ComplexSymbolFactory.Location(-1,-1),""); :} ; typed_vars ::= typed_var:tv {: RESULT= single(tv); :} @@ -427,13 +427,17 @@ pexpr ::= identifier:id {: RESULT = id; :} | index_expr:i {: RESULT = i; :} | member_expr:m LPAR expr_list:l RPAR:rpar {: RESULT = new MethodCallExpr(mxleft, rparxright, m, l); :} | identifier:id LPAR expr_list:l RPAR:rpar {: RESULT = new CallExpr(idxleft, rparxright, id, l); :} - | pexpr:p1 bin_op:bo pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, bo.value, p2); :} + | pexpr:p1 PLUS:bo pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, bo, p2); :} + | pexpr:p1 MINUS:bo pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, bo, p2); :} + | pexpr:p1 MUL:bo pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, bo, p2); :} + | pexpr:p1 DIV:bo pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, bo, p2); :} + | pexpr:p1 MOD:bo pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, bo, p2); :} | MINUS:m pexpr:p {: RESULT = new UnaryExpr(mxleft, pxright, m, p); :} ; expr_list ::= expr:e {: RESULT = single(e); :} | expr_list:el COMMA expr:e {: RESULT = combine(el, e); :} - | {: RESULT = null; :} + | {: RESULT = new ArrayList(); :} ; From b2536564bcdb65b25b40ce99e644f391c507a64d Mon Sep 17 00:00:00 2001 From: bill Date: Sat, 20 Feb 2021 23:24:11 +0800 Subject: [PATCH 21/52] Cleanup --- src/main/cup/chocopy/pa1/ChocoPy.cup | 21 ++++++++++----------- src/main/jflex/chocopy/pa1/ChocoPy.jflex | 3 --- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/src/main/cup/chocopy/pa1/ChocoPy.cup b/src/main/cup/chocopy/pa1/ChocoPy.cup index bb26a36..15340a3 100644 --- a/src/main/cup/chocopy/pa1/ChocoPy.cup +++ b/src/main/cup/chocopy/pa1/ChocoPy.cup @@ -316,11 +316,11 @@ class_body_defs ::= class_body_defs:defs var_def:vd {: RESULT = combine(de /* fun_def */ fun_def ::= DEF:def identifier:id LPAR typed_vars:params RPAR ret_type:rt COLON:col NEWLINE INDENT fun_body_decs:fbd stmt_list:sl DEDENT - {: TypeAnnotation _rt = rt;if(rt.getLocation()[0] == -2) _rt = new ClassType( colxright, colxright, "");RESULT = new FuncDef(defxleft, getRight(sl), id, params, _rt, fbd, sl); :} + {: TypeAnnotation _rt = rt;if((rt instanceof ClassType) && ((ClassType)rt).className == "") _rt = new ClassType( colxright, colxright, "");RESULT = new FuncDef(defxleft, getRight(sl), id, params, _rt, fbd, sl); :} ; ret_type ::= ARROW type:t {: RESULT= t; :} - | {: RESULT= new ClassType(new ComplexSymbolFactory.Location(-2,-1), new ComplexSymbolFactory.Location(-1,-1),""); :} + | {: RESULT= new ClassType(null, null,""); :} ; typed_vars ::= typed_var:tv {: RESULT= single(tv); :} @@ -427,11 +427,11 @@ pexpr ::= identifier:id {: RESULT = id; :} | index_expr:i {: RESULT = i; :} | member_expr:m LPAR expr_list:l RPAR:rpar {: RESULT = new MethodCallExpr(mxleft, rparxright, m, l); :} | identifier:id LPAR expr_list:l RPAR:rpar {: RESULT = new CallExpr(idxleft, rparxright, id, l); :} - | pexpr:p1 PLUS:bo pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, bo, p2); :} - | pexpr:p1 MINUS:bo pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, bo, p2); :} - | pexpr:p1 MUL:bo pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, bo, p2); :} - | pexpr:p1 DIV:bo pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, bo, p2); :} - | pexpr:p1 MOD:bo pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, bo, p2); :} + | pexpr:p1 PLUS:bo pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, bo, p2); :} + | pexpr:p1 MINUS:bo pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, bo, p2); :} + | pexpr:p1 MUL:bo pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, bo, p2); :} + | pexpr:p1 DIV:bo pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, bo, p2); :} + | pexpr:p1 MOD:bo pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, bo, p2); :} | MINUS:m pexpr:p {: RESULT = new UnaryExpr(mxleft, pxright, m, p); :} ; @@ -440,17 +440,16 @@ expr_list ::= expr:e {: RESULT = single(e); | {: RESULT = new ArrayList(); :} ; - -/* bin_op */ +/* bin_op */ //We may still be able to use bin_op, so I left it here. bin_op ::= PLUS:a {: RESULT = new StringLiteral(axleft, axright, "+"); :} | MINUS:a {: RESULT = new StringLiteral(axleft, axright, "-"); :} | MUL:a {: RESULT = new StringLiteral(axleft, axright, "*"); :} - | DIV:a {: RESULT = new StringLiteral(axleft, axright, "/"); :} + | DIV:a {: RESULT = new StringLiteral(axleft, axright, "//"); :} //Section 2.6.3 in chocopy language reference | MOD:a {: RESULT = new StringLiteral(axleft, axright, "%"); :} ; -/* comp_op */ +/* comp_op */ //this might also need some change in order not to break left associativity comp_op ::= EQUAL:a {: RESULT = new StringLiteral(axleft, axright, "=="); :} | NEQ:a {: RESULT = new StringLiteral(axleft, axright, "!="); :} | LEQ:a {: RESULT = new StringLiteral(axleft, axright, "<="); :} diff --git a/src/main/jflex/chocopy/pa1/ChocoPy.jflex b/src/main/jflex/chocopy/pa1/ChocoPy.jflex index 8699d5c..43a7f03 100644 --- a/src/main/jflex/chocopy/pa1/ChocoPy.jflex +++ b/src/main/jflex/chocopy/pa1/ChocoPy.jflex @@ -46,7 +46,6 @@ import java.util.ArrayList; /** Return a terminal symbol of syntactic category TYPE and semantic * value VALUE at the current source location. */ private Symbol symbol(int type, Object value) { - //System.out.println(yytext() + ChocoPyTokens.terminalNames[type]); return symbolFactory.newSymbol(ChocoPyTokens.terminalNames[type], type, new ComplexSymbolFactory.Location(yyline + 1, yycolumn + 1), new ComplexSymbolFactory.Location(yyline + 1,yycolumn + yylength()), @@ -136,7 +135,6 @@ if True: AFTER state. */ pop(); - //System.out.println("dedent"); return symbol(ChocoPyTokens.DEDENT, currIndent); } /*Otherwise, we will start dealing with the rest @@ -149,7 +147,6 @@ if True: current level should have, start a new level which will have `currIndent' indents. */ - //System.out.println("indent"); push(currIndent); return symbol(ChocoPyTokens.INDENT, currIndent); From ca13d4c461509ea07cb08a6f253108424bf0ef79 Mon Sep 17 00:00:00 2001 From: bill Date: Sun, 21 Feb 2021 17:55:07 +0800 Subject: [PATCH 22/52] Fixed failure on test bad_indentation.py --- src/main/jflex/chocopy/pa1/ChocoPy.jflex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/jflex/chocopy/pa1/ChocoPy.jflex b/src/main/jflex/chocopy/pa1/ChocoPy.jflex index 43a7f03..55446aa 100644 --- a/src/main/jflex/chocopy/pa1/ChocoPy.jflex +++ b/src/main/jflex/chocopy/pa1/ChocoPy.jflex @@ -149,7 +149,10 @@ if True: */ push(currIndent); - return symbol(ChocoPyTokens.INDENT, currIndent); + return symbolFactory.newSymbol(ChocoPyTokens.terminalNames[ChocoPyTokens.INDENT], ChocoPyTokens.INDENT, + new ComplexSymbolFactory.Location(yyline + 1, yycolumn - 1), + new ComplexSymbolFactory.Location(yyline + 1,yycolumn + yylength()), + currIndent); } } } From 0c5f9b6d8b7ef216c23dffe592036e4e202e1b3e Mon Sep 17 00:00:00 2001 From: Apoorva Ranade Date: Mon, 22 Feb 2021 10:18:59 +0530 Subject: [PATCH 23/52] Adding tests --- src/test/data/pa1/student_contributed/bad.py | 30 ++++++++ src/test/data/pa1/student_contributed/good.py | 69 ++++++++++++++++++- 2 files changed, 98 insertions(+), 1 deletion(-) diff --git a/src/test/data/pa1/student_contributed/bad.py b/src/test/data/pa1/student_contributed/bad.py index b85905e..56f38a7 100644 --- a/src/test/data/pa1/student_contributed/bad.py +++ b/src/test/data/pa1/student_contributed/bad.py @@ -1 +1,31 @@ 1 2 3 + +def fun5(): + c = 6 + def fun6(): + print("Hello") + c = 4 + 5 + +if True: + if True: + print("Hello") + if True: + print("Maybe") + else: + print("World") +else: + print("Again") +else: + print("And Again") + +class Thor(object): + y:int = 0 + print("Right place?") + +class Stones(object): + y:int = 0 + def fun(x:int): + print("Right place?") + def bar(): + return 2+3 + print("Wrong Place") diff --git a/src/test/data/pa1/student_contributed/good.py b/src/test/data/pa1/student_contributed/good.py index 8138b36..6d27ff6 100644 --- a/src/test/data/pa1/student_contributed/good.py +++ b/src/test/data/pa1/student_contributed/good.py @@ -1 +1,68 @@ -1 + 2 + 3 + +print("Hi") +def fun1(): + def fun2(): + print("Hello") + +print("World") + +def fun3(): + def fun4(): + print("Hello") + c = 4 + 5 + +def fun5(): + c = 6 + def fun6(): + print("Hello") + c = 4 + 5 + + +if True: + if True: + if True: + print("Hello") +print("World") + +if True: + if True: + if True: + print("Hello") + print("World") + +if True: + if True: + if True: + print("Hello") + print("World") + +if True: + if True: + if True: + print("Hello") + else: + print("World") + +if True: + if True: + if True: + print("Hello") +else: + print("World") + +class Foo(object): + x:int = 0 + + def __init__(self:"Foo", x:int): + self.x = x + + def bar(y:int)->None: + print("Hello World!",self.x+y) + y = 10 + +f = Foo(1) +print(f.x) +f.bar(4) + +a=[[[1],[2]][[3],[4]]] +print(a[0][0][1]*a[1][1][0]) \ No newline at end of file From f6091d744f9ab13fa24088aea881aeec751a9259 Mon Sep 17 00:00:00 2001 From: ar6496 <78793916+ar6496@users.noreply.github.com> Date: Mon, 22 Feb 2021 10:39:50 +0530 Subject: [PATCH 24/52] Create WORKLOG.md --- WORKLOG.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 WORKLOG.md diff --git a/WORKLOG.md b/WORKLOG.md new file mode 100644 index 0000000..612c819 --- /dev/null +++ b/WORKLOG.md @@ -0,0 +1,17 @@ +Compiler Construction PA1 Worklog +
+
Team: +
Apoorva Ranade(ar6496) +
Sanjar Ahmadov(sa5640) +
Yinqi Sun(ys3540) +
+
Acknowledgments: Provide attribution to any collaborations, external resources, or out-side help. +
+
Indentation: Describe your strategy for handling INDENT and DEDENT tokens. Point to the relevant source files and line numbers. +
A stack is maintained by the lexer to keep track of indentations. A count is accumulated for the number of whitespace characters before the first token. If the count changes from the previous line count, a stack operation is performed. If count increases, another value is added to the stack. If count decreases, the topmost value is popped from the stack. +
+
Challenges: Describe any challenges (besides indentation) you encountered and the way you solved them. Mention the approaches that did not work, if any. +
+
+
Improvements: Describe any improvements you introduced that were not strictly necessary to pass the tests, such as implementing additional functionality, adding new tests, or enabling static analysis. +
Added more tests to rigorously check program flow and indentation. From 609903851d29089cf143810f28bb5e95e0c9fa22 Mon Sep 17 00:00:00 2001 From: bill Date: Mon, 22 Feb 2021 16:42:06 +0800 Subject: [PATCH 25/52] Bug fixes: Catching Indentation Errors. A typo on regex of Identifiers Potential fixes on allowing function body with only definations. (not applied) TODO: Allowing a program to have interleaving definations and statements? --- src/main/cup/chocopy/pa1/ChocoPy.cup | 31 +++++++++++++++++++----- src/main/jflex/chocopy/pa1/ChocoPy.jflex | 28 ++++++++++++++++++--- 2 files changed, 50 insertions(+), 9 deletions(-) diff --git a/src/main/cup/chocopy/pa1/ChocoPy.cup b/src/main/cup/chocopy/pa1/ChocoPy.cup index 15340a3..20db76b 100644 --- a/src/main/cup/chocopy/pa1/ChocoPy.cup +++ b/src/main/cup/chocopy/pa1/ChocoPy.cup @@ -1,4 +1,5 @@ import java.util.ArrayList; +import java.util.Iterator; import java.util.List; import java_cup.runtime.*; @@ -113,12 +114,26 @@ action code {: } return list; } - + List combine(List list, List item) { + if (item != null) { + Iterator it = item.iterator(); + while(it.hasNext()) + list.add(it.next()); + } + return list; + } /** Return a mutable empty list. */ List empty() { return new ArrayList(); } - + class FuncBody { + public List fbd; + public List sl; + public FuncBody(List fbd, List sl){ + this.fbd = fbd; + this.sl = sl; + } + } /** Return the leftmost non-whitespace location in NODES, or null if NODES * is empty. Assumes that the nodes of NODES are ordered in increasing * order of location, from left to right. */ @@ -228,7 +243,7 @@ terminal String IS; /* Returned by the lexer for erroneous tokens. Since it does not appear in * the grammar, it indicates a syntax error. */ -terminal UNRECOGNIZED; +terminal String UNRECOGNIZED; /* Nonterminal symbols (defined in production rules below). * As for terminal symbols, @@ -236,7 +251,7 @@ terminal UNRECOGNIZED; * defines the listed nonterminal identifier symbols to have semantic values * of type . */ non terminal Program program; -non terminal List program_head, class_body, class_body_defs, fun_body_decs; +non terminal List defs, program_head, opt_program_head, class_body, class_body_defs, fun_body_decs; non terminal List stmt_list, opt_stmt_list, block, else_body; non terminal Stmt stmt, simple_stmt; non terminal Expr expr, pexpr, cexpr; @@ -255,7 +270,7 @@ non terminal List opt_target, expr_list; non terminal Expr target; non terminal MemberExpr member_expr; non terminal IndexExpr index_expr; - +non terminal FuncBody fun_body; @@ -330,7 +345,11 @@ typed_vars ::= typed_var:tv {: RESULT= single(tv ; -/* fun_body */ +/* fun_body */ +fun_body ::= fun_body_decs:fbd stmt_list:sl {: RESULT = new FuncBody(fbd, sl);:} + | fun_body_decs:fbd {: RESULT = new FuncBody(fbd, new ArrayList());:} + ; + fun_body_decs ::= fun_body_decs:fbd global_decl:gd {: RESULT= combine(fbd, gd); :} | fun_body_decs:fbd nonlocal_decl:nd {: RESULT= combine(fbd, nd); :} | fun_body_decs:fbd var_def:vd {: RESULT= combine(fbd, vd); :} diff --git a/src/main/jflex/chocopy/pa1/ChocoPy.jflex b/src/main/jflex/chocopy/pa1/ChocoPy.jflex index 55446aa..de6ec6c 100644 --- a/src/main/jflex/chocopy/pa1/ChocoPy.jflex +++ b/src/main/jflex/chocopy/pa1/ChocoPy.jflex @@ -1,6 +1,7 @@ package chocopy.pa1; import java_cup.runtime.*; import java.util.ArrayList; +import java.util.Iterator; %% /*** Do not change the flags below unless you know what you are doing. ***/ @@ -37,6 +38,7 @@ import java.util.ArrayList; private int str_l = 0, str_c = 0; //Start location of a string. /*A stack that keeps track of the spaces in each Indentation Level*/ private ArrayList stack = new ArrayList(20); + private boolean indentErrorUnchecked = true; /** Return a terminal symbol of syntactic category TYPE and no * semantic value at the current source location. */ private Symbol symbol(int type) { @@ -63,6 +65,15 @@ import java.util.ArrayList; if(stack.isEmpty()) return 0; return stack.get(stack.size() - 1); } + private boolean find(int indent){ + if(indent == 0) return true; + Iterator it = stack.iterator(); + while(it.hasNext()){ + if(it.next() == indent) + return true; + } + return false; + } %} /* Macros (regexes used in rules below) */ @@ -72,7 +83,7 @@ LineBreak = \r|\n|\r\n IntegerLiteral = 0|[1-9][0-9]* // Accroding to the manual, 00+ is illeagal StringLiteral = ([^\"\\]|(\\\")|(\\t)|(\\r)|(\\n)|(\\\\))+ // \n, \r, \t, \\, \" and Anything except \ and " -Identifiers = (_|[a-z]|[A-Z])(_|[a-z]|[A-Z][0-9])* +Identifiers = (_|[a-z]|[A-Z])(_|[a-z]|[A-Z]|[0-9])* Comments = #[^\r\n]* %% //YYINITIAL state is where we're dealing with indentations. @@ -135,7 +146,18 @@ if True: AFTER state. */ pop(); - return symbol(ChocoPyTokens.DEDENT, currIndent); + if(top() < currIndent) + { + currIndent = top(); + return symbolFactory.newSymbol("", ChocoPyTokens.UNRECOGNIZED, + new ComplexSymbolFactory.Location(yyline + 1, yycolumn - 1), + new ComplexSymbolFactory.Location(yyline + 1,yycolumn + yylength()), + currIndent); + } + return symbolFactory.newSymbol(ChocoPyTokens.terminalNames[ChocoPyTokens.DEDENT], ChocoPyTokens.DEDENT, + new ComplexSymbolFactory.Location(yyline + 1, yycolumn - 1), + new ComplexSymbolFactory.Location(yyline + 1,yycolumn + yylength()), + currIndent); } /*Otherwise, we will start dealing with the rest of the line after indentation in AFTER state. */ @@ -159,7 +181,7 @@ if True: { /* Delimiters. */ - {LineBreak} { yybegin(YYINITIAL); currIndent = 0;return symbol(ChocoPyTokens.NEWLINE);} + {LineBreak} { yybegin(YYINITIAL); currIndent = 0;indentErrorUnchecked = true; return symbol(ChocoPyTokens.NEWLINE);} ":" { return symbol(ChocoPyTokens.COLON); } "," { return symbol(ChocoPyTokens.COMMA); } From 6bcd40cbf9e2c1160ee57f291063c0dafc4ab392 Mon Sep 17 00:00:00 2001 From: Apoorva Ranade Date: Mon, 22 Feb 2021 19:32:37 +0530 Subject: [PATCH 26/52] Updating tests --- src/test/data/pa1/student_contributed/bad.py | 4 ++++ src/test/data/pa1/student_contributed/good.py | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/test/data/pa1/student_contributed/bad.py b/src/test/data/pa1/student_contributed/bad.py index 56f38a7..68e3773 100644 --- a/src/test/data/pa1/student_contributed/bad.py +++ b/src/test/data/pa1/student_contributed/bad.py @@ -29,3 +29,7 @@ class Stones(object): def bar(): return 2+3 print("Wrong Place") + +def fun1(): + def fun2(): + print("Hello") diff --git a/src/test/data/pa1/student_contributed/good.py b/src/test/data/pa1/student_contributed/good.py index 6d27ff6..b0812da 100644 --- a/src/test/data/pa1/student_contributed/good.py +++ b/src/test/data/pa1/student_contributed/good.py @@ -3,7 +3,8 @@ print("Hi") def fun1(): def fun2(): print("Hello") - + fun2() + print("World") def fun3(): From 534b043c62d1b0d6ff38dea2fed42a9cd233d2be Mon Sep 17 00:00:00 2001 From: ar6496 <78793916+ar6496@users.noreply.github.com> Date: Mon, 22 Feb 2021 20:02:16 +0530 Subject: [PATCH 27/52] Update WORKLOG.md --- WORKLOG.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/WORKLOG.md b/WORKLOG.md index 612c819..72ea5a9 100644 --- a/WORKLOG.md +++ b/WORKLOG.md @@ -11,7 +11,10 @@ Compiler Construction PA1 Worklog
A stack is maintained by the lexer to keep track of indentations. A count is accumulated for the number of whitespace characters before the first token. If the count changes from the previous line count, a stack operation is performed. If count increases, another value is added to the stack. If count decreases, the topmost value is popped from the stack.

Challenges: Describe any challenges (besides indentation) you encountered and the way you solved them. Mention the approaches that did not work, if any. -
+
Shift-reduce errors while parsing the grammar. One approach to fix is to change the grammar. We chose to fix this issue by adding a precedence as in the case of expr by adding right precedence for if and else. +
Handling errors was another challenge. This required debugging and small changes to program flow. +
Understanding the giving code was a small challenge and took some time before we could start coding.

Improvements: Describe any improvements you introduced that were not strictly necessary to pass the tests, such as implementing additional functionality, adding new tests, or enabling static analysis.
Added more tests to rigorously check program flow and indentation. +
Function body must have atleast oone statement which is not a part of a nested function. From 53aaa5c140ca319fe8efe16c901b8a878861ad5f Mon Sep 17 00:00:00 2001 From: Apoorva Ranade Date: Mon, 22 Feb 2021 20:13:27 +0530 Subject: [PATCH 28/52] Updating tests for multi-line strings --- src/test/data/pa1/student_contributed/good.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/test/data/pa1/student_contributed/good.py b/src/test/data/pa1/student_contributed/good.py index b0812da..4c01c88 100644 --- a/src/test/data/pa1/student_contributed/good.py +++ b/src/test/data/pa1/student_contributed/good.py @@ -66,4 +66,12 @@ print(f.x) f.bar(4) a=[[[1],[2]][[3],[4]]] -print(a[0][0][1]*a[1][1][0]) \ No newline at end of file +print(a[0][0][1]*a[1][1][0]) + +multiline_string="Hi World, +Here I am" + +""" +This is a +multi-line comment. +""" \ No newline at end of file From c21b761c55fff456c8aaa3f3454bc788a28548cd Mon Sep 17 00:00:00 2001 From: Apoorva Ranade Date: Wed, 24 Feb 2021 10:48:45 +0530 Subject: [PATCH 29/52] Updating tests yet again --- src/test/data/pa1/student_contributed/good.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/test/data/pa1/student_contributed/good.py b/src/test/data/pa1/student_contributed/good.py index 4c01c88..88f20ca 100644 --- a/src/test/data/pa1/student_contributed/good.py +++ b/src/test/data/pa1/student_contributed/good.py @@ -74,4 +74,15 @@ Here I am" """ This is a multi-line comment. -""" \ No newline at end of file +""" + + +def get_stones(name:str)->str: + color=['Red','Blue'] + stones=['Mind','Soul'] + def map_name(nm:str)->str: + return stones[color.index(nm)] + return map_name(name) + +stone="Blue" +print(get_stones(stone)) \ No newline at end of file From 9f6d969d2dbb0e8d1f579fab246ec76163fc3e64 Mon Sep 17 00:00:00 2001 From: ar6496 <78793916+ar6496@users.noreply.github.com> Date: Wed, 24 Feb 2021 18:59:14 +0530 Subject: [PATCH 30/52] Update WORKLOG.md --- WORKLOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/WORKLOG.md b/WORKLOG.md index 72ea5a9..7b7b13f 100644 --- a/WORKLOG.md +++ b/WORKLOG.md @@ -18,3 +18,4 @@ Compiler Construction PA1 Worklog
Improvements: Describe any improvements you introduced that were not strictly necessary to pass the tests, such as implementing additional functionality, adding new tests, or enabling static analysis.
Added more tests to rigorously check program flow and indentation.
Function body must have atleast oone statement which is not a part of a nested function. +
Support for multi-line strings. From 0a0b308dcc60a21f880beafdf293208151ce8e87 Mon Sep 17 00:00:00 2001 From: Apoorva Ranade Date: Fri, 26 Feb 2021 19:10:23 +0530 Subject: [PATCH 31/52] Modifying Tests --- src/test/data/pa1/student_contributed/good.py | 42 ++++++++----------- 1 file changed, 17 insertions(+), 25 deletions(-) diff --git a/src/test/data/pa1/student_contributed/good.py b/src/test/data/pa1/student_contributed/good.py index 88f20ca..000fffe 100644 --- a/src/test/data/pa1/student_contributed/good.py +++ b/src/test/data/pa1/student_contributed/good.py @@ -1,11 +1,24 @@ +class Foo(object): + x:int = 0 + + def __init__(self:"Foo", x:int): + self.x = x + + def bar(y:int): + print("Hello World!",self.x+y) + y = 10 + +def get_stones(name:str)->str: + color=["Red","Blue"] + stones=["Mind","Soul"] + def map_name(nm:str)->str: + return stones[color.index(nm)] + return map_name(name) -print("Hi") def fun1(): def fun2(): print("Hello") fun2() - -print("World") def fun3(): def fun4(): @@ -51,38 +64,17 @@ if True: else: print("World") -class Foo(object): - x:int = 0 - def __init__(self:"Foo", x:int): - self.x = x - - def bar(y:int)->None: - print("Hello World!",self.x+y) - y = 10 f = Foo(1) print(f.x) f.bar(4) -a=[[[1],[2]][[3],[4]]] +a=[[[1],[2]],[[3],[4]]] print(a[0][0][1]*a[1][1][0]) multiline_string="Hi World, Here I am" -""" -This is a -multi-line comment. -""" - - -def get_stones(name:str)->str: - color=['Red','Blue'] - stones=['Mind','Soul'] - def map_name(nm:str)->str: - return stones[color.index(nm)] - return map_name(name) - stone="Blue" print(get_stones(stone)) \ No newline at end of file From d7a9aab8a47eb6177d0a00bf532e7af7e3c5fb43 Mon Sep 17 00:00:00 2001 From: Apoorva Ranade Date: Fri, 26 Feb 2021 19:14:42 +0530 Subject: [PATCH 32/52] Working tests --- src/test/data/pa1/student_contributed/good.py | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/test/data/pa1/student_contributed/good.py b/src/test/data/pa1/student_contributed/good.py index 000fffe..093076f 100644 --- a/src/test/data/pa1/student_contributed/good.py +++ b/src/test/data/pa1/student_contributed/good.py @@ -9,26 +9,26 @@ class Foo(object): y = 10 def get_stones(name:str)->str: - color=["Red","Blue"] - stones=["Mind","Soul"] def map_name(nm:str)->str: return stones[color.index(nm)] + color=["Red","Blue"] + stones=["Mind","Soul"] return map_name(name) -def fun1(): - def fun2(): +def funa(): + def funb(): print("Hello") - fun2() + funb() -def fun3(): - def fun4(): +def fund(): + def fune(): print("Hello") c = 4 + 5 -def fun5(): - c = 6 - def fun6(): +def funf(): + def fung(): print("Hello") + c = 6 c = 4 + 5 From a80842e6563483472a43ee8b7386c7d080f84e38 Mon Sep 17 00:00:00 2001 From: ar6496 <78793916+ar6496@users.noreply.github.com> Date: Fri, 26 Feb 2021 19:44:37 +0530 Subject: [PATCH 33/52] Update WORKLOG.md --- WORKLOG.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/WORKLOG.md b/WORKLOG.md index 7b7b13f..6824dcd 100644 --- a/WORKLOG.md +++ b/WORKLOG.md @@ -5,17 +5,16 @@ Compiler Construction PA1 Worklog
Sanjar Ahmadov(sa5640)
Yinqi Sun(ys3540)
-
Acknowledgments: Provide attribution to any collaborations, external resources, or out-side help.
-
Indentation: Describe your strategy for handling INDENT and DEDENT tokens. Point to the relevant source files and line numbers. +
Indentation:
A stack is maintained by the lexer to keep track of indentations. A count is accumulated for the number of whitespace characters before the first token. If the count changes from the previous line count, a stack operation is performed. If count increases, another value is added to the stack. If count decreases, the topmost value is popped from the stack.
-
Challenges: Describe any challenges (besides indentation) you encountered and the way you solved them. Mention the approaches that did not work, if any. +
Challenges:
Shift-reduce errors while parsing the grammar. One approach to fix is to change the grammar. We chose to fix this issue by adding a precedence as in the case of expr by adding right precedence for if and else.
Handling errors was another challenge. This required debugging and small changes to program flow.
Understanding the giving code was a small challenge and took some time before we could start coding.
-
Improvements: Describe any improvements you introduced that were not strictly necessary to pass the tests, such as implementing additional functionality, adding new tests, or enabling static analysis. +
Improvements:
Added more tests to rigorously check program flow and indentation.
Function body must have atleast oone statement which is not a part of a nested function.
Support for multi-line strings. From c8f40451c02b9d253e858d2e0b01dcab071f246c Mon Sep 17 00:00:00 2001 From: Sanjar Date: Fri, 26 Feb 2021 09:15:40 -0500 Subject: [PATCH 34/52] Update WORKLOG.md --- WORKLOG.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/WORKLOG.md b/WORKLOG.md index 6824dcd..28c3037 100644 --- a/WORKLOG.md +++ b/WORKLOG.md @@ -10,11 +10,11 @@ Compiler Construction PA1 Worklog
A stack is maintained by the lexer to keep track of indentations. A count is accumulated for the number of whitespace characters before the first token. If the count changes from the previous line count, a stack operation is performed. If count increases, another value is added to the stack. If count decreases, the topmost value is popped from the stack.

Challenges: -
Shift-reduce errors while parsing the grammar. One approach to fix is to change the grammar. We chose to fix this issue by adding a precedence as in the case of expr by adding right precedence for if and else. -
Handling errors was another challenge. This required debugging and small changes to program flow. -
Understanding the giving code was a small challenge and took some time before we could start coding. +
- Shift-reduce errors while parsing the grammar. One approach to fix is to change the grammar. We chose to fix this issue by adding a precedence as in the case of expr by adding right precedence for if and else. +
- Handling errors was another challenge. This required debugging and small changes to program flow. +
- Understanding the giving code was a small challenge and took some time before we could start coding.

Improvements: -
Added more tests to rigorously check program flow and indentation. -
Function body must have atleast oone statement which is not a part of a nested function. -
Support for multi-line strings. +
- Added more tests to rigorously check program flow and indentation. +
- Function body must have atleast oone statement which is not a part of a nested function. +
- Support for multi-line strings. From b95bc53e66b39b180e4a7ab7f84d16ee14d7f3d0 Mon Sep 17 00:00:00 2001 From: ar6496 <78793916+ar6496@users.noreply.github.com> Date: Fri, 26 Feb 2021 19:47:01 +0530 Subject: [PATCH 35/52] Update WORKLOG.md --- WORKLOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/WORKLOG.md b/WORKLOG.md index 28c3037..3386e5e 100644 --- a/WORKLOG.md +++ b/WORKLOG.md @@ -16,5 +16,4 @@ Compiler Construction PA1 Worklog

Improvements:
- Added more tests to rigorously check program flow and indentation. -
- Function body must have atleast oone statement which is not a part of a nested function.
- Support for multi-line strings. From c011c1b819c62230b10daf63f326ba3a6adc18e0 Mon Sep 17 00:00:00 2001 From: sunyinqi0508 Date: Fri, 26 Feb 2021 22:20:27 +0800 Subject: [PATCH 36/52] Update WORKLOG.md --- WORKLOG.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/WORKLOG.md b/WORKLOG.md index 3386e5e..34839e8 100644 --- a/WORKLOG.md +++ b/WORKLOG.md @@ -1,19 +1,19 @@ -Compiler Construction PA1 Worklog +# Compiler Construction PA1 Worklog
-
Team: +## Team:
Apoorva Ranade(ar6496)
Sanjar Ahmadov(sa5640)
Yinqi Sun(ys3540)

-
Indentation: -
A stack is maintained by the lexer to keep track of indentations. A count is accumulated for the number of whitespace characters before the first token. If the count changes from the previous line count, a stack operation is performed. If count increases, another value is added to the stack. If count decreases, the topmost value is popped from the stack. +## Indentation: + - A stack is maintained by the lexer to keep track of indentations. A count is accumulated for the number of whitespace characters before the first token. If the count changes from the previous line count, a stack operation is performed. If count increases, another value is added to the stack. If count decreases, the topmost value is popped from the stack.
-
Challenges: -
- Shift-reduce errors while parsing the grammar. One approach to fix is to change the grammar. We chose to fix this issue by adding a precedence as in the case of expr by adding right precedence for if and else. -
- Handling errors was another challenge. This required debugging and small changes to program flow. -
- Understanding the giving code was a small challenge and took some time before we could start coding. -
-
Improvements: -
- Added more tests to rigorously check program flow and indentation. -
- Support for multi-line strings. +## Challenges: + - Shift-reduce errors while parsing the grammar. One approach to fix is to change the grammar. We chose to fix this issue by adding a precedence as in the case of expr by adding right precedence for if and else. + - Handling errors was another challenge. This required debugging and small changes to program flow. + - Understanding the giving code was a small challenge and took some time before we could start coding. + +## Improvements: + - Added more tests to rigorously check program flow and indentation. + - Support for multi-line strings. From 75f46461615a0597b1ead24bf706a93472dd2418 Mon Sep 17 00:00:00 2001 From: sunyinqi0508 Date: Fri, 26 Feb 2021 22:20:51 +0800 Subject: [PATCH 37/52] Update WORKLOG.md --- WORKLOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WORKLOG.md b/WORKLOG.md index 34839e8..2c62e57 100644 --- a/WORKLOG.md +++ b/WORKLOG.md @@ -1,5 +1,5 @@ # Compiler Construction PA1 Worklog -
+ ## Team:
Apoorva Ranade(ar6496)
Sanjar Ahmadov(sa5640) @@ -8,7 +8,7 @@
## Indentation: - A stack is maintained by the lexer to keep track of indentations. A count is accumulated for the number of whitespace characters before the first token. If the count changes from the previous line count, a stack operation is performed. If count increases, another value is added to the stack. If count decreases, the topmost value is popped from the stack. -
+ ## Challenges: - Shift-reduce errors while parsing the grammar. One approach to fix is to change the grammar. We chose to fix this issue by adding a precedence as in the case of expr by adding right precedence for if and else. - Handling errors was another challenge. This required debugging and small changes to program flow. From 2bba267990454c09448c30e8d109619551b57710 Mon Sep 17 00:00:00 2001 From: ar6496 <78793916+ar6496@users.noreply.github.com> Date: Fri, 26 Feb 2021 20:02:24 +0530 Subject: [PATCH 38/52] Update WORKLOG.md --- WORKLOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WORKLOG.md b/WORKLOG.md index 2c62e57..deaf23f 100644 --- a/WORKLOG.md +++ b/WORKLOG.md @@ -7,7 +7,7 @@

## Indentation: - - A stack is maintained by the lexer to keep track of indentations. A count is accumulated for the number of whitespace characters before the first token. If the count changes from the previous line count, a stack operation is performed. If count increases, another value is added to the stack. If count decreases, the topmost value is popped from the stack. + - A stack is maintained by the lexer to keep track of indentations. A count is accumulated for the number of whitespace characters before the first token. If the count changes from the previous line count, a stack operation is performed. If count increases, another value is added to the stack. If count decreases, the topmost value is popped from the stack. The file: src/main/jflex/chocopy/pa1/ChocoPy.jflex, lines from 100 to 182, contain the code for the same. Line 270 of the same file deals with additional dedents in case the input ends in an indented state. ## Challenges: - Shift-reduce errors while parsing the grammar. One approach to fix is to change the grammar. We chose to fix this issue by adding a precedence as in the case of expr by adding right precedence for if and else. From 016e8c76b8c03676299097ac4fdc50f8da49b47a Mon Sep 17 00:00:00 2001 From: ar6496 <78793916+ar6496@users.noreply.github.com> Date: Fri, 26 Feb 2021 20:03:53 +0530 Subject: [PATCH 39/52] Update WORKLOG.md --- WORKLOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WORKLOG.md b/WORKLOG.md index deaf23f..79a3ee8 100644 --- a/WORKLOG.md +++ b/WORKLOG.md @@ -7,7 +7,8 @@

## Indentation: - - A stack is maintained by the lexer to keep track of indentations. A count is accumulated for the number of whitespace characters before the first token. If the count changes from the previous line count, a stack operation is performed. If count increases, another value is added to the stack. If count decreases, the topmost value is popped from the stack. The file: src/main/jflex/chocopy/pa1/ChocoPy.jflex, lines from 100 to 182, contain the code for the same. Line 270 of the same file deals with additional dedents in case the input ends in an indented state. + - A stack is maintained by the lexer to keep track of indentations. A count is accumulated for the number of whitespace characters before the first token. If the count changes from the previous line count, a stack operation is performed. If count increases, another value is added to the stack. If count decreases, the topmost value is popped from the stack. + - The file: src/main/jflex/chocopy/pa1/ChocoPy.jflex, lines from 100 to 182, contain the code for the same. Line 270 of the same file deals with additional dedents in case the input ends in an indented state. ## Challenges: - Shift-reduce errors while parsing the grammar. One approach to fix is to change the grammar. We chose to fix this issue by adding a precedence as in the case of expr by adding right precedence for if and else. From e3bc6a32da0c82e0a5f1b0960ffa9d8781f6d50f Mon Sep 17 00:00:00 2001 From: ar6496 <78793916+ar6496@users.noreply.github.com> Date: Fri, 26 Feb 2021 20:04:13 +0530 Subject: [PATCH 40/52] Update WORKLOG.md --- WORKLOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WORKLOG.md b/WORKLOG.md index 79a3ee8..5d30c78 100644 --- a/WORKLOG.md +++ b/WORKLOG.md @@ -8,7 +8,8 @@
## Indentation: - A stack is maintained by the lexer to keep track of indentations. A count is accumulated for the number of whitespace characters before the first token. If the count changes from the previous line count, a stack operation is performed. If count increases, another value is added to the stack. If count decreases, the topmost value is popped from the stack. - - The file: src/main/jflex/chocopy/pa1/ChocoPy.jflex, lines from 100 to 182, contain the code for the same. Line 270 of the same file deals with additional dedents in case the input ends in an indented state. + - The file: src/main/jflex/chocopy/pa1/ChocoPy.jflex, lines from 100 to 182, contain the code for the stack. + - Line 270 of the same file deals with additional dedents in case the input ends in an indented state. ## Challenges: - Shift-reduce errors while parsing the grammar. One approach to fix is to change the grammar. We chose to fix this issue by adding a precedence as in the case of expr by adding right precedence for if and else. From 776e6001fd00793e0f177d56428490b00b42d35c Mon Sep 17 00:00:00 2001 From: Sanjar Ahmadov Date: Fri, 26 Feb 2021 09:42:15 -0500 Subject: [PATCH 41/52] Update styles --- src/main/jflex/chocopy/pa1/ChocoPy.jflex | 94 +++++++++++++----------- 1 file changed, 50 insertions(+), 44 deletions(-) diff --git a/src/main/jflex/chocopy/pa1/ChocoPy.jflex b/src/main/jflex/chocopy/pa1/ChocoPy.jflex index c297fab..cbfb668 100644 --- a/src/main/jflex/chocopy/pa1/ChocoPy.jflex +++ b/src/main/jflex/chocopy/pa1/ChocoPy.jflex @@ -180,30 +180,32 @@ if True: } } } + + { /* Delimiters. */ - {LineBreak} { yybegin(YYINITIAL); currIndent = 0;indentErrorUnchecked = true; return symbol(ChocoPyTokens.NEWLINE);} - ":" { return symbol(ChocoPyTokens.COLON); } - "," { return symbol(ChocoPyTokens.COMMA); } + {LineBreak} { yybegin(YYINITIAL); currIndent = 0;indentErrorUnchecked = true; return symbol(ChocoPyTokens.NEWLINE);} + ":" { return symbol(ChocoPyTokens.COLON); } + "," { return symbol(ChocoPyTokens.COMMA); } /* Literals. */ - {IntegerLiteral} { return symbol(ChocoPyTokens.NUMBER, + {IntegerLiteral} { return symbol(ChocoPyTokens.NUMBER, Integer.parseInt(yytext())); } - "\"" {yybegin(STR); str_l = yyline + 1; str_c = yycolumn + 1; currString = "";} //Start taking a string when see a " + "\"" { yybegin(STR); str_l = yyline + 1; str_c = yycolumn + 1; currString = ""; } //Start taking a string when see a " "False" { return symbol(ChocoPyTokens.BOOL, false); } "True" { return symbol(ChocoPyTokens.BOOL, true); } "None" { return symbol(ChocoPyTokens.NONE); } /*Keywords*/ - "if" {return symbol(ChocoPyTokens.IF);} - "else" {return symbol(ChocoPyTokens.ELSE);} - "elif" {return symbol(ChocoPyTokens.ELIF);} - "while" {return symbol(ChocoPyTokens.WHILE);} - "class" {return symbol(ChocoPyTokens.CLASS);} - "def" {return symbol(ChocoPyTokens.DEF);} - "lambda" {return symbol(ChocoPyTokens.LAMBDA);} + "if" { return symbol(ChocoPyTokens.IF); } + "else" { return symbol(ChocoPyTokens.ELSE); } + "elif" { return symbol(ChocoPyTokens.ELIF); } + "while" { return symbol(ChocoPyTokens.WHILE); } + "class" { return symbol(ChocoPyTokens.CLASS); } + "def" { return symbol(ChocoPyTokens.DEF); } + "lambda" { return symbol(ChocoPyTokens.LAMBDA); } "as" { return symbol(ChocoPyTokens.AS); } "for" { return symbol(ChocoPyTokens.FOR); } "global" { return symbol(ChocoPyTokens.GLOBAL); } @@ -227,47 +229,51 @@ if True: /* Operators. */ - "+" { return symbol(ChocoPyTokens.PLUS); } - "-" { return symbol(ChocoPyTokens.MINUS); } - "*" { return symbol(ChocoPyTokens.MUL); } - "//" { return symbol(ChocoPyTokens.DIV); } - "/" { return symbol(ChocoPyTokens.DIV); } //Accroding to manual, chocopy don't have fp division, '/', '//' should be integr division - "%" { return symbol(ChocoPyTokens.MOD); } - ">" { return symbol(ChocoPyTokens.GT); } - "<" { return symbol(ChocoPyTokens.LT); } - "==" { return symbol(ChocoPyTokens.EQUAL); } - "!=" { return symbol(ChocoPyTokens.NEQ); } - ">=" { return symbol(ChocoPyTokens.GEQ); } - "<=" { return symbol(ChocoPyTokens.LEQ); } - "=" { return symbol(ChocoPyTokens.ASSIGN); } - "and" { return symbol(ChocoPyTokens.AND); } - "or" { return symbol(ChocoPyTokens.OR); } - "not" { return symbol(ChocoPyTokens.NOT); } - "." { return symbol(ChocoPyTokens.DOT); } - "(" { return symbol(ChocoPyTokens.LPAR); } - ")" { return symbol(ChocoPyTokens.RPAR); } - "[" { return symbol(ChocoPyTokens.LBR); } - "]" { return symbol(ChocoPyTokens.RBR); } + "+" { return symbol(ChocoPyTokens.PLUS); } + "-" { return symbol(ChocoPyTokens.MINUS); } + "*" { return symbol(ChocoPyTokens.MUL); } + "//" { return symbol(ChocoPyTokens.DIV); } + "/" { return symbol(ChocoPyTokens.DIV); } //Accroding to manual, chocopy don't have fp division, '/', '//' should be integr division + "%" { return symbol(ChocoPyTokens.MOD); } + ">" { return symbol(ChocoPyTokens.GT); } + "<" { return symbol(ChocoPyTokens.LT); } + "==" { return symbol(ChocoPyTokens.EQUAL); } + "!=" { return symbol(ChocoPyTokens.NEQ); } + ">=" { return symbol(ChocoPyTokens.GEQ); } + "<=" { return symbol(ChocoPyTokens.LEQ); } + "=" { return symbol(ChocoPyTokens.ASSIGN); } + "and" { return symbol(ChocoPyTokens.AND); } + "or" { return symbol(ChocoPyTokens.OR); } + "not" { return symbol(ChocoPyTokens.NOT); } + "." { return symbol(ChocoPyTokens.DOT); } + "(" { return symbol(ChocoPyTokens.LPAR); } + ")" { return symbol(ChocoPyTokens.RPAR); } + "[" { return symbol(ChocoPyTokens.LBR); } + "]" { return symbol(ChocoPyTokens.RBR); } "->" { return symbol(ChocoPyTokens.ARROW); } "is" { return symbol(ChocoPyTokens.IS); } /*Identifiers*/ - {Identifiers} {return symbol(ChocoPyTokens.ID, yytext());} + {Identifiers} { return symbol(ChocoPyTokens.ID, yytext()); } + /* Whitespace. */ - {WhiteSpace} { /* ignore */ } + {WhiteSpace} { /* ignore */ } + /* Comment. */ - {Comments} { /* ignore */ } + {Comments} { /* ignore */ } } { - {StringLiteral} {currString += yytext();} - \\$ { /*'\' at the end of line, do nothing.*/ } - "\"" {yybegin(AFTER); return symbolFactory.newSymbol(ChocoPyTokens.terminalNames[ChocoPyTokens.STRING], ChocoPyTokens.STRING, - new ComplexSymbolFactory.Location(str_l, str_c), - new ComplexSymbolFactory.Location(yyline + 1,yycolumn + yylength()), - currString);} // accepted a ", return to AFTER state + {StringLiteral} { currString += yytext(); } + + \\$ { /*'\' at the end of line, do nothing.*/ } + + "\"" { yybegin(AFTER); return symbolFactory.newSymbol(ChocoPyTokens.terminalNames[ChocoPyTokens.STRING], ChocoPyTokens.STRING, + new ComplexSymbolFactory.Location(str_l, str_c), + new ComplexSymbolFactory.Location(yyline + 1,yycolumn + yylength()), + currString); } // accepted a ", return to AFTER state } -<> { if(!stack.isEmpty()){ return symbol(ChocoPyTokens.DEDENT, pop());} return symbol(ChocoPyTokens.EOF);} +<> { if(!stack.isEmpty()){ return symbol(ChocoPyTokens.DEDENT, pop());} return symbol(ChocoPyTokens.EOF); } /* Error fallback. */ -[^] { return symbol(ChocoPyTokens.UNRECOGNIZED); } +[^] { return symbol(ChocoPyTokens.UNRECOGNIZED); } From 1efee5e539631d384a15c54c3ac4780f48a54e8a Mon Sep 17 00:00:00 2001 From: bill Date: Mon, 1 Mar 2021 17:54:09 +0800 Subject: [PATCH 42/52] Fixed precedence on '-'. Passed additional tests. Comments on bad.py. Updated worklog. --- WORKLOG.md | 13 +++++++------ src/main/cup/chocopy/pa1/ChocoPy.cup | 13 +++++++++---- src/test/data/pa1/student_contributed/bad.py | 10 +++++++--- src/test/data/pa1/student_contributed/good.py | 4 +++- 4 files changed, 26 insertions(+), 14 deletions(-) diff --git a/WORKLOG.md b/WORKLOG.md index 5d30c78..68007bb 100644 --- a/WORKLOG.md +++ b/WORKLOG.md @@ -1,11 +1,9 @@ # Compiler Construction PA1 Worklog ## Team: -
Apoorva Ranade(ar6496) -
Sanjar Ahmadov(sa5640) -
Yinqi Sun(ys3540) -
+**Apoorva Ranade**(ar6496)   **Sanjar Ahmadov**(sa5640)   **Yinqi Sun**(ys3540)
+ ## Indentation: - A stack is maintained by the lexer to keep track of indentations. A count is accumulated for the number of whitespace characters before the first token. If the count changes from the previous line count, a stack operation is performed. If count increases, another value is added to the stack. If count decreases, the topmost value is popped from the stack. - The file: src/main/jflex/chocopy/pa1/ChocoPy.jflex, lines from 100 to 182, contain the code for the stack. @@ -13,8 +11,11 @@ ## Challenges: - Shift-reduce errors while parsing the grammar. One approach to fix is to change the grammar. We chose to fix this issue by adding a precedence as in the case of expr by adding right precedence for if and else. - - Handling errors was another challenge. This required debugging and small changes to program flow. - - Understanding the giving code was a small challenge and took some time before we could start coding. + - '-' can either be a minus operator or a negative sign, and these two have different precedence. We solved this by assigning '-' the correct precedence at the production rule where we know whether it is a minus operator or a negative sign. + - File: src/main/jflex/chocopy/pa1/ChocoPy.cup Line: 459 + - Handling errors was another challenge. This required debugging and small changes to program flow. It's also a collaborative effort between group members that completed different part of the project. + - Understanding the giving code was a small challenge since some parts are compiled into binary and it become harder for us to debug through the source code, therefore it took us some time before we could start coding. + - Differences between ChocoPy and Python sometimes get us confused. For example, ChocoPy doesn't allow a function body without any statements and global (unscoped) statements in between (class/function/variable) definitions. This made us fail tests that we didn't thought we should. We then thoroughly read the reference manual and make our implementation conform to the manual whenever we can. ## Improvements: - Added more tests to rigorously check program flow and indentation. diff --git a/src/main/cup/chocopy/pa1/ChocoPy.cup b/src/main/cup/chocopy/pa1/ChocoPy.cup index 1bcb484..44d7cfe 100644 --- a/src/main/cup/chocopy/pa1/ChocoPy.cup +++ b/src/main/cup/chocopy/pa1/ChocoPy.cup @@ -239,6 +239,7 @@ terminal String LBR; terminal String RBR; terminal String ARROW; terminal String IS; +terminal String UMINUS; /* Returned by the lexer for erroneous tokens. Since it does not appear in @@ -282,6 +283,7 @@ precedence left NOT; precedence nonassoc EQUAL, NEQ, LT, GT, LEQ, GEQ, IS; precedence left PLUS, MINUS; precedence left MUL, DIV, MOD; +precedence left UMINUS; precedence left DOT, COMMA, LBR, RBR; precedence right IF, ELSE; @@ -295,8 +297,11 @@ start with program; /* program */ program ::= program_head:d opt_stmt_list:s - {: RESULT = new Program(d.isEmpty() ? getLeft(s) : getLeft(d), - sxright, d, s, errors); + {: + ComplexSymbolFactory.Location left = d.isEmpty() ? getLeft(s) : getLeft(d); + if(left == null) + left = new ComplexSymbolFactory.Location(1,1); + RESULT = new Program(left, sxright, d, s, errors); :} ; @@ -400,7 +405,7 @@ else_body ::= ELSE:el COLON block:b {: RES simple_stmt ::= PASS:p {: RESULT = null; :} | expr:e {: RESULT = new ExprStmt(exleft, exright, e); :} | RETURN:r expr:e {: RESULT = new ReturnStmt(rxleft, exright, e); :} - | RETURN {: RESULT = null; :} + | RETURN:r {: RESULT = new ReturnStmt(rxleft, rxright, null); :} | opt_target:ot expr:e {: RESULT = new AssignStmt(getLeft(ot), exright, ot, e); :} ; @@ -451,7 +456,7 @@ pexpr ::= identifier:id {: RESULT = id; :} | pexpr:p1 MUL:bo pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, bo, p2); :} | pexpr:p1 DIV:bo pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, bo, p2); :} | pexpr:p1 MOD:bo pexpr:p2 {: RESULT = new BinaryExpr(p1xleft, p2xright, p1, bo, p2); :} - | MINUS:m pexpr:p {: RESULT = new UnaryExpr(mxleft, pxright, m, p); :} + | MINUS:m pexpr:p {: RESULT = new UnaryExpr(mxleft, pxright, m, p); :} %prec UMINUS ; expr_list ::= expr:e {: RESULT = single(e); :} diff --git a/src/test/data/pa1/student_contributed/bad.py b/src/test/data/pa1/student_contributed/bad.py index 68e3773..95bf0f0 100644 --- a/src/test/data/pa1/student_contributed/bad.py +++ b/src/test/data/pa1/student_contributed/bad.py @@ -4,8 +4,10 @@ def fun5(): c = 6 def fun6(): print("Hello") - c = 4 + 5 + c = 4 + 5 # Indentation error +# Global statements in between definitions +# (not allowed in the language manual) if True: if True: print("Hello") @@ -16,11 +18,11 @@ if True: else: print("Again") else: - print("And Again") + print("And Again") # Unmatched Else class Thor(object): y:int = 0 - print("Right place?") + print("Right place?") # Statement in class class Stones(object): y:int = 0 @@ -30,6 +32,8 @@ class Stones(object): return 2+3 print("Wrong Place") +# Functions without `statements' +# (not allowed in the language manual) def fun1(): def fun2(): print("Hello") diff --git a/src/test/data/pa1/student_contributed/good.py b/src/test/data/pa1/student_contributed/good.py index 093076f..874fa40 100644 --- a/src/test/data/pa1/student_contributed/good.py +++ b/src/test/data/pa1/student_contributed/good.py @@ -73,8 +73,10 @@ f.bar(4) a=[[[1],[2]],[[3],[4]]] print(a[0][0][1]*a[1][1][0]) -multiline_string="Hi World, +multiline_string="Hi World,\ Here I am" +expr_precedence = -a + b * (c + d) + stone="Blue" print(get_stones(stone)) \ No newline at end of file From 044a8a2efd35df4c2e5d2a04d0c29f2171a4adfb Mon Sep 17 00:00:00 2001 From: ldXiao Date: Wed, 10 Mar 2021 19:34:07 -0500 Subject: [PATCH 43/52] grade --- grade.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 grade.md diff --git a/grade.md b/grade.md new file mode 100644 index 0000000..465d3ff --- /dev/null +++ b/grade.md @@ -0,0 +1,41 @@ +# Grading + +Core Tests: 66/66 + +Extra: +- graph.py 5/5 +- mergesort.py 5/5 +- nesting.py 4/4 + +========================= + +Standard tests: 80/80 + +Work Log: 10/10 + +Additional Tests: 10/10 + +Code style: 10/10 + +Improvements: +3 + +Overall: 113/110 + + +# Parsing + +Your parser passed all tests, including the hidden ones, congratulations! Nice catch on the multiline string, which is a missing piece in the ChocoPy specification. Looking forward to your next project. + +# Testing + +Good work in the challenging cases in `good.py` like nested functions and class methods, and in `bad.py` like statements in class definition. + +It looks like you haven't added your own tests besides those in `good.py` and `bad.py`. We recommend pinning down more of your functionality with short, targeted tests in the future. + +# Process + +We generally recommend using pull requests over directly pushing into the master branch, especially when you want to work in parallel. As the project becomes more complex, you may appreciate the benefits of a more structured SDLC process. + +# Code + +Your code is clean and readable, with consistent naming convention and proper amount of comments. Well done. From 9446453747c0919c432212e091ae12e501f05a20 Mon Sep 17 00:00:00 2001 From: ldXiao Date: Fri, 12 Mar 2021 09:39:57 -0500 Subject: [PATCH 44/52] disclose hiden tests --- pa1-tests/README.md | 24 + pa1-tests/chocopy-ref.jar | Bin 0 -> 144764 bytes pa1-tests/core/bad_assign_expr1.py | 1 + pa1-tests/core/bad_assign_expr1.py.ast | 16 + pa1-tests/core/bad_assign_expr2.py | 1 + pa1-tests/core/bad_assign_expr2.py.ast | 16 + pa1-tests/core/bad_func_def.py | 6 + pa1-tests/core/bad_func_def.py.ast | 64 + pa1-tests/core/bad_indentation.py | 3 + pa1-tests/core/bad_indentation.py.ast | 47 + pa1-tests/core/bad_stmt.py | 4 + pa1-tests/core/bad_stmt.py.ast | 65 + pa1-tests/core/chained_mixed_assignments.py | 2 + .../core/chained_mixed_assignments.py.ast | 85 ++ pa1-tests/core/chained_var_assignments.py | 1 + pa1-tests/core/chained_var_assignments.py.ast | 32 + pa1-tests/core/class_attr.py | 4 + pa1-tests/core/class_attr.py.ast | 65 + pa1-tests/core/class_attr_get.py | 5 + pa1-tests/core/class_attr_get.py.ast | 91 ++ pa1-tests/core/class_attr_set.py | 5 + pa1-tests/core/class_attr_set.py.ast | 87 ++ pa1-tests/core/class_constructor.py | 8 + pa1-tests/core/class_constructor.py.ast | 159 +++ pa1-tests/core/class_method.py | 9 + pa1-tests/core/class_method.py.ast | 181 +++ pa1-tests/core/coverage.py | 38 + pa1-tests/core/coverage.py.ast | 613 ++++++++ pa1-tests/core/def_func.py | 4 + pa1-tests/core/def_func.py.ast | 48 + pa1-tests/core/def_func_args.py | 4 + pa1-tests/core/def_func_args.py.ast | 92 ++ pa1-tests/core/def_func_global.py | 7 + pa1-tests/core/def_func_global.py.ast | 105 ++ pa1-tests/core/def_func_nested.py | 10 + pa1-tests/core/def_func_nested.py.ast | 187 +++ pa1-tests/core/def_func_nonlocal.py | 11 + pa1-tests/core/def_func_nonlocal.py.ast | 186 +++ pa1-tests/core/expr_if.py | 1 + pa1-tests/core/expr_if.py.ast | 43 + pa1-tests/core/expr_if_chained.py | 1 + pa1-tests/core/expr_if_chained.py.ast | 67 + pa1-tests/core/expr_index.py | 1 + pa1-tests/core/expr_index.py.ast | 47 + pa1-tests/core/expr_plus.py | 1 + pa1-tests/core/expr_plus.py.ast | 39 + pa1-tests/core/expr_unary.py | 1 + pa1-tests/core/expr_unary.py.ast | 24 + pa1-tests/core/global.py | 5 + pa1-tests/core/global.py.ast | 63 + pa1-tests/core/literals.py | 7 + pa1-tests/core/literals.py.ast | 70 + pa1-tests/core/stmt_call.py | 1 + pa1-tests/core/stmt_call.py.ast | 28 + pa1-tests/core/stmt_for.py | 4 + pa1-tests/core/stmt_for.py.ast | 76 + pa1-tests/core/stmt_if.py | 3 + pa1-tests/core/stmt_if.py.ast | 29 + pa1-tests/core/stmt_if_elif.py | 6 + pa1-tests/core/stmt_if_elif.py.ast | 112 ++ pa1-tests/core/stmt_if_elif_else.py | 8 + pa1-tests/core/stmt_if_elif_else.py.ast | 129 ++ pa1-tests/core/stmt_ifelse.py | 5 + pa1-tests/core/stmt_ifelse.py.ast | 37 + pa1-tests/core/stmt_list_assign.py | 4 + pa1-tests/core/stmt_list_assign.py.ast | 88 ++ pa1-tests/core/stmt_while.py | 3 + pa1-tests/core/stmt_while.py.ast | 20 + pa1-tests/extra/graph.py | 52 + pa1-tests/extra/graph.py.ast | 1110 +++++++++++++++ pa1-tests/extra/mergesort.py | 62 + pa1-tests/extra/mergesort.py.ast | 1262 +++++++++++++++++ pa1-tests/extra/nesting.py | 45 + pa1-tests/extra/nesting.py.ast | 799 +++++++++++ pa1-tests/run-tests.sh | 23 + 75 files changed, 6562 insertions(+) create mode 100644 pa1-tests/README.md create mode 100644 pa1-tests/chocopy-ref.jar create mode 100644 pa1-tests/core/bad_assign_expr1.py create mode 100644 pa1-tests/core/bad_assign_expr1.py.ast create mode 100644 pa1-tests/core/bad_assign_expr2.py create mode 100644 pa1-tests/core/bad_assign_expr2.py.ast create mode 100644 pa1-tests/core/bad_func_def.py create mode 100644 pa1-tests/core/bad_func_def.py.ast create mode 100644 pa1-tests/core/bad_indentation.py create mode 100644 pa1-tests/core/bad_indentation.py.ast create mode 100644 pa1-tests/core/bad_stmt.py create mode 100644 pa1-tests/core/bad_stmt.py.ast create mode 100644 pa1-tests/core/chained_mixed_assignments.py create mode 100644 pa1-tests/core/chained_mixed_assignments.py.ast create mode 100644 pa1-tests/core/chained_var_assignments.py create mode 100644 pa1-tests/core/chained_var_assignments.py.ast create mode 100644 pa1-tests/core/class_attr.py create mode 100644 pa1-tests/core/class_attr.py.ast create mode 100644 pa1-tests/core/class_attr_get.py create mode 100644 pa1-tests/core/class_attr_get.py.ast create mode 100644 pa1-tests/core/class_attr_set.py create mode 100644 pa1-tests/core/class_attr_set.py.ast create mode 100644 pa1-tests/core/class_constructor.py create mode 100644 pa1-tests/core/class_constructor.py.ast create mode 100644 pa1-tests/core/class_method.py create mode 100644 pa1-tests/core/class_method.py.ast create mode 100644 pa1-tests/core/coverage.py create mode 100644 pa1-tests/core/coverage.py.ast create mode 100644 pa1-tests/core/def_func.py create mode 100644 pa1-tests/core/def_func.py.ast create mode 100644 pa1-tests/core/def_func_args.py create mode 100644 pa1-tests/core/def_func_args.py.ast create mode 100644 pa1-tests/core/def_func_global.py create mode 100644 pa1-tests/core/def_func_global.py.ast create mode 100644 pa1-tests/core/def_func_nested.py create mode 100644 pa1-tests/core/def_func_nested.py.ast create mode 100644 pa1-tests/core/def_func_nonlocal.py create mode 100644 pa1-tests/core/def_func_nonlocal.py.ast create mode 100644 pa1-tests/core/expr_if.py create mode 100644 pa1-tests/core/expr_if.py.ast create mode 100644 pa1-tests/core/expr_if_chained.py create mode 100644 pa1-tests/core/expr_if_chained.py.ast create mode 100644 pa1-tests/core/expr_index.py create mode 100644 pa1-tests/core/expr_index.py.ast create mode 100644 pa1-tests/core/expr_plus.py create mode 100644 pa1-tests/core/expr_plus.py.ast create mode 100644 pa1-tests/core/expr_unary.py create mode 100644 pa1-tests/core/expr_unary.py.ast create mode 100644 pa1-tests/core/global.py create mode 100644 pa1-tests/core/global.py.ast create mode 100644 pa1-tests/core/literals.py create mode 100644 pa1-tests/core/literals.py.ast create mode 100644 pa1-tests/core/stmt_call.py create mode 100644 pa1-tests/core/stmt_call.py.ast create mode 100644 pa1-tests/core/stmt_for.py create mode 100644 pa1-tests/core/stmt_for.py.ast create mode 100644 pa1-tests/core/stmt_if.py create mode 100644 pa1-tests/core/stmt_if.py.ast create mode 100644 pa1-tests/core/stmt_if_elif.py create mode 100644 pa1-tests/core/stmt_if_elif.py.ast create mode 100644 pa1-tests/core/stmt_if_elif_else.py create mode 100644 pa1-tests/core/stmt_if_elif_else.py.ast create mode 100644 pa1-tests/core/stmt_ifelse.py create mode 100644 pa1-tests/core/stmt_ifelse.py.ast create mode 100644 pa1-tests/core/stmt_list_assign.py create mode 100644 pa1-tests/core/stmt_list_assign.py.ast create mode 100644 pa1-tests/core/stmt_while.py create mode 100644 pa1-tests/core/stmt_while.py.ast create mode 100644 pa1-tests/extra/graph.py create mode 100644 pa1-tests/extra/graph.py.ast create mode 100644 pa1-tests/extra/mergesort.py create mode 100644 pa1-tests/extra/mergesort.py.ast create mode 100644 pa1-tests/extra/nesting.py create mode 100644 pa1-tests/extra/nesting.py.ast create mode 100755 pa1-tests/run-tests.sh diff --git a/pa1-tests/README.md b/pa1-tests/README.md new file mode 100644 index 0000000..b1395dd --- /dev/null +++ b/pa1-tests/README.md @@ -0,0 +1,24 @@ +# Tests for PA1: ChocoPy Parser + +Clone a student repository: +``` +TEAM="team" +git clone --branch=pa1final \ + https://github.com/nyu-compiler-construction/pa1-chocopy-parser-${TEAM} +``` + +Build it: +``` +cd pa1-chocopy-parser-${TEAM} +mvn clean package +``` + +Clone the tests _into_ the student repository: +``` +git clone https://github.com/nyu-compiler-construction/pa1-tests +``` + +Run the tests: +``` +./pa1-tests/run-tests.sh +``` \ No newline at end of file diff --git a/pa1-tests/chocopy-ref.jar b/pa1-tests/chocopy-ref.jar new file mode 100644 index 0000000000000000000000000000000000000000..31646a6ca4588df335c5496d7972482855979b76 GIT binary patch literal 144764 zcmaG{V|1ilx(zxV+qP||W7~Erw$ieKtMpCK-d#q6~bZebF@Ey8GjzM&m$+MDnu_OFU}|@Brhc{rlQIqCw?n8 zHYzJa&oB)yLr*g?Hd&|4G{?HN@5CT2M<*pW?OIx|>_8_eJ0YodB}XSSuEMmy3O>x6 z062*MVHS47igF8sqQXL>Lfk{$s!zSF4wLBh)r+D{w@nvB@h^8tF+C)c1p@&I{0ahs z@p%^$3wslL2Tw*5ds|z3J4Q=82Uiyc=L9t+`xQaB?*yGaD83-*B>t_XCn`mjl5tpR z>gU`%D3CLOzmFzBrwzWnGUQ|nACVBFO}zhEe_Sp^tkW)1#exs4v^oJTrlajrBmKZ0 zd~`TI?zMNZXo8AVeR)JZY{l1P_xIp&m`CEt6yT$kuWzQo%W);cS?=|rjBFoXk#6a9P=`PqmL$TTEZ!D^K6a}h!6t)e9Yd_d3a9B9g_lSoXqDkF~H z$``H*7?V-q-#uyHppKIe*tBW)u$rNf&{h5ZykuGyyWe6_i|X)pUD8)%I> zis{z}jacG%*c3K{eU$1N{S(zr2GQlp5D(FU1rD;xVthIV&qd8bNeDT6Vnsd8r+hxO z!Fh&7>9>XH@lY(a$ZeG8`r&tpB%`;e%Z&{)lPJQ}$GFbKC;h@nr-5&O#UFX#mzr2` z5RkA>M_~E?_%pIIvhj4bbY>JXc6Mm9Jl{rIJu6<&sSu`xFXT30U8^A+JQZJ34q8Ow!H- zlBKj$A6JuX-8S9)-rlcKK?=8QVQ8p5V*HbScl+yE@}0|zFy?>FfjbuRKv4KZv#wzTrbWZ!+KeaN$?YCp5GJuY%Y zhY27~o8V)d`dZ1@a~_D8M$9Y6Tfi0=utao~e>GYen{(A#l*)D(e97Ma+^^(I>mE&&+L9*+n6Os! z;iHs`6t+y=KjGNyKjV#g1a5?)qmB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0<^ZbLAJh@E`>7(P=Gyg|-faCFtNV#!x_TfRBYmU$GVVOJ+|u^| zwH%Q3=DL`Q%^%d?cJ;r;|L07>vmD)M9cZ^0z`kizq;~gm`D|?dWBnsMcU~6=j9{>U z0&e=Goc$k2Ep2nFJ0=H1U*L@&13#|>#EP3EueZZBJUk|g#op>9oyOaGEk=b8?fa!YxSmucYJyfy{0GBNGpfIodi0dgN-K>!wG24!ocIpNkoDOD;Sg0ZY{Y!t~9h zX2{_Ckpkvs7Qk|j)n7{wciT}dAyMHV;9^)n=%e_T6#=ueus^`RqsqV63GT+u;?K|k zOO#+Cz~{*g?DzOTu;$vvdO9}L8X8yYV;UNNj?Y2|qr)A5X*B_+b#vD3k#J4>cPs!| zn*y2Q9RoDw`;&t?R4}kGQ7|y-8-l${z8j?r>=A-!ZVu3QH~RLa+1L02V43{4onDLi zkIVmah4$@K`Syjr*F;@lfcX#NeQUF~?pV6!J^gYQ4`}tjZ(O=9-tCKhu5mv*uW@&~ z{Qr@~-@g9k8co~tC;GR~|23PvKakwMOXM2L3hc@LR_AYde?$L$v&d}?+`f0>nyB7? zKk>#b6t|JLEB;?2S%&^V{`N?L>*?{`wt2e-#5L7J->GdyZt);HPG|$F5vIB0^q-!`}bPiJqu$0-Z%iF+rOUPqr3QjzOsE=1-IYG zzDCj?-$ne#!T)(b`!@0RtIgL$4q)y2w?$qnRp5^oon^$KfOQmLo(BALKm_a}pa6jq G?EeF4FMZnp literal 0 HcmV?d00001 diff --git a/pa1-tests/core/bad_assign_expr1.py b/pa1-tests/core/bad_assign_expr1.py new file mode 100644 index 0000000..ccc8c3e --- /dev/null +++ b/pa1-tests/core/bad_assign_expr1.py @@ -0,0 +1 @@ +x = (y = 2) diff --git a/pa1-tests/core/bad_assign_expr1.py.ast b/pa1-tests/core/bad_assign_expr1.py.ast new file mode 100644 index 0000000..d134770 --- /dev/null +++ b/pa1-tests/core/bad_assign_expr1.py.ast @@ -0,0 +1,16 @@ +{ + "kind" : "Program", + "location" : [ 1, 6, 1, 6 ], + "declarations" : [ ], + "statements" : [ ], + "errors" : { + "errors" : [ { + "kind" : "CompilerError", + "location" : [ 1, 8, 1, 8 ], + "message" : "Parse error near token EQ: =", + "syntax" : true + } ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/bad_assign_expr2.py b/pa1-tests/core/bad_assign_expr2.py new file mode 100644 index 0000000..444bc53 --- /dev/null +++ b/pa1-tests/core/bad_assign_expr2.py @@ -0,0 +1 @@ +print(x = 1) diff --git a/pa1-tests/core/bad_assign_expr2.py.ast b/pa1-tests/core/bad_assign_expr2.py.ast new file mode 100644 index 0000000..53e699c --- /dev/null +++ b/pa1-tests/core/bad_assign_expr2.py.ast @@ -0,0 +1,16 @@ +{ + "kind" : "Program", + "location" : [ 1, 7, 1, 7 ], + "declarations" : [ ], + "statements" : [ ], + "errors" : { + "errors" : [ { + "kind" : "CompilerError", + "location" : [ 1, 9, 1, 9 ], + "message" : "Parse error near token EQ: =", + "syntax" : true + } ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/bad_func_def.py b/pa1-tests/core/bad_func_def.py new file mode 100644 index 0000000..ebd2373 --- /dev/null +++ b/pa1-tests/core/bad_func_def.py @@ -0,0 +1,6 @@ +def foo(a, b) -> 1: + x:int = a + return 1 + +print(1) +print(3**6) diff --git a/pa1-tests/core/bad_func_def.py.ast b/pa1-tests/core/bad_func_def.py.ast new file mode 100644 index 0000000..934bef0 --- /dev/null +++ b/pa1-tests/core/bad_func_def.py.ast @@ -0,0 +1,64 @@ +{ + "kind" : "Program", + "location" : [ 2, 13, 6, 8 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 2, 13, 2, 13 ], + "expr" : { + "kind" : "Identifier", + "location" : [ 2, 13, 2, 13 ], + "name" : "a" + } + }, { + "kind" : "ReturnStmt", + "location" : [ 3, 5, 3, 12 ], + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 3, 12, 3, 12 ], + "value" : 1 + } + }, { + "kind" : "ExprStmt", + "location" : [ 5, 1, 5, 8 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 5, 1, 5, 8 ], + "function" : { + "kind" : "Identifier", + "location" : [ 5, 1, 5, 5 ], + "name" : "print" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 5, 7, 5, 7 ], + "value" : 1 + } ] + } + } ], + "errors" : { + "errors" : [ { + "kind" : "CompilerError", + "location" : [ 1, 10, 1, 10 ], + "message" : "Parse error near token COMMA: ,", + "syntax" : true + }, { + "kind" : "CompilerError", + "location" : [ 2, 13, 2, 13 ], + "message" : "Parse error near token IDENTIFIER: a", + "syntax" : true + }, { + "kind" : "CompilerError", + "location" : [ 5, 1, 5, 0 ], + "message" : "Parse error near token DEDENT: ", + "syntax" : true + }, { + "kind" : "CompilerError", + "location" : [ 6, 9, 6, 9 ], + "message" : "Parse error near token TIMES: *", + "syntax" : true + } ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/bad_indentation.py b/pa1-tests/core/bad_indentation.py new file mode 100644 index 0000000..670b7ab --- /dev/null +++ b/pa1-tests/core/bad_indentation.py @@ -0,0 +1,3 @@ +x = 1 + y = 2 +z = 3 diff --git a/pa1-tests/core/bad_indentation.py.ast b/pa1-tests/core/bad_indentation.py.ast new file mode 100644 index 0000000..f37b92e --- /dev/null +++ b/pa1-tests/core/bad_indentation.py.ast @@ -0,0 +1,47 @@ +{ + "kind" : "Program", + "location" : [ 2, 3, 3, 6 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 2, 3, 2, 7 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 2, 3, 2, 3 ], + "name" : "y" + } ], + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 2, 7, 2, 7 ], + "value" : 2 + } + }, { + "kind" : "AssignStmt", + "location" : [ 3, 1, 3, 5 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 3, 1, 3, 1 ], + "name" : "z" + } ], + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 3, 5, 3, 5 ], + "value" : 3 + } + } ], + "errors" : { + "errors" : [ { + "kind" : "CompilerError", + "location" : [ 2, 1, 2, 2 ], + "message" : "Parse error near token INDENT: ", + "syntax" : true + }, { + "kind" : "CompilerError", + "location" : [ 3, 1, 3, 0 ], + "message" : "Parse error near token DEDENT: ", + "syntax" : true + } ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/bad_stmt.py b/pa1-tests/core/bad_stmt.py new file mode 100644 index 0000000..8e8a4da --- /dev/null +++ b/pa1-tests/core/bad_stmt.py @@ -0,0 +1,4 @@ +1 + 2 +3 == 4 or (not False && True) +5 + 6 +7 << 8 diff --git a/pa1-tests/core/bad_stmt.py.ast b/pa1-tests/core/bad_stmt.py.ast new file mode 100644 index 0000000..afe9602 --- /dev/null +++ b/pa1-tests/core/bad_stmt.py.ast @@ -0,0 +1,65 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 4, 7 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 1, 1, 1, 5 ], + "expr" : { + "kind" : "BinaryExpr", + "location" : [ 1, 1, 1, 5 ], + "left" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 1, 1, 1 ], + "value" : 1 + }, + "operator" : "+", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 5, 1, 5 ], + "value" : 2 + } + } + }, { + "kind" : "ExprStmt", + "location" : [ 3, 1, 3, 5 ], + "expr" : { + "kind" : "BinaryExpr", + "location" : [ 3, 1, 3, 5 ], + "left" : { + "kind" : "IntegerLiteral", + "location" : [ 3, 1, 3, 1 ], + "value" : 5 + }, + "operator" : "+", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 3, 5, 3, 5 ], + "value" : 6 + } + } + }, { + "kind" : "ExprStmt", + "location" : [ 4, 6, 4, 6 ], + "expr" : { + "kind" : "IntegerLiteral", + "location" : [ 4, 6, 4, 6 ], + "value" : 8 + } + } ], + "errors" : { + "errors" : [ { + "kind" : "CompilerError", + "location" : [ 2, 22, 2, 22 ], + "message" : "Parse error near token UNRECOGNIZED: &", + "syntax" : true + }, { + "kind" : "CompilerError", + "location" : [ 4, 4, 4, 4 ], + "message" : "Parse error near token LT: <", + "syntax" : true + } ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/chained_mixed_assignments.py b/pa1-tests/core/chained_mixed_assignments.py new file mode 100644 index 0000000..46a230a --- /dev/null +++ b/pa1-tests/core/chained_mixed_assignments.py @@ -0,0 +1,2 @@ +x[0] = y = z.f = 1 +z.g = y = x[0] diff --git a/pa1-tests/core/chained_mixed_assignments.py.ast b/pa1-tests/core/chained_mixed_assignments.py.ast new file mode 100644 index 0000000..9654bf6 --- /dev/null +++ b/pa1-tests/core/chained_mixed_assignments.py.ast @@ -0,0 +1,85 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 2, 15 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 1, 1, 1, 18 ], + "targets" : [ { + "kind" : "IndexExpr", + "location" : [ 1, 1, 1, 4 ], + "list" : { + "kind" : "Identifier", + "location" : [ 1, 1, 1, 1 ], + "name" : "x" + }, + "index" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 3, 1, 3 ], + "value" : 0 + } + }, { + "kind" : "Identifier", + "location" : [ 1, 8, 1, 8 ], + "name" : "y" + }, { + "kind" : "MemberExpr", + "location" : [ 1, 12, 1, 14 ], + "object" : { + "kind" : "Identifier", + "location" : [ 1, 12, 1, 12 ], + "name" : "z" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 1, 14, 1, 14 ], + "name" : "f" + } + } ], + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 18, 1, 18 ], + "value" : 1 + } + }, { + "kind" : "AssignStmt", + "location" : [ 2, 1, 2, 14 ], + "targets" : [ { + "kind" : "MemberExpr", + "location" : [ 2, 1, 2, 3 ], + "object" : { + "kind" : "Identifier", + "location" : [ 2, 1, 2, 1 ], + "name" : "z" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 2, 3, 2, 3 ], + "name" : "g" + } + }, { + "kind" : "Identifier", + "location" : [ 2, 7, 2, 7 ], + "name" : "y" + } ], + "value" : { + "kind" : "IndexExpr", + "location" : [ 2, 11, 2, 14 ], + "list" : { + "kind" : "Identifier", + "location" : [ 2, 11, 2, 11 ], + "name" : "x" + }, + "index" : { + "kind" : "IntegerLiteral", + "location" : [ 2, 13, 2, 13 ], + "value" : 0 + } + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/chained_var_assignments.py b/pa1-tests/core/chained_var_assignments.py new file mode 100644 index 0000000..b253c2a --- /dev/null +++ b/pa1-tests/core/chained_var_assignments.py @@ -0,0 +1 @@ +x = y = z = 1 diff --git a/pa1-tests/core/chained_var_assignments.py.ast b/pa1-tests/core/chained_var_assignments.py.ast new file mode 100644 index 0000000..28f0ea7 --- /dev/null +++ b/pa1-tests/core/chained_var_assignments.py.ast @@ -0,0 +1,32 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 1, 14 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 1, 1, 1, 13 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 1, 1, 1, 1 ], + "name" : "x" + }, { + "kind" : "Identifier", + "location" : [ 1, 5, 1, 5 ], + "name" : "y" + }, { + "kind" : "Identifier", + "location" : [ 1, 9, 1, 9 ], + "name" : "z" + } ], + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 13, 1, 13 ], + "value" : 1 + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/class_attr.py b/pa1-tests/core/class_attr.py new file mode 100644 index 0000000..bb1e1cd --- /dev/null +++ b/pa1-tests/core/class_attr.py @@ -0,0 +1,4 @@ +class Foo(object): + x:int = 1 + +f = Foo() diff --git a/pa1-tests/core/class_attr.py.ast b/pa1-tests/core/class_attr.py.ast new file mode 100644 index 0000000..4fdab40 --- /dev/null +++ b/pa1-tests/core/class_attr.py.ast @@ -0,0 +1,65 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 4, 10 ], + "declarations" : [ { + "kind" : "ClassDef", + "location" : [ 1, 1, 2, 14 ], + "name" : { + "kind" : "Identifier", + "location" : [ 1, 7, 1, 9 ], + "name" : "Foo" + }, + "superClass" : { + "kind" : "Identifier", + "location" : [ 1, 11, 1, 16 ], + "name" : "object" + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 2, 5, 2, 13 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 2, 5, 2, 9 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 2, 5, 2, 5 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 2, 7, 2, 9 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 2, 13, 2, 13 ], + "value" : 1 + } + } ] + } ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 4, 1, 4, 9 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 4, 1, 4, 1 ], + "name" : "f" + } ], + "value" : { + "kind" : "CallExpr", + "location" : [ 4, 5, 4, 9 ], + "function" : { + "kind" : "Identifier", + "location" : [ 4, 5, 4, 7 ], + "name" : "Foo" + }, + "args" : [ ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/class_attr_get.py b/pa1-tests/core/class_attr_get.py new file mode 100644 index 0000000..b4e6365 --- /dev/null +++ b/pa1-tests/core/class_attr_get.py @@ -0,0 +1,5 @@ +class Foo(object): + x:int = 1 + +f = Foo() +print(f.x) diff --git a/pa1-tests/core/class_attr_get.py.ast b/pa1-tests/core/class_attr_get.py.ast new file mode 100644 index 0000000..f286342 --- /dev/null +++ b/pa1-tests/core/class_attr_get.py.ast @@ -0,0 +1,91 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 5, 11 ], + "declarations" : [ { + "kind" : "ClassDef", + "location" : [ 1, 1, 2, 14 ], + "name" : { + "kind" : "Identifier", + "location" : [ 1, 7, 1, 9 ], + "name" : "Foo" + }, + "superClass" : { + "kind" : "Identifier", + "location" : [ 1, 11, 1, 16 ], + "name" : "object" + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 2, 5, 2, 13 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 2, 5, 2, 9 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 2, 5, 2, 5 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 2, 7, 2, 9 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 2, 13, 2, 13 ], + "value" : 1 + } + } ] + } ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 4, 1, 4, 9 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 4, 1, 4, 1 ], + "name" : "f" + } ], + "value" : { + "kind" : "CallExpr", + "location" : [ 4, 5, 4, 9 ], + "function" : { + "kind" : "Identifier", + "location" : [ 4, 5, 4, 7 ], + "name" : "Foo" + }, + "args" : [ ] + } + }, { + "kind" : "ExprStmt", + "location" : [ 5, 1, 5, 10 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 5, 1, 5, 10 ], + "function" : { + "kind" : "Identifier", + "location" : [ 5, 1, 5, 5 ], + "name" : "print" + }, + "args" : [ { + "kind" : "MemberExpr", + "location" : [ 5, 7, 5, 9 ], + "object" : { + "kind" : "Identifier", + "location" : [ 5, 7, 5, 7 ], + "name" : "f" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 5, 9, 5, 9 ], + "name" : "x" + } + } ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/class_attr_set.py b/pa1-tests/core/class_attr_set.py new file mode 100644 index 0000000..ac94bf8 --- /dev/null +++ b/pa1-tests/core/class_attr_set.py @@ -0,0 +1,5 @@ +class Foo(object): + x:int = 1 + +f = Foo() +f.x = 2 diff --git a/pa1-tests/core/class_attr_set.py.ast b/pa1-tests/core/class_attr_set.py.ast new file mode 100644 index 0000000..03d6bba --- /dev/null +++ b/pa1-tests/core/class_attr_set.py.ast @@ -0,0 +1,87 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 5, 8 ], + "declarations" : [ { + "kind" : "ClassDef", + "location" : [ 1, 1, 2, 14 ], + "name" : { + "kind" : "Identifier", + "location" : [ 1, 7, 1, 9 ], + "name" : "Foo" + }, + "superClass" : { + "kind" : "Identifier", + "location" : [ 1, 11, 1, 16 ], + "name" : "object" + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 2, 5, 2, 13 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 2, 5, 2, 9 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 2, 5, 2, 5 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 2, 7, 2, 9 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 2, 13, 2, 13 ], + "value" : 1 + } + } ] + } ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 4, 1, 4, 9 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 4, 1, 4, 1 ], + "name" : "f" + } ], + "value" : { + "kind" : "CallExpr", + "location" : [ 4, 5, 4, 9 ], + "function" : { + "kind" : "Identifier", + "location" : [ 4, 5, 4, 7 ], + "name" : "Foo" + }, + "args" : [ ] + } + }, { + "kind" : "AssignStmt", + "location" : [ 5, 1, 5, 7 ], + "targets" : [ { + "kind" : "MemberExpr", + "location" : [ 5, 1, 5, 3 ], + "object" : { + "kind" : "Identifier", + "location" : [ 5, 1, 5, 1 ], + "name" : "f" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 5, 3, 5, 3 ], + "name" : "x" + } + } ], + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 5, 7, 5, 7 ], + "value" : 2 + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/class_constructor.py b/pa1-tests/core/class_constructor.py new file mode 100644 index 0000000..46d7ccb --- /dev/null +++ b/pa1-tests/core/class_constructor.py @@ -0,0 +1,8 @@ +class Foo(object): + x:int = 0 + + def __init__(self:"Foo", x:int): + self.x = x + +f = Foo(1) +print(f.x) diff --git a/pa1-tests/core/class_constructor.py.ast b/pa1-tests/core/class_constructor.py.ast new file mode 100644 index 0000000..6850e03 --- /dev/null +++ b/pa1-tests/core/class_constructor.py.ast @@ -0,0 +1,159 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 8, 11 ], + "declarations" : [ { + "kind" : "ClassDef", + "location" : [ 1, 1, 7, 0 ], + "name" : { + "kind" : "Identifier", + "location" : [ 1, 7, 1, 9 ], + "name" : "Foo" + }, + "superClass" : { + "kind" : "Identifier", + "location" : [ 1, 11, 1, 16 ], + "name" : "object" + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 2, 5, 2, 13 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 2, 5, 2, 9 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 2, 5, 2, 5 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 2, 7, 2, 9 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 2, 13, 2, 13 ], + "value" : 0 + } + }, { + "kind" : "FuncDef", + "location" : [ 4, 5, 5, 19 ], + "name" : { + "kind" : "Identifier", + "location" : [ 4, 9, 4, 16 ], + "name" : "__init__" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 4, 18, 4, 27 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 4, 18, 4, 21 ], + "name" : "self" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 4, 23, 4, 27 ], + "className" : "Foo" + } + }, { + "kind" : "TypedVar", + "location" : [ 4, 30, 4, 34 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 4, 30, 4, 30 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 4, 32, 4, 34 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 4, 36, 4, 36 ], + "className" : "" + }, + "declarations" : [ ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 5, 9, 5, 18 ], + "targets" : [ { + "kind" : "MemberExpr", + "location" : [ 5, 9, 5, 14 ], + "object" : { + "kind" : "Identifier", + "location" : [ 5, 9, 5, 12 ], + "name" : "self" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 5, 14, 5, 14 ], + "name" : "x" + } + } ], + "value" : { + "kind" : "Identifier", + "location" : [ 5, 18, 5, 18 ], + "name" : "x" + } + } ] + } ] + } ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 7, 1, 7, 10 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 7, 1, 7, 1 ], + "name" : "f" + } ], + "value" : { + "kind" : "CallExpr", + "location" : [ 7, 5, 7, 10 ], + "function" : { + "kind" : "Identifier", + "location" : [ 7, 5, 7, 7 ], + "name" : "Foo" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 7, 9, 7, 9 ], + "value" : 1 + } ] + } + }, { + "kind" : "ExprStmt", + "location" : [ 8, 1, 8, 10 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 8, 1, 8, 10 ], + "function" : { + "kind" : "Identifier", + "location" : [ 8, 1, 8, 5 ], + "name" : "print" + }, + "args" : [ { + "kind" : "MemberExpr", + "location" : [ 8, 7, 8, 9 ], + "object" : { + "kind" : "Identifier", + "location" : [ 8, 7, 8, 7 ], + "name" : "f" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 8, 9, 8, 9 ], + "name" : "x" + } + } ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/class_method.py b/pa1-tests/core/class_method.py new file mode 100644 index 0000000..cc03ce2 --- /dev/null +++ b/pa1-tests/core/class_method.py @@ -0,0 +1,9 @@ +class Foo(object): + x:int = 0 + + def set(self:"Foo", x:int) -> object: + self.x = x + +f = Foo() +f.set(1) +print(f.x) diff --git a/pa1-tests/core/class_method.py.ast b/pa1-tests/core/class_method.py.ast new file mode 100644 index 0000000..66bc2e1 --- /dev/null +++ b/pa1-tests/core/class_method.py.ast @@ -0,0 +1,181 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 9, 11 ], + "declarations" : [ { + "kind" : "ClassDef", + "location" : [ 1, 1, 7, 0 ], + "name" : { + "kind" : "Identifier", + "location" : [ 1, 7, 1, 9 ], + "name" : "Foo" + }, + "superClass" : { + "kind" : "Identifier", + "location" : [ 1, 11, 1, 16 ], + "name" : "object" + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 2, 5, 2, 13 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 2, 5, 2, 9 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 2, 5, 2, 5 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 2, 7, 2, 9 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 2, 13, 2, 13 ], + "value" : 0 + } + }, { + "kind" : "FuncDef", + "location" : [ 4, 5, 5, 19 ], + "name" : { + "kind" : "Identifier", + "location" : [ 4, 9, 4, 11 ], + "name" : "set" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 4, 13, 4, 22 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 4, 13, 4, 16 ], + "name" : "self" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 4, 18, 4, 22 ], + "className" : "Foo" + } + }, { + "kind" : "TypedVar", + "location" : [ 4, 25, 4, 29 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 4, 25, 4, 25 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 4, 27, 4, 29 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 4, 35, 4, 40 ], + "className" : "object" + }, + "declarations" : [ ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 5, 9, 5, 18 ], + "targets" : [ { + "kind" : "MemberExpr", + "location" : [ 5, 9, 5, 14 ], + "object" : { + "kind" : "Identifier", + "location" : [ 5, 9, 5, 12 ], + "name" : "self" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 5, 14, 5, 14 ], + "name" : "x" + } + } ], + "value" : { + "kind" : "Identifier", + "location" : [ 5, 18, 5, 18 ], + "name" : "x" + } + } ] + } ] + } ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 7, 1, 7, 9 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 7, 1, 7, 1 ], + "name" : "f" + } ], + "value" : { + "kind" : "CallExpr", + "location" : [ 7, 5, 7, 9 ], + "function" : { + "kind" : "Identifier", + "location" : [ 7, 5, 7, 7 ], + "name" : "Foo" + }, + "args" : [ ] + } + }, { + "kind" : "ExprStmt", + "location" : [ 8, 1, 8, 8 ], + "expr" : { + "kind" : "MethodCallExpr", + "location" : [ 8, 1, 8, 8 ], + "method" : { + "kind" : "MemberExpr", + "location" : [ 8, 1, 8, 5 ], + "object" : { + "kind" : "Identifier", + "location" : [ 8, 1, 8, 1 ], + "name" : "f" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 8, 3, 8, 5 ], + "name" : "set" + } + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 8, 7, 8, 7 ], + "value" : 1 + } ] + } + }, { + "kind" : "ExprStmt", + "location" : [ 9, 1, 9, 10 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 9, 1, 9, 10 ], + "function" : { + "kind" : "Identifier", + "location" : [ 9, 1, 9, 5 ], + "name" : "print" + }, + "args" : [ { + "kind" : "MemberExpr", + "location" : [ 9, 7, 9, 9 ], + "object" : { + "kind" : "Identifier", + "location" : [ 9, 7, 9, 7 ], + "name" : "f" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 9, 9, 9, 9 ], + "name" : "x" + } + } ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/coverage.py b/pa1-tests/core/coverage.py new file mode 100644 index 0000000..1da3446 --- /dev/null +++ b/pa1-tests/core/coverage.py @@ -0,0 +1,38 @@ +count:int = 0 + +def foo(s: str) -> int: + return len(s) + +class bar(object): + p: bool = True + + def baz(self:"bar", xx: [int]) -> str: + global count + x:int = 0 + y:int = 1 + + def qux(y: int) -> object: + nonlocal x + if x > y: + x = -1 + + for x in xx: + self.p = x == 2 + + qux(0) # Yay! ChocoPy + + count = count + 1 + + while x <= 0: + if self.p: + xx[0] = xx[1] + self.p = not self.p + x = x + 1 + elif foo("Long"[0]) == 1: + return self is None + + return "Nope" + +print(bar().baz([1,2])) + + diff --git a/pa1-tests/core/coverage.py.ast b/pa1-tests/core/coverage.py.ast new file mode 100644 index 0000000..c7bab9f --- /dev/null +++ b/pa1-tests/core/coverage.py.ast @@ -0,0 +1,613 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 36, 24 ], + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 1, 1, 1, 13 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 1, 1, 1, 9 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 1, 1, 1, 5 ], + "name" : "count" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 1, 7, 1, 9 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 13, 1, 13 ], + "value" : 0 + } + }, { + "kind" : "FuncDef", + "location" : [ 3, 1, 4, 18 ], + "name" : { + "kind" : "Identifier", + "location" : [ 3, 5, 3, 7 ], + "name" : "foo" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 3, 9, 3, 14 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 3, 9, 3, 9 ], + "name" : "s" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 3, 12, 3, 14 ], + "className" : "str" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 3, 20, 3, 22 ], + "className" : "int" + }, + "declarations" : [ ], + "statements" : [ { + "kind" : "ReturnStmt", + "location" : [ 4, 5, 4, 17 ], + "value" : { + "kind" : "CallExpr", + "location" : [ 4, 12, 4, 17 ], + "function" : { + "kind" : "Identifier", + "location" : [ 4, 12, 4, 14 ], + "name" : "len" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 4, 16, 4, 16 ], + "name" : "s" + } ] + } + } ] + }, { + "kind" : "ClassDef", + "location" : [ 6, 1, 36, 0 ], + "name" : { + "kind" : "Identifier", + "location" : [ 6, 7, 6, 9 ], + "name" : "bar" + }, + "superClass" : { + "kind" : "Identifier", + "location" : [ 6, 11, 6, 16 ], + "name" : "object" + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 7, 5, 7, 18 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 7, 5, 7, 11 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 7, 5, 7, 5 ], + "name" : "p" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 7, 8, 7, 11 ], + "className" : "bool" + } + }, + "value" : { + "kind" : "BooleanLiteral", + "location" : [ 7, 15, 7, 18 ], + "value" : true + } + }, { + "kind" : "FuncDef", + "location" : [ 9, 5, 34, 22 ], + "name" : { + "kind" : "Identifier", + "location" : [ 9, 9, 9, 11 ], + "name" : "baz" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 9, 13, 9, 22 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 9, 13, 9, 16 ], + "name" : "self" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 9, 18, 9, 22 ], + "className" : "bar" + } + }, { + "kind" : "TypedVar", + "location" : [ 9, 25, 9, 33 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 9, 25, 9, 26 ], + "name" : "xx" + }, + "type" : { + "kind" : "ListType", + "location" : [ 9, 29, 9, 33 ], + "elementType" : { + "kind" : "ClassType", + "location" : [ 9, 30, 9, 32 ], + "className" : "int" + } + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 9, 39, 9, 41 ], + "className" : "str" + }, + "declarations" : [ { + "kind" : "GlobalDecl", + "location" : [ 10, 9, 10, 20 ], + "variable" : { + "kind" : "Identifier", + "location" : [ 10, 16, 10, 20 ], + "name" : "count" + } + }, { + "kind" : "VarDef", + "location" : [ 11, 9, 11, 17 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 11, 9, 11, 13 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 11, 9, 11, 9 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 11, 11, 11, 13 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 11, 17, 11, 17 ], + "value" : 0 + } + }, { + "kind" : "VarDef", + "location" : [ 12, 9, 12, 17 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 12, 9, 12, 13 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 12, 9, 12, 9 ], + "name" : "y" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 12, 11, 12, 13 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 12, 17, 12, 17 ], + "value" : 1 + } + }, { + "kind" : "FuncDef", + "location" : [ 14, 9, 19, 8 ], + "name" : { + "kind" : "Identifier", + "location" : [ 14, 13, 14, 15 ], + "name" : "qux" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 14, 17, 14, 22 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 14, 17, 14, 17 ], + "name" : "y" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 14, 20, 14, 22 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 14, 28, 14, 33 ], + "className" : "object" + }, + "declarations" : [ { + "kind" : "NonLocalDecl", + "location" : [ 15, 13, 15, 22 ], + "variable" : { + "kind" : "Identifier", + "location" : [ 15, 22, 15, 22 ], + "name" : "x" + } + } ], + "statements" : [ { + "kind" : "IfStmt", + "location" : [ 16, 13, 19, 8 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 16, 16, 16, 20 ], + "left" : { + "kind" : "Identifier", + "location" : [ 16, 16, 16, 16 ], + "name" : "x" + }, + "operator" : ">", + "right" : { + "kind" : "Identifier", + "location" : [ 16, 20, 16, 20 ], + "name" : "y" + } + }, + "thenBody" : [ { + "kind" : "AssignStmt", + "location" : [ 17, 17, 17, 22 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 17, 17, 17, 17 ], + "name" : "x" + } ], + "value" : { + "kind" : "UnaryExpr", + "location" : [ 17, 21, 17, 22 ], + "operator" : "-", + "operand" : { + "kind" : "IntegerLiteral", + "location" : [ 17, 22, 17, 22 ], + "value" : 1 + } + } + } ], + "elseBody" : [ ] + } ] + } ], + "statements" : [ { + "kind" : "ForStmt", + "location" : [ 19, 9, 22, 8 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 19, 13, 19, 13 ], + "name" : "x" + }, + "iterable" : { + "kind" : "Identifier", + "location" : [ 19, 18, 19, 19 ], + "name" : "xx" + }, + "body" : [ { + "kind" : "AssignStmt", + "location" : [ 20, 13, 20, 27 ], + "targets" : [ { + "kind" : "MemberExpr", + "location" : [ 20, 13, 20, 18 ], + "object" : { + "kind" : "Identifier", + "location" : [ 20, 13, 20, 16 ], + "name" : "self" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 20, 18, 20, 18 ], + "name" : "p" + } + } ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 20, 22, 20, 27 ], + "left" : { + "kind" : "Identifier", + "location" : [ 20, 22, 20, 22 ], + "name" : "x" + }, + "operator" : "==", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 20, 27, 20, 27 ], + "value" : 2 + } + } + } ] + }, { + "kind" : "ExprStmt", + "location" : [ 22, 9, 22, 14 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 22, 9, 22, 14 ], + "function" : { + "kind" : "Identifier", + "location" : [ 22, 9, 22, 11 ], + "name" : "qux" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 22, 13, 22, 13 ], + "value" : 0 + } ] + } + }, { + "kind" : "AssignStmt", + "location" : [ 24, 9, 24, 25 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 24, 9, 24, 13 ], + "name" : "count" + } ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 24, 17, 24, 25 ], + "left" : { + "kind" : "Identifier", + "location" : [ 24, 17, 24, 21 ], + "name" : "count" + }, + "operator" : "+", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 24, 25, 24, 25 ], + "value" : 1 + } + } + }, { + "kind" : "WhileStmt", + "location" : [ 26, 9, 34, 8 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 26, 15, 26, 20 ], + "left" : { + "kind" : "Identifier", + "location" : [ 26, 15, 26, 15 ], + "name" : "x" + }, + "operator" : "<=", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 26, 20, 26, 20 ], + "value" : 0 + } + }, + "body" : [ { + "kind" : "IfStmt", + "location" : [ 27, 13, 34, 8 ], + "condition" : { + "kind" : "MemberExpr", + "location" : [ 27, 16, 27, 21 ], + "object" : { + "kind" : "Identifier", + "location" : [ 27, 16, 27, 19 ], + "name" : "self" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 27, 21, 27, 21 ], + "name" : "p" + } + }, + "thenBody" : [ { + "kind" : "AssignStmt", + "location" : [ 28, 17, 28, 29 ], + "targets" : [ { + "kind" : "IndexExpr", + "location" : [ 28, 17, 28, 21 ], + "list" : { + "kind" : "Identifier", + "location" : [ 28, 17, 28, 18 ], + "name" : "xx" + }, + "index" : { + "kind" : "IntegerLiteral", + "location" : [ 28, 20, 28, 20 ], + "value" : 0 + } + } ], + "value" : { + "kind" : "IndexExpr", + "location" : [ 28, 25, 28, 29 ], + "list" : { + "kind" : "Identifier", + "location" : [ 28, 25, 28, 26 ], + "name" : "xx" + }, + "index" : { + "kind" : "IntegerLiteral", + "location" : [ 28, 28, 28, 28 ], + "value" : 1 + } + } + }, { + "kind" : "AssignStmt", + "location" : [ 29, 17, 29, 35 ], + "targets" : [ { + "kind" : "MemberExpr", + "location" : [ 29, 17, 29, 22 ], + "object" : { + "kind" : "Identifier", + "location" : [ 29, 17, 29, 20 ], + "name" : "self" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 29, 22, 29, 22 ], + "name" : "p" + } + } ], + "value" : { + "kind" : "UnaryExpr", + "location" : [ 29, 26, 29, 35 ], + "operator" : "not", + "operand" : { + "kind" : "MemberExpr", + "location" : [ 29, 30, 29, 35 ], + "object" : { + "kind" : "Identifier", + "location" : [ 29, 30, 29, 33 ], + "name" : "self" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 29, 35, 29, 35 ], + "name" : "p" + } + } + } + }, { + "kind" : "AssignStmt", + "location" : [ 30, 17, 30, 25 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 30, 17, 30, 17 ], + "name" : "x" + } ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 30, 21, 30, 25 ], + "left" : { + "kind" : "Identifier", + "location" : [ 30, 21, 30, 21 ], + "name" : "x" + }, + "operator" : "+", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 30, 25, 30, 25 ], + "value" : 1 + } + } + } ], + "elseBody" : [ { + "kind" : "IfStmt", + "location" : [ 31, 13, 34, 8 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 31, 18, 31, 36 ], + "left" : { + "kind" : "CallExpr", + "location" : [ 31, 18, 31, 31 ], + "function" : { + "kind" : "Identifier", + "location" : [ 31, 18, 31, 20 ], + "name" : "foo" + }, + "args" : [ { + "kind" : "IndexExpr", + "location" : [ 31, 22, 31, 30 ], + "list" : { + "kind" : "StringLiteral", + "location" : [ 31, 22, 31, 27 ], + "value" : "Long" + }, + "index" : { + "kind" : "IntegerLiteral", + "location" : [ 31, 29, 31, 29 ], + "value" : 0 + } + } ] + }, + "operator" : "==", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 31, 36, 31, 36 ], + "value" : 1 + } + }, + "thenBody" : [ { + "kind" : "ReturnStmt", + "location" : [ 32, 17, 32, 35 ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 32, 24, 32, 35 ], + "left" : { + "kind" : "Identifier", + "location" : [ 32, 24, 32, 27 ], + "name" : "self" + }, + "operator" : "is", + "right" : { + "kind" : "NoneLiteral", + "location" : [ 32, 32, 32, 35 ] + } + } + } ], + "elseBody" : [ ] + } ] + } ] + }, { + "kind" : "ReturnStmt", + "location" : [ 34, 9, 34, 21 ], + "value" : { + "kind" : "StringLiteral", + "location" : [ 34, 16, 34, 21 ], + "value" : "Nope" + } + } ] + } ] + } ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 36, 1, 36, 23 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 36, 1, 36, 23 ], + "function" : { + "kind" : "Identifier", + "location" : [ 36, 1, 36, 5 ], + "name" : "print" + }, + "args" : [ { + "kind" : "MethodCallExpr", + "location" : [ 36, 7, 36, 22 ], + "method" : { + "kind" : "MemberExpr", + "location" : [ 36, 7, 36, 15 ], + "object" : { + "kind" : "CallExpr", + "location" : [ 36, 7, 36, 11 ], + "function" : { + "kind" : "Identifier", + "location" : [ 36, 7, 36, 9 ], + "name" : "bar" + }, + "args" : [ ] + }, + "member" : { + "kind" : "Identifier", + "location" : [ 36, 13, 36, 15 ], + "name" : "baz" + } + }, + "args" : [ { + "kind" : "ListExpr", + "location" : [ 36, 17, 36, 21 ], + "elements" : [ { + "kind" : "IntegerLiteral", + "location" : [ 36, 18, 36, 18 ], + "value" : 1 + }, { + "kind" : "IntegerLiteral", + "location" : [ 36, 20, 36, 20 ], + "value" : 2 + } ] + } ] + } ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/def_func.py b/pa1-tests/core/def_func.py new file mode 100644 index 0000000..55e9c43 --- /dev/null +++ b/pa1-tests/core/def_func.py @@ -0,0 +1,4 @@ +def foo() -> int: + return 1 + +foo() diff --git a/pa1-tests/core/def_func.py.ast b/pa1-tests/core/def_func.py.ast new file mode 100644 index 0000000..00a7e65 --- /dev/null +++ b/pa1-tests/core/def_func.py.ast @@ -0,0 +1,48 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 4, 6 ], + "declarations" : [ { + "kind" : "FuncDef", + "location" : [ 1, 1, 2, 13 ], + "name" : { + "kind" : "Identifier", + "location" : [ 1, 5, 1, 7 ], + "name" : "foo" + }, + "params" : [ ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 1, 14, 1, 16 ], + "className" : "int" + }, + "declarations" : [ ], + "statements" : [ { + "kind" : "ReturnStmt", + "location" : [ 2, 5, 2, 12 ], + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 2, 12, 2, 12 ], + "value" : 1 + } + } ] + } ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 4, 1, 4, 5 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 4, 1, 4, 5 ], + "function" : { + "kind" : "Identifier", + "location" : [ 4, 1, 4, 3 ], + "name" : "foo" + }, + "args" : [ ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/def_func_args.py b/pa1-tests/core/def_func_args.py new file mode 100644 index 0000000..196f504 --- /dev/null +++ b/pa1-tests/core/def_func_args.py @@ -0,0 +1,4 @@ +def foo(x:int, y:int) -> bool: + return x > y + +foo(1,2) diff --git a/pa1-tests/core/def_func_args.py.ast b/pa1-tests/core/def_func_args.py.ast new file mode 100644 index 0000000..77d9dc9 --- /dev/null +++ b/pa1-tests/core/def_func_args.py.ast @@ -0,0 +1,92 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 4, 9 ], + "declarations" : [ { + "kind" : "FuncDef", + "location" : [ 1, 1, 2, 17 ], + "name" : { + "kind" : "Identifier", + "location" : [ 1, 5, 1, 7 ], + "name" : "foo" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 1, 9, 1, 13 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 1, 9, 1, 9 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 1, 11, 1, 13 ], + "className" : "int" + } + }, { + "kind" : "TypedVar", + "location" : [ 1, 16, 1, 20 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 1, 16, 1, 16 ], + "name" : "y" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 1, 18, 1, 20 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 1, 26, 1, 29 ], + "className" : "bool" + }, + "declarations" : [ ], + "statements" : [ { + "kind" : "ReturnStmt", + "location" : [ 2, 5, 2, 16 ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 2, 12, 2, 16 ], + "left" : { + "kind" : "Identifier", + "location" : [ 2, 12, 2, 12 ], + "name" : "x" + }, + "operator" : ">", + "right" : { + "kind" : "Identifier", + "location" : [ 2, 16, 2, 16 ], + "name" : "y" + } + } + } ] + } ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 4, 1, 4, 8 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 4, 1, 4, 8 ], + "function" : { + "kind" : "Identifier", + "location" : [ 4, 1, 4, 3 ], + "name" : "foo" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 4, 5, 4, 5 ], + "value" : 1 + }, { + "kind" : "IntegerLiteral", + "location" : [ 4, 7, 4, 7 ], + "value" : 2 + } ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/def_func_global.py b/pa1-tests/core/def_func_global.py new file mode 100644 index 0000000..12f9dfc --- /dev/null +++ b/pa1-tests/core/def_func_global.py @@ -0,0 +1,7 @@ +z:int = 0 + +def foo(x:int) -> bool: + global z + return x > z + +foo(1) diff --git a/pa1-tests/core/def_func_global.py.ast b/pa1-tests/core/def_func_global.py.ast new file mode 100644 index 0000000..736af77 --- /dev/null +++ b/pa1-tests/core/def_func_global.py.ast @@ -0,0 +1,105 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 7, 7 ], + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 1, 1, 1, 9 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 1, 1, 1, 5 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 1, 1, 1, 1 ], + "name" : "z" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 1, 3, 1, 5 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 9, 1, 9 ], + "value" : 0 + } + }, { + "kind" : "FuncDef", + "location" : [ 3, 1, 5, 17 ], + "name" : { + "kind" : "Identifier", + "location" : [ 3, 5, 3, 7 ], + "name" : "foo" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 3, 9, 3, 13 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 3, 9, 3, 9 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 3, 11, 3, 13 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 3, 19, 3, 22 ], + "className" : "bool" + }, + "declarations" : [ { + "kind" : "GlobalDecl", + "location" : [ 4, 5, 4, 12 ], + "variable" : { + "kind" : "Identifier", + "location" : [ 4, 12, 4, 12 ], + "name" : "z" + } + } ], + "statements" : [ { + "kind" : "ReturnStmt", + "location" : [ 5, 5, 5, 16 ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 5, 12, 5, 16 ], + "left" : { + "kind" : "Identifier", + "location" : [ 5, 12, 5, 12 ], + "name" : "x" + }, + "operator" : ">", + "right" : { + "kind" : "Identifier", + "location" : [ 5, 16, 5, 16 ], + "name" : "z" + } + } + } ] + } ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 7, 1, 7, 6 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 7, 1, 7, 6 ], + "function" : { + "kind" : "Identifier", + "location" : [ 7, 1, 7, 3 ], + "name" : "foo" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 7, 5, 7, 5 ], + "value" : 1 + } ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/def_func_nested.py b/pa1-tests/core/def_func_nested.py new file mode 100644 index 0000000..835614e --- /dev/null +++ b/pa1-tests/core/def_func_nested.py @@ -0,0 +1,10 @@ + +def foo(x:int) -> bool: + a:int = 0 + b:int = 1 + def bar(y: int) -> int: + a:int = 2 + return y + return bar(x) > a + +foo(1) diff --git a/pa1-tests/core/def_func_nested.py.ast b/pa1-tests/core/def_func_nested.py.ast new file mode 100644 index 0000000..0024178 --- /dev/null +++ b/pa1-tests/core/def_func_nested.py.ast @@ -0,0 +1,187 @@ +{ + "kind" : "Program", + "location" : [ 2, 1, 10, 7 ], + "declarations" : [ { + "kind" : "FuncDef", + "location" : [ 2, 1, 8, 22 ], + "name" : { + "kind" : "Identifier", + "location" : [ 2, 5, 2, 7 ], + "name" : "foo" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 2, 9, 2, 13 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 2, 9, 2, 9 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 2, 11, 2, 13 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 2, 19, 2, 22 ], + "className" : "bool" + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 3, 5, 3, 13 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 3, 5, 3, 9 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 3, 5, 3, 5 ], + "name" : "a" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 3, 7, 3, 9 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 3, 13, 3, 13 ], + "value" : 0 + } + }, { + "kind" : "VarDef", + "location" : [ 4, 5, 4, 13 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 4, 5, 4, 9 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 4, 5, 4, 5 ], + "name" : "b" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 4, 7, 4, 9 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 4, 13, 4, 13 ], + "value" : 1 + } + }, { + "kind" : "FuncDef", + "location" : [ 5, 5, 7, 17 ], + "name" : { + "kind" : "Identifier", + "location" : [ 5, 9, 5, 11 ], + "name" : "bar" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 5, 13, 5, 18 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 5, 13, 5, 13 ], + "name" : "y" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 5, 16, 5, 18 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 5, 24, 5, 26 ], + "className" : "int" + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 6, 9, 6, 17 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 6, 9, 6, 13 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 6, 9, 6, 9 ], + "name" : "a" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 6, 11, 6, 13 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 6, 17, 6, 17 ], + "value" : 2 + } + } ], + "statements" : [ { + "kind" : "ReturnStmt", + "location" : [ 7, 9, 7, 16 ], + "value" : { + "kind" : "Identifier", + "location" : [ 7, 16, 7, 16 ], + "name" : "y" + } + } ] + } ], + "statements" : [ { + "kind" : "ReturnStmt", + "location" : [ 8, 5, 8, 21 ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 8, 12, 8, 21 ], + "left" : { + "kind" : "CallExpr", + "location" : [ 8, 12, 8, 17 ], + "function" : { + "kind" : "Identifier", + "location" : [ 8, 12, 8, 14 ], + "name" : "bar" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 8, 16, 8, 16 ], + "name" : "x" + } ] + }, + "operator" : ">", + "right" : { + "kind" : "Identifier", + "location" : [ 8, 21, 8, 21 ], + "name" : "a" + } + } + } ] + } ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 10, 1, 10, 6 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 10, 1, 10, 6 ], + "function" : { + "kind" : "Identifier", + "location" : [ 10, 1, 10, 3 ], + "name" : "foo" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 10, 5, 10, 5 ], + "value" : 1 + } ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/def_func_nonlocal.py b/pa1-tests/core/def_func_nonlocal.py new file mode 100644 index 0000000..1304328 --- /dev/null +++ b/pa1-tests/core/def_func_nonlocal.py @@ -0,0 +1,11 @@ + +def foo(x:int) -> bool: + a:int = 0 + b:int = 1 + def bar(y: int) -> int: + nonlocal a + a = 2 + return y + return bar(x) > a + +foo(1) diff --git a/pa1-tests/core/def_func_nonlocal.py.ast b/pa1-tests/core/def_func_nonlocal.py.ast new file mode 100644 index 0000000..5c1e1de --- /dev/null +++ b/pa1-tests/core/def_func_nonlocal.py.ast @@ -0,0 +1,186 @@ +{ + "kind" : "Program", + "location" : [ 2, 1, 11, 7 ], + "declarations" : [ { + "kind" : "FuncDef", + "location" : [ 2, 1, 9, 22 ], + "name" : { + "kind" : "Identifier", + "location" : [ 2, 5, 2, 7 ], + "name" : "foo" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 2, 9, 2, 13 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 2, 9, 2, 9 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 2, 11, 2, 13 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 2, 19, 2, 22 ], + "className" : "bool" + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 3, 5, 3, 13 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 3, 5, 3, 9 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 3, 5, 3, 5 ], + "name" : "a" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 3, 7, 3, 9 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 3, 13, 3, 13 ], + "value" : 0 + } + }, { + "kind" : "VarDef", + "location" : [ 4, 5, 4, 13 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 4, 5, 4, 9 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 4, 5, 4, 5 ], + "name" : "b" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 4, 7, 4, 9 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 4, 13, 4, 13 ], + "value" : 1 + } + }, { + "kind" : "FuncDef", + "location" : [ 5, 5, 8, 17 ], + "name" : { + "kind" : "Identifier", + "location" : [ 5, 9, 5, 11 ], + "name" : "bar" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 5, 13, 5, 18 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 5, 13, 5, 13 ], + "name" : "y" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 5, 16, 5, 18 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 5, 24, 5, 26 ], + "className" : "int" + }, + "declarations" : [ { + "kind" : "NonLocalDecl", + "location" : [ 6, 9, 6, 18 ], + "variable" : { + "kind" : "Identifier", + "location" : [ 6, 18, 6, 18 ], + "name" : "a" + } + } ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 7, 9, 7, 13 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 7, 9, 7, 9 ], + "name" : "a" + } ], + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 7, 13, 7, 13 ], + "value" : 2 + } + }, { + "kind" : "ReturnStmt", + "location" : [ 8, 9, 8, 16 ], + "value" : { + "kind" : "Identifier", + "location" : [ 8, 16, 8, 16 ], + "name" : "y" + } + } ] + } ], + "statements" : [ { + "kind" : "ReturnStmt", + "location" : [ 9, 5, 9, 21 ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 9, 12, 9, 21 ], + "left" : { + "kind" : "CallExpr", + "location" : [ 9, 12, 9, 17 ], + "function" : { + "kind" : "Identifier", + "location" : [ 9, 12, 9, 14 ], + "name" : "bar" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 9, 16, 9, 16 ], + "name" : "x" + } ] + }, + "operator" : ">", + "right" : { + "kind" : "Identifier", + "location" : [ 9, 21, 9, 21 ], + "name" : "a" + } + } + } ] + } ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 11, 1, 11, 6 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 11, 1, 11, 6 ], + "function" : { + "kind" : "Identifier", + "location" : [ 11, 1, 11, 3 ], + "name" : "foo" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 11, 5, 11, 5 ], + "value" : 1 + } ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/expr_if.py b/pa1-tests/core/expr_if.py new file mode 100644 index 0000000..e9e9c26 --- /dev/null +++ b/pa1-tests/core/expr_if.py @@ -0,0 +1 @@ +3 if 1 > 2 else 4 diff --git a/pa1-tests/core/expr_if.py.ast b/pa1-tests/core/expr_if.py.ast new file mode 100644 index 0000000..0ed9a55 --- /dev/null +++ b/pa1-tests/core/expr_if.py.ast @@ -0,0 +1,43 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 1, 18 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 1, 1, 1, 17 ], + "expr" : { + "kind" : "IfExpr", + "location" : [ 1, 1, 1, 17 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 1, 6, 1, 10 ], + "left" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 6, 1, 6 ], + "value" : 1 + }, + "operator" : ">", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 10, 1, 10 ], + "value" : 2 + } + }, + "thenExpr" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 1, 1, 1 ], + "value" : 3 + }, + "elseExpr" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 17, 1, 17 ], + "value" : 4 + } + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/expr_if_chained.py b/pa1-tests/core/expr_if_chained.py new file mode 100644 index 0000000..4a7837e --- /dev/null +++ b/pa1-tests/core/expr_if_chained.py @@ -0,0 +1 @@ +3 if 1 > 2 else 4 if 1 < 0 else 5 diff --git a/pa1-tests/core/expr_if_chained.py.ast b/pa1-tests/core/expr_if_chained.py.ast new file mode 100644 index 0000000..2776da9 --- /dev/null +++ b/pa1-tests/core/expr_if_chained.py.ast @@ -0,0 +1,67 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 1, 34 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 1, 1, 1, 33 ], + "expr" : { + "kind" : "IfExpr", + "location" : [ 1, 1, 1, 33 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 1, 6, 1, 10 ], + "left" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 6, 1, 6 ], + "value" : 1 + }, + "operator" : ">", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 10, 1, 10 ], + "value" : 2 + } + }, + "thenExpr" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 1, 1, 1 ], + "value" : 3 + }, + "elseExpr" : { + "kind" : "IfExpr", + "location" : [ 1, 17, 1, 33 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 1, 22, 1, 26 ], + "left" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 22, 1, 22 ], + "value" : 1 + }, + "operator" : "<", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 26, 1, 26 ], + "value" : 0 + } + }, + "thenExpr" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 17, 1, 17 ], + "value" : 4 + }, + "elseExpr" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 33, 1, 33 ], + "value" : 5 + } + } + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/expr_index.py b/pa1-tests/core/expr_index.py new file mode 100644 index 0000000..8e95ff2 --- /dev/null +++ b/pa1-tests/core/expr_index.py @@ -0,0 +1 @@ +a + b[i][j] diff --git a/pa1-tests/core/expr_index.py.ast b/pa1-tests/core/expr_index.py.ast new file mode 100644 index 0000000..a5f97ee --- /dev/null +++ b/pa1-tests/core/expr_index.py.ast @@ -0,0 +1,47 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 1, 12 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 1, 1, 1, 11 ], + "expr" : { + "kind" : "BinaryExpr", + "location" : [ 1, 1, 1, 11 ], + "left" : { + "kind" : "Identifier", + "location" : [ 1, 1, 1, 1 ], + "name" : "a" + }, + "operator" : "+", + "right" : { + "kind" : "IndexExpr", + "location" : [ 1, 5, 1, 11 ], + "list" : { + "kind" : "IndexExpr", + "location" : [ 1, 5, 1, 8 ], + "list" : { + "kind" : "Identifier", + "location" : [ 1, 5, 1, 5 ], + "name" : "b" + }, + "index" : { + "kind" : "Identifier", + "location" : [ 1, 7, 1, 7 ], + "name" : "i" + } + }, + "index" : { + "kind" : "Identifier", + "location" : [ 1, 10, 1, 10 ], + "name" : "j" + } + } + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/expr_plus.py b/pa1-tests/core/expr_plus.py new file mode 100644 index 0000000..8138b36 --- /dev/null +++ b/pa1-tests/core/expr_plus.py @@ -0,0 +1 @@ +1 + 2 + 3 diff --git a/pa1-tests/core/expr_plus.py.ast b/pa1-tests/core/expr_plus.py.ast new file mode 100644 index 0000000..f924e67 --- /dev/null +++ b/pa1-tests/core/expr_plus.py.ast @@ -0,0 +1,39 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 1, 10 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 1, 1, 1, 9 ], + "expr" : { + "kind" : "BinaryExpr", + "location" : [ 1, 1, 1, 9 ], + "left" : { + "kind" : "BinaryExpr", + "location" : [ 1, 1, 1, 5 ], + "left" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 1, 1, 1 ], + "value" : 1 + }, + "operator" : "+", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 5, 1, 5 ], + "value" : 2 + } + }, + "operator" : "+", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 9, 1, 9 ], + "value" : 3 + } + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/expr_unary.py b/pa1-tests/core/expr_unary.py new file mode 100644 index 0000000..3a2e3f4 --- /dev/null +++ b/pa1-tests/core/expr_unary.py @@ -0,0 +1 @@ +-1 diff --git a/pa1-tests/core/expr_unary.py.ast b/pa1-tests/core/expr_unary.py.ast new file mode 100644 index 0000000..e4ef8d2 --- /dev/null +++ b/pa1-tests/core/expr_unary.py.ast @@ -0,0 +1,24 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 1, 3 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 1, 1, 1, 2 ], + "expr" : { + "kind" : "UnaryExpr", + "location" : [ 1, 1, 1, 2 ], + "operator" : "-", + "operand" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 2, 1, 2 ], + "value" : 1 + } + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/global.py b/pa1-tests/core/global.py new file mode 100644 index 0000000..779d3bb --- /dev/null +++ b/pa1-tests/core/global.py @@ -0,0 +1,5 @@ +x:int = 1 + +x = 2 + +print(x) diff --git a/pa1-tests/core/global.py.ast b/pa1-tests/core/global.py.ast new file mode 100644 index 0000000..84b42b1 --- /dev/null +++ b/pa1-tests/core/global.py.ast @@ -0,0 +1,63 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 5, 9 ], + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 1, 1, 1, 9 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 1, 1, 1, 5 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 1, 1, 1, 1 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 1, 3, 1, 5 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 9, 1, 9 ], + "value" : 1 + } + } ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 3, 1, 3, 5 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 3, 1, 3, 1 ], + "name" : "x" + } ], + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 3, 5, 3, 5 ], + "value" : 2 + } + }, { + "kind" : "ExprStmt", + "location" : [ 5, 1, 5, 8 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 5, 1, 5, 8 ], + "function" : { + "kind" : "Identifier", + "location" : [ 5, 1, 5, 5 ], + "name" : "print" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 5, 7, 5, 7 ], + "name" : "x" + } ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/literals.py b/pa1-tests/core/literals.py new file mode 100644 index 0000000..081863e --- /dev/null +++ b/pa1-tests/core/literals.py @@ -0,0 +1,7 @@ +True +False +1 +None +"This is a string" +[1, 2, 3] + diff --git a/pa1-tests/core/literals.py.ast b/pa1-tests/core/literals.py.ast new file mode 100644 index 0000000..d6fd3bc --- /dev/null +++ b/pa1-tests/core/literals.py.ast @@ -0,0 +1,70 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 6, 10 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 1, 1, 1, 4 ], + "expr" : { + "kind" : "BooleanLiteral", + "location" : [ 1, 1, 1, 4 ], + "value" : true + } + }, { + "kind" : "ExprStmt", + "location" : [ 2, 1, 2, 5 ], + "expr" : { + "kind" : "BooleanLiteral", + "location" : [ 2, 1, 2, 5 ], + "value" : false + } + }, { + "kind" : "ExprStmt", + "location" : [ 3, 1, 3, 1 ], + "expr" : { + "kind" : "IntegerLiteral", + "location" : [ 3, 1, 3, 1 ], + "value" : 1 + } + }, { + "kind" : "ExprStmt", + "location" : [ 4, 1, 4, 4 ], + "expr" : { + "kind" : "NoneLiteral", + "location" : [ 4, 1, 4, 4 ] + } + }, { + "kind" : "ExprStmt", + "location" : [ 5, 1, 5, 18 ], + "expr" : { + "kind" : "StringLiteral", + "location" : [ 5, 1, 5, 18 ], + "value" : "This is a string" + } + }, { + "kind" : "ExprStmt", + "location" : [ 6, 1, 6, 9 ], + "expr" : { + "kind" : "ListExpr", + "location" : [ 6, 1, 6, 9 ], + "elements" : [ { + "kind" : "IntegerLiteral", + "location" : [ 6, 2, 6, 2 ], + "value" : 1 + }, { + "kind" : "IntegerLiteral", + "location" : [ 6, 5, 6, 5 ], + "value" : 2 + }, { + "kind" : "IntegerLiteral", + "location" : [ 6, 8, 6, 8 ], + "value" : 3 + } ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/stmt_call.py b/pa1-tests/core/stmt_call.py new file mode 100644 index 0000000..b917a72 --- /dev/null +++ b/pa1-tests/core/stmt_call.py @@ -0,0 +1 @@ +print(1) diff --git a/pa1-tests/core/stmt_call.py.ast b/pa1-tests/core/stmt_call.py.ast new file mode 100644 index 0000000..4d0ef38 --- /dev/null +++ b/pa1-tests/core/stmt_call.py.ast @@ -0,0 +1,28 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 1, 9 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 1, 1, 1, 8 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 1, 1, 1, 8 ], + "function" : { + "kind" : "Identifier", + "location" : [ 1, 1, 1, 5 ], + "name" : "print" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 1, 7, 1, 7 ], + "value" : 1 + } ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/stmt_for.py b/pa1-tests/core/stmt_for.py new file mode 100644 index 0000000..6f65c5f --- /dev/null +++ b/pa1-tests/core/stmt_for.py @@ -0,0 +1,4 @@ +x:int = 0 +for x in [1, 2, 3]: + print(x) + diff --git a/pa1-tests/core/stmt_for.py.ast b/pa1-tests/core/stmt_for.py.ast new file mode 100644 index 0000000..ba0847b --- /dev/null +++ b/pa1-tests/core/stmt_for.py.ast @@ -0,0 +1,76 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 5, 1 ], + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 1, 1, 1, 9 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 1, 1, 1, 5 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 1, 1, 1, 1 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 1, 3, 1, 5 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 9, 1, 9 ], + "value" : 0 + } + } ], + "statements" : [ { + "kind" : "ForStmt", + "location" : [ 2, 1, 5, 1 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 2, 5, 2, 5 ], + "name" : "x" + }, + "iterable" : { + "kind" : "ListExpr", + "location" : [ 2, 10, 2, 18 ], + "elements" : [ { + "kind" : "IntegerLiteral", + "location" : [ 2, 11, 2, 11 ], + "value" : 1 + }, { + "kind" : "IntegerLiteral", + "location" : [ 2, 14, 2, 14 ], + "value" : 2 + }, { + "kind" : "IntegerLiteral", + "location" : [ 2, 17, 2, 17 ], + "value" : 3 + } ] + }, + "body" : [ { + "kind" : "ExprStmt", + "location" : [ 3, 5, 3, 12 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 3, 5, 3, 12 ], + "function" : { + "kind" : "Identifier", + "location" : [ 3, 5, 3, 9 ], + "name" : "print" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 3, 11, 3, 11 ], + "name" : "x" + } ] + } + } ] + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/stmt_if.py b/pa1-tests/core/stmt_if.py new file mode 100644 index 0000000..b87c003 --- /dev/null +++ b/pa1-tests/core/stmt_if.py @@ -0,0 +1,3 @@ +if True: + False + diff --git a/pa1-tests/core/stmt_if.py.ast b/pa1-tests/core/stmt_if.py.ast new file mode 100644 index 0000000..2b08a8f --- /dev/null +++ b/pa1-tests/core/stmt_if.py.ast @@ -0,0 +1,29 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 4, 1 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "IfStmt", + "location" : [ 1, 1, 4, 1 ], + "condition" : { + "kind" : "BooleanLiteral", + "location" : [ 1, 4, 1, 7 ], + "value" : true + }, + "thenBody" : [ { + "kind" : "ExprStmt", + "location" : [ 2, 5, 2, 9 ], + "expr" : { + "kind" : "BooleanLiteral", + "location" : [ 2, 5, 2, 9 ], + "value" : false + } + } ], + "elseBody" : [ ] + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/stmt_if_elif.py b/pa1-tests/core/stmt_if_elif.py new file mode 100644 index 0000000..7fa86dd --- /dev/null +++ b/pa1-tests/core/stmt_if_elif.py @@ -0,0 +1,6 @@ +if 1 > 2: + print(1) +elif 3 == 4: + print(2) +elif True: + print(3) diff --git a/pa1-tests/core/stmt_if_elif.py.ast b/pa1-tests/core/stmt_if_elif.py.ast new file mode 100644 index 0000000..11dcd2e --- /dev/null +++ b/pa1-tests/core/stmt_if_elif.py.ast @@ -0,0 +1,112 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 7, 1 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "IfStmt", + "location" : [ 1, 1, 7, 1 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 1, 4, 1, 8 ], + "left" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 4, 1, 4 ], + "value" : 1 + }, + "operator" : ">", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 8, 1, 8 ], + "value" : 2 + } + }, + "thenBody" : [ { + "kind" : "ExprStmt", + "location" : [ 2, 5, 2, 12 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 2, 5, 2, 12 ], + "function" : { + "kind" : "Identifier", + "location" : [ 2, 5, 2, 9 ], + "name" : "print" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 2, 11, 2, 11 ], + "value" : 1 + } ] + } + } ], + "elseBody" : [ { + "kind" : "IfStmt", + "location" : [ 3, 1, 7, 1 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 3, 6, 3, 11 ], + "left" : { + "kind" : "IntegerLiteral", + "location" : [ 3, 6, 3, 6 ], + "value" : 3 + }, + "operator" : "==", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 3, 11, 3, 11 ], + "value" : 4 + } + }, + "thenBody" : [ { + "kind" : "ExprStmt", + "location" : [ 4, 5, 4, 12 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 4, 5, 4, 12 ], + "function" : { + "kind" : "Identifier", + "location" : [ 4, 5, 4, 9 ], + "name" : "print" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 4, 11, 4, 11 ], + "value" : 2 + } ] + } + } ], + "elseBody" : [ { + "kind" : "IfStmt", + "location" : [ 5, 1, 7, 1 ], + "condition" : { + "kind" : "BooleanLiteral", + "location" : [ 5, 6, 5, 9 ], + "value" : true + }, + "thenBody" : [ { + "kind" : "ExprStmt", + "location" : [ 6, 5, 6, 12 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 6, 5, 6, 12 ], + "function" : { + "kind" : "Identifier", + "location" : [ 6, 5, 6, 9 ], + "name" : "print" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 6, 11, 6, 11 ], + "value" : 3 + } ] + } + } ], + "elseBody" : [ ] + } ] + } ] + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/stmt_if_elif_else.py b/pa1-tests/core/stmt_if_elif_else.py new file mode 100644 index 0000000..161d9d9 --- /dev/null +++ b/pa1-tests/core/stmt_if_elif_else.py @@ -0,0 +1,8 @@ +if 1 > 2: + print(1) +elif 3 == 4: + print(2) +elif True: + print(3) +else: + print(4) diff --git a/pa1-tests/core/stmt_if_elif_else.py.ast b/pa1-tests/core/stmt_if_elif_else.py.ast new file mode 100644 index 0000000..dc25855 --- /dev/null +++ b/pa1-tests/core/stmt_if_elif_else.py.ast @@ -0,0 +1,129 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 9, 1 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "IfStmt", + "location" : [ 1, 1, 9, 1 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 1, 4, 1, 8 ], + "left" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 4, 1, 4 ], + "value" : 1 + }, + "operator" : ">", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 1, 8, 1, 8 ], + "value" : 2 + } + }, + "thenBody" : [ { + "kind" : "ExprStmt", + "location" : [ 2, 5, 2, 12 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 2, 5, 2, 12 ], + "function" : { + "kind" : "Identifier", + "location" : [ 2, 5, 2, 9 ], + "name" : "print" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 2, 11, 2, 11 ], + "value" : 1 + } ] + } + } ], + "elseBody" : [ { + "kind" : "IfStmt", + "location" : [ 3, 1, 9, 1 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 3, 6, 3, 11 ], + "left" : { + "kind" : "IntegerLiteral", + "location" : [ 3, 6, 3, 6 ], + "value" : 3 + }, + "operator" : "==", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 3, 11, 3, 11 ], + "value" : 4 + } + }, + "thenBody" : [ { + "kind" : "ExprStmt", + "location" : [ 4, 5, 4, 12 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 4, 5, 4, 12 ], + "function" : { + "kind" : "Identifier", + "location" : [ 4, 5, 4, 9 ], + "name" : "print" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 4, 11, 4, 11 ], + "value" : 2 + } ] + } + } ], + "elseBody" : [ { + "kind" : "IfStmt", + "location" : [ 5, 1, 9, 1 ], + "condition" : { + "kind" : "BooleanLiteral", + "location" : [ 5, 6, 5, 9 ], + "value" : true + }, + "thenBody" : [ { + "kind" : "ExprStmt", + "location" : [ 6, 5, 6, 12 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 6, 5, 6, 12 ], + "function" : { + "kind" : "Identifier", + "location" : [ 6, 5, 6, 9 ], + "name" : "print" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 6, 11, 6, 11 ], + "value" : 3 + } ] + } + } ], + "elseBody" : [ { + "kind" : "ExprStmt", + "location" : [ 8, 5, 8, 12 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 8, 5, 8, 12 ], + "function" : { + "kind" : "Identifier", + "location" : [ 8, 5, 8, 9 ], + "name" : "print" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 8, 11, 8, 11 ], + "value" : 4 + } ] + } + } ] + } ] + } ] + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/stmt_ifelse.py b/pa1-tests/core/stmt_ifelse.py new file mode 100644 index 0000000..f138957 --- /dev/null +++ b/pa1-tests/core/stmt_ifelse.py @@ -0,0 +1,5 @@ +if True: + False +else: + True + diff --git a/pa1-tests/core/stmt_ifelse.py.ast b/pa1-tests/core/stmt_ifelse.py.ast new file mode 100644 index 0000000..8e23d16 --- /dev/null +++ b/pa1-tests/core/stmt_ifelse.py.ast @@ -0,0 +1,37 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 6, 1 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "IfStmt", + "location" : [ 1, 1, 6, 1 ], + "condition" : { + "kind" : "BooleanLiteral", + "location" : [ 1, 4, 1, 7 ], + "value" : true + }, + "thenBody" : [ { + "kind" : "ExprStmt", + "location" : [ 2, 5, 2, 9 ], + "expr" : { + "kind" : "BooleanLiteral", + "location" : [ 2, 5, 2, 9 ], + "value" : false + } + } ], + "elseBody" : [ { + "kind" : "ExprStmt", + "location" : [ 4, 5, 4, 8 ], + "expr" : { + "kind" : "BooleanLiteral", + "location" : [ 4, 5, 4, 8 ], + "value" : true + } + } ] + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/stmt_list_assign.py b/pa1-tests/core/stmt_list_assign.py new file mode 100644 index 0000000..e9e31d9 --- /dev/null +++ b/pa1-tests/core/stmt_list_assign.py @@ -0,0 +1,4 @@ +x:int = None + +x = [1, 2, 3] +x[0] = x[1] diff --git a/pa1-tests/core/stmt_list_assign.py.ast b/pa1-tests/core/stmt_list_assign.py.ast new file mode 100644 index 0000000..b65848c --- /dev/null +++ b/pa1-tests/core/stmt_list_assign.py.ast @@ -0,0 +1,88 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 4, 12 ], + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 1, 1, 1, 12 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 1, 1, 1, 5 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 1, 1, 1, 1 ], + "name" : "x" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 1, 3, 1, 5 ], + "className" : "int" + } + }, + "value" : { + "kind" : "NoneLiteral", + "location" : [ 1, 9, 1, 12 ] + } + } ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 3, 1, 3, 13 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 3, 1, 3, 1 ], + "name" : "x" + } ], + "value" : { + "kind" : "ListExpr", + "location" : [ 3, 5, 3, 13 ], + "elements" : [ { + "kind" : "IntegerLiteral", + "location" : [ 3, 6, 3, 6 ], + "value" : 1 + }, { + "kind" : "IntegerLiteral", + "location" : [ 3, 9, 3, 9 ], + "value" : 2 + }, { + "kind" : "IntegerLiteral", + "location" : [ 3, 12, 3, 12 ], + "value" : 3 + } ] + } + }, { + "kind" : "AssignStmt", + "location" : [ 4, 1, 4, 11 ], + "targets" : [ { + "kind" : "IndexExpr", + "location" : [ 4, 1, 4, 4 ], + "list" : { + "kind" : "Identifier", + "location" : [ 4, 1, 4, 1 ], + "name" : "x" + }, + "index" : { + "kind" : "IntegerLiteral", + "location" : [ 4, 3, 4, 3 ], + "value" : 0 + } + } ], + "value" : { + "kind" : "IndexExpr", + "location" : [ 4, 8, 4, 11 ], + "list" : { + "kind" : "Identifier", + "location" : [ 4, 8, 4, 8 ], + "name" : "x" + }, + "index" : { + "kind" : "IntegerLiteral", + "location" : [ 4, 10, 4, 10 ], + "value" : 1 + } + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/core/stmt_while.py b/pa1-tests/core/stmt_while.py new file mode 100644 index 0000000..1aaefd8 --- /dev/null +++ b/pa1-tests/core/stmt_while.py @@ -0,0 +1,3 @@ +while True: + pass + diff --git a/pa1-tests/core/stmt_while.py.ast b/pa1-tests/core/stmt_while.py.ast new file mode 100644 index 0000000..a564490 --- /dev/null +++ b/pa1-tests/core/stmt_while.py.ast @@ -0,0 +1,20 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 4, 1 ], + "declarations" : [ ], + "statements" : [ { + "kind" : "WhileStmt", + "location" : [ 1, 1, 4, 1 ], + "condition" : { + "kind" : "BooleanLiteral", + "location" : [ 1, 7, 1, 10 ], + "value" : true + }, + "body" : [ ] + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/extra/graph.py b/pa1-tests/extra/graph.py new file mode 100644 index 0000000..bb75943 --- /dev/null +++ b/pa1-tests/extra/graph.py @@ -0,0 +1,52 @@ +class weight(object): + value: int = 0 + + def __init__(self: "weight", value: int): + self.value = value + + def __repr__(self: "weight"): + return "weight(" + str(self.value) + ")" + + +class graph(object): + matrix: [[weight]] = None + + def __init__(self: "graph", num_vertices: int): + i: int = 0 + j: int = 0 + row: [weight] = None + + self.matrix = [] + while i < num_vertices: + j = 0 + row = [] + while j < num_vertices: + row = row + [weight(0)] + j = j + 1 + self.matrix = self.matrix + [row] + i = i + 1 + + def add_edge(self: "graph", from_vertex: int, to_vertex: int, edge_weight: int): + pass + + def print(self: "graph"): + for row in self.matrix: + print(row) + + +class undirectedgraph(graph): + def add_edge(self: "undirectedgraph", from_vertex: int, to_vertex: int, edge_weight: int): + self.matrix[from_vertex][to_vertex] = weight(edge_weight) + self.matrix[to_vertex][from_vertex] = weight(edge_weight) + + +class directedgraph(graph): + def add_edge(self: "undirectedgraph", from_vertex: int, to_vertex: int, edge_weight: int): + self.matrix[from_vertex][to_vertex] = weight(edge_weight) + + +g = undirectedgraph(3) +g.add_edge(0, 2, 100) +g.print() + +directedgraph(3).print() diff --git a/pa1-tests/extra/graph.py.ast b/pa1-tests/extra/graph.py.ast new file mode 100644 index 0000000..6332c1f --- /dev/null +++ b/pa1-tests/extra/graph.py.ast @@ -0,0 +1,1110 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 52, 25 ], + "declarations" : [ { + "kind" : "ClassDef", + "location" : [ 1, 1, 11, 0 ], + "name" : { + "kind" : "Identifier", + "location" : [ 1, 7, 1, 12 ], + "name" : "weight" + }, + "superClass" : { + "kind" : "Identifier", + "location" : [ 1, 14, 1, 19 ], + "name" : "object" + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 2, 5, 2, 18 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 2, 5, 2, 14 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 2, 5, 2, 9 ], + "name" : "value" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 2, 12, 2, 14 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 2, 18, 2, 18 ], + "value" : 0 + } + }, { + "kind" : "FuncDef", + "location" : [ 4, 5, 5, 27 ], + "name" : { + "kind" : "Identifier", + "location" : [ 4, 9, 4, 16 ], + "name" : "__init__" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 4, 18, 4, 31 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 4, 18, 4, 21 ], + "name" : "self" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 4, 24, 4, 31 ], + "className" : "weight" + } + }, { + "kind" : "TypedVar", + "location" : [ 4, 34, 4, 43 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 4, 34, 4, 38 ], + "name" : "value" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 4, 41, 4, 43 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 4, 45, 4, 45 ], + "className" : "" + }, + "declarations" : [ ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 5, 9, 5, 26 ], + "targets" : [ { + "kind" : "MemberExpr", + "location" : [ 5, 9, 5, 18 ], + "object" : { + "kind" : "Identifier", + "location" : [ 5, 9, 5, 12 ], + "name" : "self" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 5, 14, 5, 18 ], + "name" : "value" + } + } ], + "value" : { + "kind" : "Identifier", + "location" : [ 5, 22, 5, 26 ], + "name" : "value" + } + } ] + }, { + "kind" : "FuncDef", + "location" : [ 7, 5, 8, 49 ], + "name" : { + "kind" : "Identifier", + "location" : [ 7, 9, 7, 16 ], + "name" : "__repr__" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 7, 18, 7, 31 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 7, 18, 7, 21 ], + "name" : "self" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 7, 24, 7, 31 ], + "className" : "weight" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 7, 33, 7, 33 ], + "className" : "" + }, + "declarations" : [ ], + "statements" : [ { + "kind" : "ReturnStmt", + "location" : [ 8, 9, 8, 48 ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 8, 16, 8, 48 ], + "left" : { + "kind" : "BinaryExpr", + "location" : [ 8, 16, 8, 42 ], + "left" : { + "kind" : "StringLiteral", + "location" : [ 8, 16, 8, 24 ], + "value" : "weight(" + }, + "operator" : "+", + "right" : { + "kind" : "CallExpr", + "location" : [ 8, 28, 8, 42 ], + "function" : { + "kind" : "Identifier", + "location" : [ 8, 28, 8, 30 ], + "name" : "str" + }, + "args" : [ { + "kind" : "MemberExpr", + "location" : [ 8, 32, 8, 41 ], + "object" : { + "kind" : "Identifier", + "location" : [ 8, 32, 8, 35 ], + "name" : "self" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 8, 37, 8, 41 ], + "name" : "value" + } + } ] + } + }, + "operator" : "+", + "right" : { + "kind" : "StringLiteral", + "location" : [ 8, 46, 8, 48 ], + "value" : ")" + } + } + } ] + } ] + }, { + "kind" : "ClassDef", + "location" : [ 11, 1, 37, 0 ], + "name" : { + "kind" : "Identifier", + "location" : [ 11, 7, 11, 11 ], + "name" : "graph" + }, + "superClass" : { + "kind" : "Identifier", + "location" : [ 11, 13, 11, 18 ], + "name" : "object" + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 12, 5, 12, 29 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 12, 5, 12, 22 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 12, 5, 12, 10 ], + "name" : "matrix" + }, + "type" : { + "kind" : "ListType", + "location" : [ 12, 13, 12, 22 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 12, 14, 12, 21 ], + "elementType" : { + "kind" : "ClassType", + "location" : [ 12, 15, 12, 20 ], + "className" : "weight" + } + } + } + }, + "value" : { + "kind" : "NoneLiteral", + "location" : [ 12, 26, 12, 29 ] + } + }, { + "kind" : "FuncDef", + "location" : [ 14, 5, 29, 4 ], + "name" : { + "kind" : "Identifier", + "location" : [ 14, 9, 14, 16 ], + "name" : "__init__" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 14, 18, 14, 30 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 14, 18, 14, 21 ], + "name" : "self" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 14, 24, 14, 30 ], + "className" : "graph" + } + }, { + "kind" : "TypedVar", + "location" : [ 14, 33, 14, 49 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 14, 33, 14, 44 ], + "name" : "num_vertices" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 14, 47, 14, 49 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 14, 51, 14, 51 ], + "className" : "" + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 15, 9, 15, 18 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 15, 9, 15, 14 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 15, 9, 15, 9 ], + "name" : "i" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 15, 12, 15, 14 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 15, 18, 15, 18 ], + "value" : 0 + } + }, { + "kind" : "VarDef", + "location" : [ 16, 9, 16, 18 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 16, 9, 16, 14 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 16, 9, 16, 9 ], + "name" : "j" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 16, 12, 16, 14 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 16, 18, 16, 18 ], + "value" : 0 + } + }, { + "kind" : "VarDef", + "location" : [ 17, 9, 17, 28 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 17, 9, 17, 21 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 17, 9, 17, 11 ], + "name" : "row" + }, + "type" : { + "kind" : "ListType", + "location" : [ 17, 14, 17, 21 ], + "elementType" : { + "kind" : "ClassType", + "location" : [ 17, 15, 17, 20 ], + "className" : "weight" + } + } + }, + "value" : { + "kind" : "NoneLiteral", + "location" : [ 17, 25, 17, 28 ] + } + } ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 19, 9, 19, 24 ], + "targets" : [ { + "kind" : "MemberExpr", + "location" : [ 19, 9, 19, 19 ], + "object" : { + "kind" : "Identifier", + "location" : [ 19, 9, 19, 12 ], + "name" : "self" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 19, 14, 19, 19 ], + "name" : "matrix" + } + } ], + "value" : { + "kind" : "ListExpr", + "location" : [ 19, 23, 19, 24 ], + "elements" : [ ] + } + }, { + "kind" : "WhileStmt", + "location" : [ 20, 9, 29, 4 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 20, 15, 20, 30 ], + "left" : { + "kind" : "Identifier", + "location" : [ 20, 15, 20, 15 ], + "name" : "i" + }, + "operator" : "<", + "right" : { + "kind" : "Identifier", + "location" : [ 20, 19, 20, 30 ], + "name" : "num_vertices" + } + }, + "body" : [ { + "kind" : "AssignStmt", + "location" : [ 21, 13, 21, 17 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 21, 13, 21, 13 ], + "name" : "j" + } ], + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 21, 17, 21, 17 ], + "value" : 0 + } + }, { + "kind" : "AssignStmt", + "location" : [ 22, 13, 22, 20 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 22, 13, 22, 15 ], + "name" : "row" + } ], + "value" : { + "kind" : "ListExpr", + "location" : [ 22, 19, 22, 20 ], + "elements" : [ ] + } + }, { + "kind" : "WhileStmt", + "location" : [ 23, 13, 26, 12 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 23, 19, 23, 34 ], + "left" : { + "kind" : "Identifier", + "location" : [ 23, 19, 23, 19 ], + "name" : "j" + }, + "operator" : "<", + "right" : { + "kind" : "Identifier", + "location" : [ 23, 23, 23, 34 ], + "name" : "num_vertices" + } + }, + "body" : [ { + "kind" : "AssignStmt", + "location" : [ 24, 17, 24, 39 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 24, 17, 24, 19 ], + "name" : "row" + } ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 24, 23, 24, 39 ], + "left" : { + "kind" : "Identifier", + "location" : [ 24, 23, 24, 25 ], + "name" : "row" + }, + "operator" : "+", + "right" : { + "kind" : "ListExpr", + "location" : [ 24, 29, 24, 39 ], + "elements" : [ { + "kind" : "CallExpr", + "location" : [ 24, 30, 24, 38 ], + "function" : { + "kind" : "Identifier", + "location" : [ 24, 30, 24, 35 ], + "name" : "weight" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 24, 37, 24, 37 ], + "value" : 0 + } ] + } ] + } + } + }, { + "kind" : "AssignStmt", + "location" : [ 25, 17, 25, 25 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 25, 17, 25, 17 ], + "name" : "j" + } ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 25, 21, 25, 25 ], + "left" : { + "kind" : "Identifier", + "location" : [ 25, 21, 25, 21 ], + "name" : "j" + }, + "operator" : "+", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 25, 25, 25, 25 ], + "value" : 1 + } + } + } ] + }, { + "kind" : "AssignStmt", + "location" : [ 26, 13, 26, 45 ], + "targets" : [ { + "kind" : "MemberExpr", + "location" : [ 26, 13, 26, 23 ], + "object" : { + "kind" : "Identifier", + "location" : [ 26, 13, 26, 16 ], + "name" : "self" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 26, 18, 26, 23 ], + "name" : "matrix" + } + } ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 26, 27, 26, 45 ], + "left" : { + "kind" : "MemberExpr", + "location" : [ 26, 27, 26, 37 ], + "object" : { + "kind" : "Identifier", + "location" : [ 26, 27, 26, 30 ], + "name" : "self" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 26, 32, 26, 37 ], + "name" : "matrix" + } + }, + "operator" : "+", + "right" : { + "kind" : "ListExpr", + "location" : [ 26, 41, 26, 45 ], + "elements" : [ { + "kind" : "Identifier", + "location" : [ 26, 42, 26, 44 ], + "name" : "row" + } ] + } + } + }, { + "kind" : "AssignStmt", + "location" : [ 27, 13, 27, 21 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 27, 13, 27, 13 ], + "name" : "i" + } ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 27, 17, 27, 21 ], + "left" : { + "kind" : "Identifier", + "location" : [ 27, 17, 27, 17 ], + "name" : "i" + }, + "operator" : "+", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 27, 21, 27, 21 ], + "value" : 1 + } + } + } ] + } ] + }, { + "kind" : "FuncDef", + "location" : [ 29, 5, 30, 13 ], + "name" : { + "kind" : "Identifier", + "location" : [ 29, 9, 29, 16 ], + "name" : "add_edge" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 29, 18, 29, 30 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 29, 18, 29, 21 ], + "name" : "self" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 29, 24, 29, 30 ], + "className" : "graph" + } + }, { + "kind" : "TypedVar", + "location" : [ 29, 33, 29, 48 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 29, 33, 29, 43 ], + "name" : "from_vertex" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 29, 46, 29, 48 ], + "className" : "int" + } + }, { + "kind" : "TypedVar", + "location" : [ 29, 51, 29, 64 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 29, 51, 29, 59 ], + "name" : "to_vertex" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 29, 62, 29, 64 ], + "className" : "int" + } + }, { + "kind" : "TypedVar", + "location" : [ 29, 67, 29, 82 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 29, 67, 29, 77 ], + "name" : "edge_weight" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 29, 80, 29, 82 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 29, 84, 29, 84 ], + "className" : "" + }, + "declarations" : [ ], + "statements" : [ ] + }, { + "kind" : "FuncDef", + "location" : [ 32, 5, 37, 0 ], + "name" : { + "kind" : "Identifier", + "location" : [ 32, 9, 32, 13 ], + "name" : "print" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 32, 15, 32, 27 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 32, 15, 32, 18 ], + "name" : "self" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 32, 21, 32, 27 ], + "className" : "graph" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 32, 29, 32, 29 ], + "className" : "" + }, + "declarations" : [ ], + "statements" : [ { + "kind" : "ForStmt", + "location" : [ 33, 9, 37, 0 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 33, 13, 33, 15 ], + "name" : "row" + }, + "iterable" : { + "kind" : "MemberExpr", + "location" : [ 33, 20, 33, 30 ], + "object" : { + "kind" : "Identifier", + "location" : [ 33, 20, 33, 23 ], + "name" : "self" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 33, 25, 33, 30 ], + "name" : "matrix" + } + }, + "body" : [ { + "kind" : "ExprStmt", + "location" : [ 34, 13, 34, 22 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 34, 13, 34, 22 ], + "function" : { + "kind" : "Identifier", + "location" : [ 34, 13, 34, 17 ], + "name" : "print" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 34, 19, 34, 21 ], + "name" : "row" + } ] + } + } ] + } ] + } ] + }, { + "kind" : "ClassDef", + "location" : [ 37, 1, 43, 0 ], + "name" : { + "kind" : "Identifier", + "location" : [ 37, 7, 37, 21 ], + "name" : "undirectedgraph" + }, + "superClass" : { + "kind" : "Identifier", + "location" : [ 37, 23, 37, 27 ], + "name" : "graph" + }, + "declarations" : [ { + "kind" : "FuncDef", + "location" : [ 38, 5, 40, 66 ], + "name" : { + "kind" : "Identifier", + "location" : [ 38, 9, 38, 16 ], + "name" : "add_edge" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 38, 18, 38, 40 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 38, 18, 38, 21 ], + "name" : "self" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 38, 24, 38, 40 ], + "className" : "undirectedgraph" + } + }, { + "kind" : "TypedVar", + "location" : [ 38, 43, 38, 58 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 38, 43, 38, 53 ], + "name" : "from_vertex" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 38, 56, 38, 58 ], + "className" : "int" + } + }, { + "kind" : "TypedVar", + "location" : [ 38, 61, 38, 74 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 38, 61, 38, 69 ], + "name" : "to_vertex" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 38, 72, 38, 74 ], + "className" : "int" + } + }, { + "kind" : "TypedVar", + "location" : [ 38, 77, 38, 92 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 38, 77, 38, 87 ], + "name" : "edge_weight" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 38, 90, 38, 92 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 38, 94, 38, 94 ], + "className" : "" + }, + "declarations" : [ ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 39, 9, 39, 65 ], + "targets" : [ { + "kind" : "IndexExpr", + "location" : [ 39, 9, 39, 43 ], + "list" : { + "kind" : "IndexExpr", + "location" : [ 39, 9, 39, 32 ], + "list" : { + "kind" : "MemberExpr", + "location" : [ 39, 9, 39, 19 ], + "object" : { + "kind" : "Identifier", + "location" : [ 39, 9, 39, 12 ], + "name" : "self" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 39, 14, 39, 19 ], + "name" : "matrix" + } + }, + "index" : { + "kind" : "Identifier", + "location" : [ 39, 21, 39, 31 ], + "name" : "from_vertex" + } + }, + "index" : { + "kind" : "Identifier", + "location" : [ 39, 34, 39, 42 ], + "name" : "to_vertex" + } + } ], + "value" : { + "kind" : "CallExpr", + "location" : [ 39, 47, 39, 65 ], + "function" : { + "kind" : "Identifier", + "location" : [ 39, 47, 39, 52 ], + "name" : "weight" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 39, 54, 39, 64 ], + "name" : "edge_weight" + } ] + } + }, { + "kind" : "AssignStmt", + "location" : [ 40, 9, 40, 65 ], + "targets" : [ { + "kind" : "IndexExpr", + "location" : [ 40, 9, 40, 43 ], + "list" : { + "kind" : "IndexExpr", + "location" : [ 40, 9, 40, 30 ], + "list" : { + "kind" : "MemberExpr", + "location" : [ 40, 9, 40, 19 ], + "object" : { + "kind" : "Identifier", + "location" : [ 40, 9, 40, 12 ], + "name" : "self" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 40, 14, 40, 19 ], + "name" : "matrix" + } + }, + "index" : { + "kind" : "Identifier", + "location" : [ 40, 21, 40, 29 ], + "name" : "to_vertex" + } + }, + "index" : { + "kind" : "Identifier", + "location" : [ 40, 32, 40, 42 ], + "name" : "from_vertex" + } + } ], + "value" : { + "kind" : "CallExpr", + "location" : [ 40, 47, 40, 65 ], + "function" : { + "kind" : "Identifier", + "location" : [ 40, 47, 40, 52 ], + "name" : "weight" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 40, 54, 40, 64 ], + "name" : "edge_weight" + } ] + } + } ] + } ] + }, { + "kind" : "ClassDef", + "location" : [ 43, 1, 48, 0 ], + "name" : { + "kind" : "Identifier", + "location" : [ 43, 7, 43, 19 ], + "name" : "directedgraph" + }, + "superClass" : { + "kind" : "Identifier", + "location" : [ 43, 21, 43, 25 ], + "name" : "graph" + }, + "declarations" : [ { + "kind" : "FuncDef", + "location" : [ 44, 5, 45, 66 ], + "name" : { + "kind" : "Identifier", + "location" : [ 44, 9, 44, 16 ], + "name" : "add_edge" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 44, 18, 44, 40 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 44, 18, 44, 21 ], + "name" : "self" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 44, 24, 44, 40 ], + "className" : "undirectedgraph" + } + }, { + "kind" : "TypedVar", + "location" : [ 44, 43, 44, 58 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 44, 43, 44, 53 ], + "name" : "from_vertex" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 44, 56, 44, 58 ], + "className" : "int" + } + }, { + "kind" : "TypedVar", + "location" : [ 44, 61, 44, 74 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 44, 61, 44, 69 ], + "name" : "to_vertex" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 44, 72, 44, 74 ], + "className" : "int" + } + }, { + "kind" : "TypedVar", + "location" : [ 44, 77, 44, 92 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 44, 77, 44, 87 ], + "name" : "edge_weight" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 44, 90, 44, 92 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 44, 94, 44, 94 ], + "className" : "" + }, + "declarations" : [ ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 45, 9, 45, 65 ], + "targets" : [ { + "kind" : "IndexExpr", + "location" : [ 45, 9, 45, 43 ], + "list" : { + "kind" : "IndexExpr", + "location" : [ 45, 9, 45, 32 ], + "list" : { + "kind" : "MemberExpr", + "location" : [ 45, 9, 45, 19 ], + "object" : { + "kind" : "Identifier", + "location" : [ 45, 9, 45, 12 ], + "name" : "self" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 45, 14, 45, 19 ], + "name" : "matrix" + } + }, + "index" : { + "kind" : "Identifier", + "location" : [ 45, 21, 45, 31 ], + "name" : "from_vertex" + } + }, + "index" : { + "kind" : "Identifier", + "location" : [ 45, 34, 45, 42 ], + "name" : "to_vertex" + } + } ], + "value" : { + "kind" : "CallExpr", + "location" : [ 45, 47, 45, 65 ], + "function" : { + "kind" : "Identifier", + "location" : [ 45, 47, 45, 52 ], + "name" : "weight" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 45, 54, 45, 64 ], + "name" : "edge_weight" + } ] + } + } ] + } ] + } ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 48, 1, 48, 22 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 48, 1, 48, 1 ], + "name" : "g" + } ], + "value" : { + "kind" : "CallExpr", + "location" : [ 48, 5, 48, 22 ], + "function" : { + "kind" : "Identifier", + "location" : [ 48, 5, 48, 19 ], + "name" : "undirectedgraph" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 48, 21, 48, 21 ], + "value" : 3 + } ] + } + }, { + "kind" : "ExprStmt", + "location" : [ 49, 1, 49, 21 ], + "expr" : { + "kind" : "MethodCallExpr", + "location" : [ 49, 1, 49, 21 ], + "method" : { + "kind" : "MemberExpr", + "location" : [ 49, 1, 49, 10 ], + "object" : { + "kind" : "Identifier", + "location" : [ 49, 1, 49, 1 ], + "name" : "g" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 49, 3, 49, 10 ], + "name" : "add_edge" + } + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 49, 12, 49, 12 ], + "value" : 0 + }, { + "kind" : "IntegerLiteral", + "location" : [ 49, 15, 49, 15 ], + "value" : 2 + }, { + "kind" : "IntegerLiteral", + "location" : [ 49, 18, 49, 20 ], + "value" : 100 + } ] + } + }, { + "kind" : "ExprStmt", + "location" : [ 50, 1, 50, 9 ], + "expr" : { + "kind" : "MethodCallExpr", + "location" : [ 50, 1, 50, 9 ], + "method" : { + "kind" : "MemberExpr", + "location" : [ 50, 1, 50, 7 ], + "object" : { + "kind" : "Identifier", + "location" : [ 50, 1, 50, 1 ], + "name" : "g" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 50, 3, 50, 7 ], + "name" : "print" + } + }, + "args" : [ ] + } + }, { + "kind" : "ExprStmt", + "location" : [ 52, 1, 52, 24 ], + "expr" : { + "kind" : "MethodCallExpr", + "location" : [ 52, 1, 52, 24 ], + "method" : { + "kind" : "MemberExpr", + "location" : [ 52, 1, 52, 22 ], + "object" : { + "kind" : "CallExpr", + "location" : [ 52, 1, 52, 16 ], + "function" : { + "kind" : "Identifier", + "location" : [ 52, 1, 52, 13 ], + "name" : "directedgraph" + }, + "args" : [ { + "kind" : "IntegerLiteral", + "location" : [ 52, 15, 52, 15 ], + "value" : 3 + } ] + }, + "member" : { + "kind" : "Identifier", + "location" : [ 52, 18, 52, 22 ], + "name" : "print" + } + }, + "args" : [ ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/extra/mergesort.py b/pa1-tests/extra/mergesort.py new file mode 100644 index 0000000..096c2c8 --- /dev/null +++ b/pa1-tests/extra/mergesort.py @@ -0,0 +1,62 @@ +def append(a: [int], k: int) -> [int]: + return a + [k] + + +def extend(a: [int], b: [int], b_start: int, b_end: int) -> [int]: + extended: [int] = None + i: int = 0 + + extended = a + i = b_start + while i < b_end: + extended = append(extended, b[i]) + i = i + 1 + return extended + + +def merge(left: [int], right: [int]) -> [int]: + merged: [int] = None + i: int = 0 + j: int = 0 + + merged = [] + while i < len(left) and j < len(right): + if left[i] < right[j]: + merged = append(merged, left[i]) + i = i + 1 + else: + merged = append(merged, right[j]) + j = j + 1 + + if i < len(left): + merged = extend(merged, left, i, len(left)) + if j < len(right): + merged = extend(merged, right, j, len(right)) + + return merged + + +def mergesort(a: [int]) -> [int]: + mid: int = 0 + left: [int] = None + right: [int] = None + + if len(a) < 2: + return a + + mid = len(a) // 2 + left = extend([], a, 0, mid) + right = extend([], a, mid, len(a)) + + left = mergesort(left) + right = mergesort(right) + return merge(left, right) + + +initial: [int] = None +ordered: [int] = None + +initial = [2, 7, 3, 11, 5] +ordered = mergesort(initial) + +print(ordered) diff --git a/pa1-tests/extra/mergesort.py.ast b/pa1-tests/extra/mergesort.py.ast new file mode 100644 index 0000000..f11bb0f --- /dev/null +++ b/pa1-tests/extra/mergesort.py.ast @@ -0,0 +1,1262 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 62, 15 ], + "declarations" : [ { + "kind" : "FuncDef", + "location" : [ 1, 1, 2, 19 ], + "name" : { + "kind" : "Identifier", + "location" : [ 1, 5, 1, 10 ], + "name" : "append" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 1, 12, 1, 19 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 1, 12, 1, 12 ], + "name" : "a" + }, + "type" : { + "kind" : "ListType", + "location" : [ 1, 15, 1, 19 ], + "elementType" : { + "kind" : "ClassType", + "location" : [ 1, 16, 1, 18 ], + "className" : "int" + } + } + }, { + "kind" : "TypedVar", + "location" : [ 1, 22, 1, 27 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 1, 22, 1, 22 ], + "name" : "k" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 1, 25, 1, 27 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ListType", + "location" : [ 1, 33, 1, 37 ], + "elementType" : { + "kind" : "ClassType", + "location" : [ 1, 34, 1, 36 ], + "className" : "int" + } + }, + "declarations" : [ ], + "statements" : [ { + "kind" : "ReturnStmt", + "location" : [ 2, 5, 2, 18 ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 2, 12, 2, 18 ], + "left" : { + "kind" : "Identifier", + "location" : [ 2, 12, 2, 12 ], + "name" : "a" + }, + "operator" : "+", + "right" : { + "kind" : "ListExpr", + "location" : [ 2, 16, 2, 18 ], + "elements" : [ { + "kind" : "Identifier", + "location" : [ 2, 17, 2, 17 ], + "name" : "k" + } ] + } + } + } ] + }, { + "kind" : "FuncDef", + "location" : [ 5, 1, 14, 20 ], + "name" : { + "kind" : "Identifier", + "location" : [ 5, 5, 5, 10 ], + "name" : "extend" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 5, 12, 5, 19 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 5, 12, 5, 12 ], + "name" : "a" + }, + "type" : { + "kind" : "ListType", + "location" : [ 5, 15, 5, 19 ], + "elementType" : { + "kind" : "ClassType", + "location" : [ 5, 16, 5, 18 ], + "className" : "int" + } + } + }, { + "kind" : "TypedVar", + "location" : [ 5, 22, 5, 29 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 5, 22, 5, 22 ], + "name" : "b" + }, + "type" : { + "kind" : "ListType", + "location" : [ 5, 25, 5, 29 ], + "elementType" : { + "kind" : "ClassType", + "location" : [ 5, 26, 5, 28 ], + "className" : "int" + } + } + }, { + "kind" : "TypedVar", + "location" : [ 5, 32, 5, 43 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 5, 32, 5, 38 ], + "name" : "b_start" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 5, 41, 5, 43 ], + "className" : "int" + } + }, { + "kind" : "TypedVar", + "location" : [ 5, 46, 5, 55 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 5, 46, 5, 50 ], + "name" : "b_end" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 5, 53, 5, 55 ], + "className" : "int" + } + } ], + "returnType" : { + "kind" : "ListType", + "location" : [ 5, 61, 5, 65 ], + "elementType" : { + "kind" : "ClassType", + "location" : [ 5, 62, 5, 64 ], + "className" : "int" + } + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 6, 5, 6, 26 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 6, 5, 6, 19 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 6, 5, 6, 12 ], + "name" : "extended" + }, + "type" : { + "kind" : "ListType", + "location" : [ 6, 15, 6, 19 ], + "elementType" : { + "kind" : "ClassType", + "location" : [ 6, 16, 6, 18 ], + "className" : "int" + } + } + }, + "value" : { + "kind" : "NoneLiteral", + "location" : [ 6, 23, 6, 26 ] + } + }, { + "kind" : "VarDef", + "location" : [ 7, 5, 7, 14 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 7, 5, 7, 10 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 7, 5, 7, 5 ], + "name" : "i" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 7, 8, 7, 10 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 7, 14, 7, 14 ], + "value" : 0 + } + } ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 9, 5, 9, 16 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 9, 5, 9, 12 ], + "name" : "extended" + } ], + "value" : { + "kind" : "Identifier", + "location" : [ 9, 16, 9, 16 ], + "name" : "a" + } + }, { + "kind" : "AssignStmt", + "location" : [ 10, 5, 10, 15 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 10, 5, 10, 5 ], + "name" : "i" + } ], + "value" : { + "kind" : "Identifier", + "location" : [ 10, 9, 10, 15 ], + "name" : "b_start" + } + }, { + "kind" : "WhileStmt", + "location" : [ 11, 5, 14, 4 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 11, 11, 11, 19 ], + "left" : { + "kind" : "Identifier", + "location" : [ 11, 11, 11, 11 ], + "name" : "i" + }, + "operator" : "<", + "right" : { + "kind" : "Identifier", + "location" : [ 11, 15, 11, 19 ], + "name" : "b_end" + } + }, + "body" : [ { + "kind" : "AssignStmt", + "location" : [ 12, 9, 12, 41 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 12, 9, 12, 16 ], + "name" : "extended" + } ], + "value" : { + "kind" : "CallExpr", + "location" : [ 12, 20, 12, 41 ], + "function" : { + "kind" : "Identifier", + "location" : [ 12, 20, 12, 25 ], + "name" : "append" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 12, 27, 12, 34 ], + "name" : "extended" + }, { + "kind" : "IndexExpr", + "location" : [ 12, 37, 12, 40 ], + "list" : { + "kind" : "Identifier", + "location" : [ 12, 37, 12, 37 ], + "name" : "b" + }, + "index" : { + "kind" : "Identifier", + "location" : [ 12, 39, 12, 39 ], + "name" : "i" + } + } ] + } + }, { + "kind" : "AssignStmt", + "location" : [ 13, 9, 13, 17 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 13, 9, 13, 9 ], + "name" : "i" + } ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 13, 13, 13, 17 ], + "left" : { + "kind" : "Identifier", + "location" : [ 13, 13, 13, 13 ], + "name" : "i" + }, + "operator" : "+", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 13, 17, 13, 17 ], + "value" : 1 + } + } + } ] + }, { + "kind" : "ReturnStmt", + "location" : [ 14, 5, 14, 19 ], + "value" : { + "kind" : "Identifier", + "location" : [ 14, 12, 14, 19 ], + "name" : "extended" + } + } ] + }, { + "kind" : "FuncDef", + "location" : [ 17, 1, 36, 18 ], + "name" : { + "kind" : "Identifier", + "location" : [ 17, 5, 17, 9 ], + "name" : "merge" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 17, 11, 17, 21 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 17, 11, 17, 14 ], + "name" : "left" + }, + "type" : { + "kind" : "ListType", + "location" : [ 17, 17, 17, 21 ], + "elementType" : { + "kind" : "ClassType", + "location" : [ 17, 18, 17, 20 ], + "className" : "int" + } + } + }, { + "kind" : "TypedVar", + "location" : [ 17, 24, 17, 35 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 17, 24, 17, 28 ], + "name" : "right" + }, + "type" : { + "kind" : "ListType", + "location" : [ 17, 31, 17, 35 ], + "elementType" : { + "kind" : "ClassType", + "location" : [ 17, 32, 17, 34 ], + "className" : "int" + } + } + } ], + "returnType" : { + "kind" : "ListType", + "location" : [ 17, 41, 17, 45 ], + "elementType" : { + "kind" : "ClassType", + "location" : [ 17, 42, 17, 44 ], + "className" : "int" + } + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 18, 5, 18, 24 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 18, 5, 18, 17 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 18, 5, 18, 10 ], + "name" : "merged" + }, + "type" : { + "kind" : "ListType", + "location" : [ 18, 13, 18, 17 ], + "elementType" : { + "kind" : "ClassType", + "location" : [ 18, 14, 18, 16 ], + "className" : "int" + } + } + }, + "value" : { + "kind" : "NoneLiteral", + "location" : [ 18, 21, 18, 24 ] + } + }, { + "kind" : "VarDef", + "location" : [ 19, 5, 19, 14 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 19, 5, 19, 10 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 19, 5, 19, 5 ], + "name" : "i" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 19, 8, 19, 10 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 19, 14, 19, 14 ], + "value" : 0 + } + }, { + "kind" : "VarDef", + "location" : [ 20, 5, 20, 14 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 20, 5, 20, 10 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 20, 5, 20, 5 ], + "name" : "j" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 20, 8, 20, 10 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 20, 14, 20, 14 ], + "value" : 0 + } + } ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 22, 5, 22, 15 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 22, 5, 22, 10 ], + "name" : "merged" + } ], + "value" : { + "kind" : "ListExpr", + "location" : [ 22, 14, 22, 15 ], + "elements" : [ ] + } + }, { + "kind" : "WhileStmt", + "location" : [ 23, 5, 31, 4 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 23, 11, 23, 42 ], + "left" : { + "kind" : "BinaryExpr", + "location" : [ 23, 11, 23, 23 ], + "left" : { + "kind" : "Identifier", + "location" : [ 23, 11, 23, 11 ], + "name" : "i" + }, + "operator" : "<", + "right" : { + "kind" : "CallExpr", + "location" : [ 23, 15, 23, 23 ], + "function" : { + "kind" : "Identifier", + "location" : [ 23, 15, 23, 17 ], + "name" : "len" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 23, 19, 23, 22 ], + "name" : "left" + } ] + } + }, + "operator" : "and", + "right" : { + "kind" : "BinaryExpr", + "location" : [ 23, 29, 23, 42 ], + "left" : { + "kind" : "Identifier", + "location" : [ 23, 29, 23, 29 ], + "name" : "j" + }, + "operator" : "<", + "right" : { + "kind" : "CallExpr", + "location" : [ 23, 33, 23, 42 ], + "function" : { + "kind" : "Identifier", + "location" : [ 23, 33, 23, 35 ], + "name" : "len" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 23, 37, 23, 41 ], + "name" : "right" + } ] + } + } + }, + "body" : [ { + "kind" : "IfStmt", + "location" : [ 24, 9, 31, 4 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 24, 12, 24, 29 ], + "left" : { + "kind" : "IndexExpr", + "location" : [ 24, 12, 24, 18 ], + "list" : { + "kind" : "Identifier", + "location" : [ 24, 12, 24, 15 ], + "name" : "left" + }, + "index" : { + "kind" : "Identifier", + "location" : [ 24, 17, 24, 17 ], + "name" : "i" + } + }, + "operator" : "<", + "right" : { + "kind" : "IndexExpr", + "location" : [ 24, 22, 24, 29 ], + "list" : { + "kind" : "Identifier", + "location" : [ 24, 22, 24, 26 ], + "name" : "right" + }, + "index" : { + "kind" : "Identifier", + "location" : [ 24, 28, 24, 28 ], + "name" : "j" + } + } + }, + "thenBody" : [ { + "kind" : "AssignStmt", + "location" : [ 25, 13, 25, 44 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 25, 13, 25, 18 ], + "name" : "merged" + } ], + "value" : { + "kind" : "CallExpr", + "location" : [ 25, 22, 25, 44 ], + "function" : { + "kind" : "Identifier", + "location" : [ 25, 22, 25, 27 ], + "name" : "append" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 25, 29, 25, 34 ], + "name" : "merged" + }, { + "kind" : "IndexExpr", + "location" : [ 25, 37, 25, 43 ], + "list" : { + "kind" : "Identifier", + "location" : [ 25, 37, 25, 40 ], + "name" : "left" + }, + "index" : { + "kind" : "Identifier", + "location" : [ 25, 42, 25, 42 ], + "name" : "i" + } + } ] + } + }, { + "kind" : "AssignStmt", + "location" : [ 26, 13, 26, 21 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 26, 13, 26, 13 ], + "name" : "i" + } ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 26, 17, 26, 21 ], + "left" : { + "kind" : "Identifier", + "location" : [ 26, 17, 26, 17 ], + "name" : "i" + }, + "operator" : "+", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 26, 21, 26, 21 ], + "value" : 1 + } + } + } ], + "elseBody" : [ { + "kind" : "AssignStmt", + "location" : [ 28, 13, 28, 45 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 28, 13, 28, 18 ], + "name" : "merged" + } ], + "value" : { + "kind" : "CallExpr", + "location" : [ 28, 22, 28, 45 ], + "function" : { + "kind" : "Identifier", + "location" : [ 28, 22, 28, 27 ], + "name" : "append" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 28, 29, 28, 34 ], + "name" : "merged" + }, { + "kind" : "IndexExpr", + "location" : [ 28, 37, 28, 44 ], + "list" : { + "kind" : "Identifier", + "location" : [ 28, 37, 28, 41 ], + "name" : "right" + }, + "index" : { + "kind" : "Identifier", + "location" : [ 28, 43, 28, 43 ], + "name" : "j" + } + } ] + } + }, { + "kind" : "AssignStmt", + "location" : [ 29, 13, 29, 21 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 29, 13, 29, 13 ], + "name" : "j" + } ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 29, 17, 29, 21 ], + "left" : { + "kind" : "Identifier", + "location" : [ 29, 17, 29, 17 ], + "name" : "j" + }, + "operator" : "+", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 29, 21, 29, 21 ], + "value" : 1 + } + } + } ] + } ] + }, { + "kind" : "IfStmt", + "location" : [ 31, 5, 33, 4 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 31, 8, 31, 20 ], + "left" : { + "kind" : "Identifier", + "location" : [ 31, 8, 31, 8 ], + "name" : "i" + }, + "operator" : "<", + "right" : { + "kind" : "CallExpr", + "location" : [ 31, 12, 31, 20 ], + "function" : { + "kind" : "Identifier", + "location" : [ 31, 12, 31, 14 ], + "name" : "len" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 31, 16, 31, 19 ], + "name" : "left" + } ] + } + }, + "thenBody" : [ { + "kind" : "AssignStmt", + "location" : [ 32, 9, 32, 51 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 32, 9, 32, 14 ], + "name" : "merged" + } ], + "value" : { + "kind" : "CallExpr", + "location" : [ 32, 18, 32, 51 ], + "function" : { + "kind" : "Identifier", + "location" : [ 32, 18, 32, 23 ], + "name" : "extend" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 32, 25, 32, 30 ], + "name" : "merged" + }, { + "kind" : "Identifier", + "location" : [ 32, 33, 32, 36 ], + "name" : "left" + }, { + "kind" : "Identifier", + "location" : [ 32, 39, 32, 39 ], + "name" : "i" + }, { + "kind" : "CallExpr", + "location" : [ 32, 42, 32, 50 ], + "function" : { + "kind" : "Identifier", + "location" : [ 32, 42, 32, 44 ], + "name" : "len" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 32, 46, 32, 49 ], + "name" : "left" + } ] + } ] + } + } ], + "elseBody" : [ ] + }, { + "kind" : "IfStmt", + "location" : [ 33, 5, 36, 4 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 33, 8, 33, 21 ], + "left" : { + "kind" : "Identifier", + "location" : [ 33, 8, 33, 8 ], + "name" : "j" + }, + "operator" : "<", + "right" : { + "kind" : "CallExpr", + "location" : [ 33, 12, 33, 21 ], + "function" : { + "kind" : "Identifier", + "location" : [ 33, 12, 33, 14 ], + "name" : "len" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 33, 16, 33, 20 ], + "name" : "right" + } ] + } + }, + "thenBody" : [ { + "kind" : "AssignStmt", + "location" : [ 34, 9, 34, 53 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 34, 9, 34, 14 ], + "name" : "merged" + } ], + "value" : { + "kind" : "CallExpr", + "location" : [ 34, 18, 34, 53 ], + "function" : { + "kind" : "Identifier", + "location" : [ 34, 18, 34, 23 ], + "name" : "extend" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 34, 25, 34, 30 ], + "name" : "merged" + }, { + "kind" : "Identifier", + "location" : [ 34, 33, 34, 37 ], + "name" : "right" + }, { + "kind" : "Identifier", + "location" : [ 34, 40, 34, 40 ], + "name" : "j" + }, { + "kind" : "CallExpr", + "location" : [ 34, 43, 34, 52 ], + "function" : { + "kind" : "Identifier", + "location" : [ 34, 43, 34, 45 ], + "name" : "len" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 34, 47, 34, 51 ], + "name" : "right" + } ] + } ] + } + } ], + "elseBody" : [ ] + }, { + "kind" : "ReturnStmt", + "location" : [ 36, 5, 36, 17 ], + "value" : { + "kind" : "Identifier", + "location" : [ 36, 12, 36, 17 ], + "name" : "merged" + } + } ] + }, { + "kind" : "FuncDef", + "location" : [ 39, 1, 53, 30 ], + "name" : { + "kind" : "Identifier", + "location" : [ 39, 5, 39, 13 ], + "name" : "mergesort" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 39, 15, 39, 22 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 39, 15, 39, 15 ], + "name" : "a" + }, + "type" : { + "kind" : "ListType", + "location" : [ 39, 18, 39, 22 ], + "elementType" : { + "kind" : "ClassType", + "location" : [ 39, 19, 39, 21 ], + "className" : "int" + } + } + } ], + "returnType" : { + "kind" : "ListType", + "location" : [ 39, 28, 39, 32 ], + "elementType" : { + "kind" : "ClassType", + "location" : [ 39, 29, 39, 31 ], + "className" : "int" + } + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 40, 5, 40, 16 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 40, 5, 40, 12 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 40, 5, 40, 7 ], + "name" : "mid" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 40, 10, 40, 12 ], + "className" : "int" + } + }, + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 40, 16, 40, 16 ], + "value" : 0 + } + }, { + "kind" : "VarDef", + "location" : [ 41, 5, 41, 22 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 41, 5, 41, 15 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 41, 5, 41, 8 ], + "name" : "left" + }, + "type" : { + "kind" : "ListType", + "location" : [ 41, 11, 41, 15 ], + "elementType" : { + "kind" : "ClassType", + "location" : [ 41, 12, 41, 14 ], + "className" : "int" + } + } + }, + "value" : { + "kind" : "NoneLiteral", + "location" : [ 41, 19, 41, 22 ] + } + }, { + "kind" : "VarDef", + "location" : [ 42, 5, 42, 23 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 42, 5, 42, 16 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 42, 5, 42, 9 ], + "name" : "right" + }, + "type" : { + "kind" : "ListType", + "location" : [ 42, 12, 42, 16 ], + "elementType" : { + "kind" : "ClassType", + "location" : [ 42, 13, 42, 15 ], + "className" : "int" + } + } + }, + "value" : { + "kind" : "NoneLiteral", + "location" : [ 42, 20, 42, 23 ] + } + } ], + "statements" : [ { + "kind" : "IfStmt", + "location" : [ 44, 5, 47, 4 ], + "condition" : { + "kind" : "BinaryExpr", + "location" : [ 44, 8, 44, 17 ], + "left" : { + "kind" : "CallExpr", + "location" : [ 44, 8, 44, 13 ], + "function" : { + "kind" : "Identifier", + "location" : [ 44, 8, 44, 10 ], + "name" : "len" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 44, 12, 44, 12 ], + "name" : "a" + } ] + }, + "operator" : "<", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 44, 17, 44, 17 ], + "value" : 2 + } + }, + "thenBody" : [ { + "kind" : "ReturnStmt", + "location" : [ 45, 9, 45, 16 ], + "value" : { + "kind" : "Identifier", + "location" : [ 45, 16, 45, 16 ], + "name" : "a" + } + } ], + "elseBody" : [ ] + }, { + "kind" : "AssignStmt", + "location" : [ 47, 5, 47, 21 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 47, 5, 47, 7 ], + "name" : "mid" + } ], + "value" : { + "kind" : "BinaryExpr", + "location" : [ 47, 11, 47, 21 ], + "left" : { + "kind" : "CallExpr", + "location" : [ 47, 11, 47, 16 ], + "function" : { + "kind" : "Identifier", + "location" : [ 47, 11, 47, 13 ], + "name" : "len" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 47, 15, 47, 15 ], + "name" : "a" + } ] + }, + "operator" : "//", + "right" : { + "kind" : "IntegerLiteral", + "location" : [ 47, 21, 47, 21 ], + "value" : 2 + } + } + }, { + "kind" : "AssignStmt", + "location" : [ 48, 5, 48, 32 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 48, 5, 48, 8 ], + "name" : "left" + } ], + "value" : { + "kind" : "CallExpr", + "location" : [ 48, 12, 48, 32 ], + "function" : { + "kind" : "Identifier", + "location" : [ 48, 12, 48, 17 ], + "name" : "extend" + }, + "args" : [ { + "kind" : "ListExpr", + "location" : [ 48, 19, 48, 20 ], + "elements" : [ ] + }, { + "kind" : "Identifier", + "location" : [ 48, 23, 48, 23 ], + "name" : "a" + }, { + "kind" : "IntegerLiteral", + "location" : [ 48, 26, 48, 26 ], + "value" : 0 + }, { + "kind" : "Identifier", + "location" : [ 48, 29, 48, 31 ], + "name" : "mid" + } ] + } + }, { + "kind" : "AssignStmt", + "location" : [ 49, 5, 49, 38 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 49, 5, 49, 9 ], + "name" : "right" + } ], + "value" : { + "kind" : "CallExpr", + "location" : [ 49, 13, 49, 38 ], + "function" : { + "kind" : "Identifier", + "location" : [ 49, 13, 49, 18 ], + "name" : "extend" + }, + "args" : [ { + "kind" : "ListExpr", + "location" : [ 49, 20, 49, 21 ], + "elements" : [ ] + }, { + "kind" : "Identifier", + "location" : [ 49, 24, 49, 24 ], + "name" : "a" + }, { + "kind" : "Identifier", + "location" : [ 49, 27, 49, 29 ], + "name" : "mid" + }, { + "kind" : "CallExpr", + "location" : [ 49, 32, 49, 37 ], + "function" : { + "kind" : "Identifier", + "location" : [ 49, 32, 49, 34 ], + "name" : "len" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 49, 36, 49, 36 ], + "name" : "a" + } ] + } ] + } + }, { + "kind" : "AssignStmt", + "location" : [ 51, 5, 51, 26 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 51, 5, 51, 8 ], + "name" : "left" + } ], + "value" : { + "kind" : "CallExpr", + "location" : [ 51, 12, 51, 26 ], + "function" : { + "kind" : "Identifier", + "location" : [ 51, 12, 51, 20 ], + "name" : "mergesort" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 51, 22, 51, 25 ], + "name" : "left" + } ] + } + }, { + "kind" : "AssignStmt", + "location" : [ 52, 5, 52, 28 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 52, 5, 52, 9 ], + "name" : "right" + } ], + "value" : { + "kind" : "CallExpr", + "location" : [ 52, 13, 52, 28 ], + "function" : { + "kind" : "Identifier", + "location" : [ 52, 13, 52, 21 ], + "name" : "mergesort" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 52, 23, 52, 27 ], + "name" : "right" + } ] + } + }, { + "kind" : "ReturnStmt", + "location" : [ 53, 5, 53, 29 ], + "value" : { + "kind" : "CallExpr", + "location" : [ 53, 12, 53, 29 ], + "function" : { + "kind" : "Identifier", + "location" : [ 53, 12, 53, 16 ], + "name" : "merge" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 53, 18, 53, 21 ], + "name" : "left" + }, { + "kind" : "Identifier", + "location" : [ 53, 24, 53, 28 ], + "name" : "right" + } ] + } + } ] + }, { + "kind" : "VarDef", + "location" : [ 56, 1, 56, 21 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 56, 1, 56, 14 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 56, 1, 56, 7 ], + "name" : "initial" + }, + "type" : { + "kind" : "ListType", + "location" : [ 56, 10, 56, 14 ], + "elementType" : { + "kind" : "ClassType", + "location" : [ 56, 11, 56, 13 ], + "className" : "int" + } + } + }, + "value" : { + "kind" : "NoneLiteral", + "location" : [ 56, 18, 56, 21 ] + } + }, { + "kind" : "VarDef", + "location" : [ 57, 1, 57, 21 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 57, 1, 57, 14 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 57, 1, 57, 7 ], + "name" : "ordered" + }, + "type" : { + "kind" : "ListType", + "location" : [ 57, 10, 57, 14 ], + "elementType" : { + "kind" : "ClassType", + "location" : [ 57, 11, 57, 13 ], + "className" : "int" + } + } + }, + "value" : { + "kind" : "NoneLiteral", + "location" : [ 57, 18, 57, 21 ] + } + } ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 59, 1, 59, 26 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 59, 1, 59, 7 ], + "name" : "initial" + } ], + "value" : { + "kind" : "ListExpr", + "location" : [ 59, 11, 59, 26 ], + "elements" : [ { + "kind" : "IntegerLiteral", + "location" : [ 59, 12, 59, 12 ], + "value" : 2 + }, { + "kind" : "IntegerLiteral", + "location" : [ 59, 15, 59, 15 ], + "value" : 7 + }, { + "kind" : "IntegerLiteral", + "location" : [ 59, 18, 59, 18 ], + "value" : 3 + }, { + "kind" : "IntegerLiteral", + "location" : [ 59, 21, 59, 22 ], + "value" : 11 + }, { + "kind" : "IntegerLiteral", + "location" : [ 59, 25, 59, 25 ], + "value" : 5 + } ] + } + }, { + "kind" : "AssignStmt", + "location" : [ 60, 1, 60, 28 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 60, 1, 60, 7 ], + "name" : "ordered" + } ], + "value" : { + "kind" : "CallExpr", + "location" : [ 60, 11, 60, 28 ], + "function" : { + "kind" : "Identifier", + "location" : [ 60, 11, 60, 19 ], + "name" : "mergesort" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 60, 21, 60, 27 ], + "name" : "initial" + } ] + } + }, { + "kind" : "ExprStmt", + "location" : [ 62, 1, 62, 14 ], + "expr" : { + "kind" : "CallExpr", + "location" : [ 62, 1, 62, 14 ], + "function" : { + "kind" : "Identifier", + "location" : [ 62, 1, 62, 5 ], + "name" : "print" + }, + "args" : [ { + "kind" : "Identifier", + "location" : [ 62, 7, 62, 13 ], + "name" : "ordered" + } ] + } + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/extra/nesting.py b/pa1-tests/extra/nesting.py new file mode 100644 index 0000000..f82976a --- /dev/null +++ b/pa1-tests/extra/nesting.py @@ -0,0 +1,45 @@ +class s(object): + t: object = None + +class r(object): + sobj: s = None + +class q(object): + robj: r = None + +class p(q): + def f(self: "p") -> object: + return self.robj.sobj.t + +def a() -> int: + def b() -> int: + def c() -> int: + def d() -> int: + def e() -> int: + return 1 + return e() + return d() + return c() + return b() + +def w(): + def x(): + def y(): + def z(): + 4 + 3 + 2 + 1 + +xs: [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[int]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]] = None +xs = [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[1]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]] + +if 1: + if 2: + if 3: + if 4: + True + elif -3: + False +else: + False diff --git a/pa1-tests/extra/nesting.py.ast b/pa1-tests/extra/nesting.py.ast new file mode 100644 index 0000000..d3157cb --- /dev/null +++ b/pa1-tests/extra/nesting.py.ast @@ -0,0 +1,799 @@ +{ + "kind" : "Program", + "location" : [ 1, 1, 46, 1 ], + "declarations" : [ { + "kind" : "ClassDef", + "location" : [ 1, 1, 2, 21 ], + "name" : { + "kind" : "Identifier", + "location" : [ 1, 7, 1, 7 ], + "name" : "s" + }, + "superClass" : { + "kind" : "Identifier", + "location" : [ 1, 9, 1, 14 ], + "name" : "object" + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 2, 5, 2, 20 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 2, 5, 2, 13 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 2, 5, 2, 5 ], + "name" : "t" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 2, 8, 2, 13 ], + "className" : "object" + } + }, + "value" : { + "kind" : "NoneLiteral", + "location" : [ 2, 17, 2, 20 ] + } + } ] + }, { + "kind" : "ClassDef", + "location" : [ 4, 1, 5, 19 ], + "name" : { + "kind" : "Identifier", + "location" : [ 4, 7, 4, 7 ], + "name" : "r" + }, + "superClass" : { + "kind" : "Identifier", + "location" : [ 4, 9, 4, 14 ], + "name" : "object" + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 5, 5, 5, 18 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 5, 5, 5, 11 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 5, 5, 5, 8 ], + "name" : "sobj" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 5, 11, 5, 11 ], + "className" : "s" + } + }, + "value" : { + "kind" : "NoneLiteral", + "location" : [ 5, 15, 5, 18 ] + } + } ] + }, { + "kind" : "ClassDef", + "location" : [ 7, 1, 8, 19 ], + "name" : { + "kind" : "Identifier", + "location" : [ 7, 7, 7, 7 ], + "name" : "q" + }, + "superClass" : { + "kind" : "Identifier", + "location" : [ 7, 9, 7, 14 ], + "name" : "object" + }, + "declarations" : [ { + "kind" : "VarDef", + "location" : [ 8, 5, 8, 18 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 8, 5, 8, 11 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 8, 5, 8, 8 ], + "name" : "robj" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 8, 11, 8, 11 ], + "className" : "r" + } + }, + "value" : { + "kind" : "NoneLiteral", + "location" : [ 8, 15, 8, 18 ] + } + } ] + }, { + "kind" : "ClassDef", + "location" : [ 10, 1, 14, 0 ], + "name" : { + "kind" : "Identifier", + "location" : [ 10, 7, 10, 7 ], + "name" : "p" + }, + "superClass" : { + "kind" : "Identifier", + "location" : [ 10, 9, 10, 9 ], + "name" : "q" + }, + "declarations" : [ { + "kind" : "FuncDef", + "location" : [ 11, 5, 12, 32 ], + "name" : { + "kind" : "Identifier", + "location" : [ 11, 9, 11, 9 ], + "name" : "f" + }, + "params" : [ { + "kind" : "TypedVar", + "location" : [ 11, 11, 11, 19 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 11, 11, 11, 14 ], + "name" : "self" + }, + "type" : { + "kind" : "ClassType", + "location" : [ 11, 17, 11, 19 ], + "className" : "p" + } + } ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 11, 25, 11, 30 ], + "className" : "object" + }, + "declarations" : [ ], + "statements" : [ { + "kind" : "ReturnStmt", + "location" : [ 12, 9, 12, 31 ], + "value" : { + "kind" : "MemberExpr", + "location" : [ 12, 16, 12, 31 ], + "object" : { + "kind" : "MemberExpr", + "location" : [ 12, 16, 12, 29 ], + "object" : { + "kind" : "MemberExpr", + "location" : [ 12, 16, 12, 24 ], + "object" : { + "kind" : "Identifier", + "location" : [ 12, 16, 12, 19 ], + "name" : "self" + }, + "member" : { + "kind" : "Identifier", + "location" : [ 12, 21, 12, 24 ], + "name" : "robj" + } + }, + "member" : { + "kind" : "Identifier", + "location" : [ 12, 26, 12, 29 ], + "name" : "sobj" + } + }, + "member" : { + "kind" : "Identifier", + "location" : [ 12, 31, 12, 31 ], + "name" : "t" + } + } + } ] + } ] + }, { + "kind" : "FuncDef", + "location" : [ 14, 1, 23, 15 ], + "name" : { + "kind" : "Identifier", + "location" : [ 14, 5, 14, 5 ], + "name" : "a" + }, + "params" : [ ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 14, 12, 14, 14 ], + "className" : "int" + }, + "declarations" : [ { + "kind" : "FuncDef", + "location" : [ 15, 5, 22, 19 ], + "name" : { + "kind" : "Identifier", + "location" : [ 15, 9, 15, 9 ], + "name" : "b" + }, + "params" : [ ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 15, 16, 15, 18 ], + "className" : "int" + }, + "declarations" : [ { + "kind" : "FuncDef", + "location" : [ 16, 9, 21, 23 ], + "name" : { + "kind" : "Identifier", + "location" : [ 16, 13, 16, 13 ], + "name" : "c" + }, + "params" : [ ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 16, 20, 16, 22 ], + "className" : "int" + }, + "declarations" : [ { + "kind" : "FuncDef", + "location" : [ 17, 13, 20, 27 ], + "name" : { + "kind" : "Identifier", + "location" : [ 17, 17, 17, 17 ], + "name" : "d" + }, + "params" : [ ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 17, 24, 17, 26 ], + "className" : "int" + }, + "declarations" : [ { + "kind" : "FuncDef", + "location" : [ 18, 17, 19, 29 ], + "name" : { + "kind" : "Identifier", + "location" : [ 18, 21, 18, 21 ], + "name" : "e" + }, + "params" : [ ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 18, 28, 18, 30 ], + "className" : "int" + }, + "declarations" : [ ], + "statements" : [ { + "kind" : "ReturnStmt", + "location" : [ 19, 21, 19, 28 ], + "value" : { + "kind" : "IntegerLiteral", + "location" : [ 19, 28, 19, 28 ], + "value" : 1 + } + } ] + } ], + "statements" : [ { + "kind" : "ReturnStmt", + "location" : [ 20, 17, 20, 26 ], + "value" : { + "kind" : "CallExpr", + "location" : [ 20, 24, 20, 26 ], + "function" : { + "kind" : "Identifier", + "location" : [ 20, 24, 20, 24 ], + "name" : "e" + }, + "args" : [ ] + } + } ] + } ], + "statements" : [ { + "kind" : "ReturnStmt", + "location" : [ 21, 13, 21, 22 ], + "value" : { + "kind" : "CallExpr", + "location" : [ 21, 20, 21, 22 ], + "function" : { + "kind" : "Identifier", + "location" : [ 21, 20, 21, 20 ], + "name" : "d" + }, + "args" : [ ] + } + } ] + } ], + "statements" : [ { + "kind" : "ReturnStmt", + "location" : [ 22, 9, 22, 18 ], + "value" : { + "kind" : "CallExpr", + "location" : [ 22, 16, 22, 18 ], + "function" : { + "kind" : "Identifier", + "location" : [ 22, 16, 22, 16 ], + "name" : "c" + }, + "args" : [ ] + } + } ] + } ], + "statements" : [ { + "kind" : "ReturnStmt", + "location" : [ 23, 5, 23, 14 ], + "value" : { + "kind" : "CallExpr", + "location" : [ 23, 12, 23, 14 ], + "function" : { + "kind" : "Identifier", + "location" : [ 23, 12, 23, 12 ], + "name" : "b" + }, + "args" : [ ] + } + } ] + }, { + "kind" : "FuncDef", + "location" : [ 25, 1, 32, 3 ], + "name" : { + "kind" : "Identifier", + "location" : [ 25, 5, 25, 5 ], + "name" : "w" + }, + "params" : [ ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 25, 8, 25, 8 ], + "className" : "" + }, + "declarations" : [ { + "kind" : "FuncDef", + "location" : [ 26, 2, 31, 5 ], + "name" : { + "kind" : "Identifier", + "location" : [ 26, 6, 26, 6 ], + "name" : "x" + }, + "params" : [ ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 26, 9, 26, 9 ], + "className" : "" + }, + "declarations" : [ { + "kind" : "FuncDef", + "location" : [ 27, 4, 30, 8 ], + "name" : { + "kind" : "Identifier", + "location" : [ 27, 8, 27, 8 ], + "name" : "y" + }, + "params" : [ ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 27, 11, 27, 11 ], + "className" : "" + }, + "declarations" : [ { + "kind" : "FuncDef", + "location" : [ 28, 7, 29, 12 ], + "name" : { + "kind" : "Identifier", + "location" : [ 28, 11, 28, 11 ], + "name" : "z" + }, + "params" : [ ], + "returnType" : { + "kind" : "ClassType", + "location" : [ 28, 14, 28, 14 ], + "className" : "" + }, + "declarations" : [ ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 29, 11, 29, 11 ], + "expr" : { + "kind" : "IntegerLiteral", + "location" : [ 29, 11, 29, 11 ], + "value" : 4 + } + } ] + } ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 30, 7, 30, 7 ], + "expr" : { + "kind" : "IntegerLiteral", + "location" : [ 30, 7, 30, 7 ], + "value" : 3 + } + } ] + } ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 31, 4, 31, 4 ], + "expr" : { + "kind" : "IntegerLiteral", + "location" : [ 31, 4, 31, 4 ], + "value" : 2 + } + } ] + } ], + "statements" : [ { + "kind" : "ExprStmt", + "location" : [ 32, 2, 32, 2 ], + "expr" : { + "kind" : "IntegerLiteral", + "location" : [ 32, 2, 32, 2 ], + "value" : 1 + } + } ] + }, { + "kind" : "VarDef", + "location" : [ 34, 1, 34, 78 ], + "var" : { + "kind" : "TypedVar", + "location" : [ 34, 1, 34, 71 ], + "identifier" : { + "kind" : "Identifier", + "location" : [ 34, 1, 34, 2 ], + "name" : "xs" + }, + "type" : { + "kind" : "ListType", + "location" : [ 34, 5, 34, 71 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 6, 34, 70 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 7, 34, 69 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 8, 34, 68 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 9, 34, 67 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 10, 34, 66 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 11, 34, 65 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 12, 34, 64 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 13, 34, 63 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 14, 34, 62 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 15, 34, 61 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 16, 34, 60 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 17, 34, 59 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 18, 34, 58 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 19, 34, 57 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 20, 34, 56 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 21, 34, 55 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 22, 34, 54 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 23, 34, 53 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 24, 34, 52 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 25, 34, 51 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 26, 34, 50 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 27, 34, 49 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 28, 34, 48 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 29, 34, 47 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 30, 34, 46 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 31, 34, 45 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 32, 34, 44 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 33, 34, 43 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 34, 34, 42 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 35, 34, 41 ], + "elementType" : { + "kind" : "ListType", + "location" : [ 34, 36, 34, 40 ], + "elementType" : { + "kind" : "ClassType", + "location" : [ 34, 37, 34, 39 ], + "className" : "int" + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + }, + "value" : { + "kind" : "NoneLiteral", + "location" : [ 34, 75, 34, 78 ] + } + } ], + "statements" : [ { + "kind" : "AssignStmt", + "location" : [ 35, 1, 35, 70 ], + "targets" : [ { + "kind" : "Identifier", + "location" : [ 35, 1, 35, 2 ], + "name" : "xs" + } ], + "value" : { + "kind" : "ListExpr", + "location" : [ 35, 6, 35, 70 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 7, 35, 69 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 8, 35, 68 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 9, 35, 67 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 10, 35, 66 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 11, 35, 65 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 12, 35, 64 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 13, 35, 63 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 14, 35, 62 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 15, 35, 61 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 16, 35, 60 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 17, 35, 59 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 18, 35, 58 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 19, 35, 57 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 20, 35, 56 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 21, 35, 55 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 22, 35, 54 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 23, 35, 53 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 24, 35, 52 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 25, 35, 51 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 26, 35, 50 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 27, 35, 49 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 28, 35, 48 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 29, 35, 47 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 30, 35, 46 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 31, 35, 45 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 32, 35, 44 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 33, 35, 43 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 34, 35, 42 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 35, 35, 41 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 36, 35, 40 ], + "elements" : [ { + "kind" : "ListExpr", + "location" : [ 35, 37, 35, 39 ], + "elements" : [ { + "kind" : "IntegerLiteral", + "location" : [ 35, 38, 35, 38 ], + "value" : 1 + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } ] + } + }, { + "kind" : "IfStmt", + "location" : [ 37, 1, 46, 1 ], + "condition" : { + "kind" : "IntegerLiteral", + "location" : [ 37, 4, 37, 4 ], + "value" : 1 + }, + "thenBody" : [ { + "kind" : "IfStmt", + "location" : [ 38, 5, 44, 0 ], + "condition" : { + "kind" : "IntegerLiteral", + "location" : [ 38, 8, 38, 8 ], + "value" : 2 + }, + "thenBody" : [ { + "kind" : "IfStmt", + "location" : [ 39, 9, 44, 0 ], + "condition" : { + "kind" : "IntegerLiteral", + "location" : [ 39, 12, 39, 12 ], + "value" : 3 + }, + "thenBody" : [ { + "kind" : "IfStmt", + "location" : [ 40, 13, 42, 8 ], + "condition" : { + "kind" : "IntegerLiteral", + "location" : [ 40, 16, 40, 16 ], + "value" : 4 + }, + "thenBody" : [ { + "kind" : "ExprStmt", + "location" : [ 41, 17, 41, 20 ], + "expr" : { + "kind" : "BooleanLiteral", + "location" : [ 41, 17, 41, 20 ], + "value" : true + } + } ], + "elseBody" : [ ] + } ], + "elseBody" : [ { + "kind" : "IfStmt", + "location" : [ 42, 9, 44, 0 ], + "condition" : { + "kind" : "UnaryExpr", + "location" : [ 42, 14, 42, 15 ], + "operator" : "-", + "operand" : { + "kind" : "IntegerLiteral", + "location" : [ 42, 15, 42, 15 ], + "value" : 3 + } + }, + "thenBody" : [ { + "kind" : "ExprStmt", + "location" : [ 43, 13, 43, 17 ], + "expr" : { + "kind" : "BooleanLiteral", + "location" : [ 43, 13, 43, 17 ], + "value" : false + } + } ], + "elseBody" : [ ] + } ] + } ], + "elseBody" : [ ] + } ], + "elseBody" : [ { + "kind" : "ExprStmt", + "location" : [ 45, 5, 45, 9 ], + "expr" : { + "kind" : "BooleanLiteral", + "location" : [ 45, 5, 45, 9 ], + "value" : false + } + } ] + } ], + "errors" : { + "errors" : [ ], + "kind" : "Errors", + "location" : [ 0, 0, 0, 0 ] + } +} \ No newline at end of file diff --git a/pa1-tests/run-tests.sh b/pa1-tests/run-tests.sh new file mode 100755 index 0000000..84a9b70 --- /dev/null +++ b/pa1-tests/run-tests.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +set -o errexit +set -o nounset +set -o pipefail + +JAVA="java -cp pa1-tests/chocopy-ref.jar:target/assignment.jar chocopy.ChocoPy" + +echo "# CORE TESTS" +${JAVA} --pass=s --test --dir pa1-tests/core + +echo +echo "# EXTRA TESTS" +${JAVA} --pass=s --test --dir pa1-tests/extra + +echo +echo "# STUDENT TESTS" +function regen_ast_and_test { + ${JAVA} --pass=r "${1}" --out "${1}.ast" 2>/dev/null 1>&2 + ${JAVA} --pass=s --test "${1}" +} +regen_ast_and_test src/test/data/pa1/student_contributed/good.py +regen_ast_and_test src/test/data/pa1/student_contributed/bad.py From 5bcf48ffe4b226ab3c706f4cf9534b921270ece9 Mon Sep 17 00:00:00 2001 From: Sanjar Ahmadov Date: Tue, 23 Mar 2021 19:47:45 -0400 Subject: [PATCH 45/52] Cleanup --- grade.md | 41 ------------------- .../java/chocopy/pa2/StudentAnalysis.java | 2 +- 2 files changed, 1 insertion(+), 42 deletions(-) delete mode 100644 grade.md diff --git a/grade.md b/grade.md deleted file mode 100644 index 465d3ff..0000000 --- a/grade.md +++ /dev/null @@ -1,41 +0,0 @@ -# Grading - -Core Tests: 66/66 - -Extra: -- graph.py 5/5 -- mergesort.py 5/5 -- nesting.py 4/4 - -========================= - -Standard tests: 80/80 - -Work Log: 10/10 - -Additional Tests: 10/10 - -Code style: 10/10 - -Improvements: +3 - -Overall: 113/110 - - -# Parsing - -Your parser passed all tests, including the hidden ones, congratulations! Nice catch on the multiline string, which is a missing piece in the ChocoPy specification. Looking forward to your next project. - -# Testing - -Good work in the challenging cases in `good.py` like nested functions and class methods, and in `bad.py` like statements in class definition. - -It looks like you haven't added your own tests besides those in `good.py` and `bad.py`. We recommend pinning down more of your functionality with short, targeted tests in the future. - -# Process - -We generally recommend using pull requests over directly pushing into the master branch, especially when you want to work in parallel. As the project becomes more complex, you may appreciate the benefits of a more structured SDLC process. - -# Code - -Your code is clean and readable, with consistent naming convention and proper amount of comments. Well done. diff --git a/src/main/java/chocopy/pa2/StudentAnalysis.java b/src/main/java/chocopy/pa2/StudentAnalysis.java index d4c553d..cb90b58 100644 --- a/src/main/java/chocopy/pa2/StudentAnalysis.java +++ b/src/main/java/chocopy/pa2/StudentAnalysis.java @@ -90,7 +90,7 @@ public class StudentAnalysis { TypeChecker typeChecker = new TypeChecker(globalSym, program.errors); program.dispatch(typeChecker); } - System.out.println(program); + //System.out.println(program); return program; } } From 9e29fdf7702c193e3fd7059a098a43863a083aa4 Mon Sep 17 00:00:00 2001 From: Sanjar Ahmadov Date: Tue, 23 Mar 2021 20:37:05 -0400 Subject: [PATCH 46/52] Added test scripts --- full_test.sh | 3 ++- test.sh | 12 ------------ test_py_file.sh | 16 ++++++++++++++++ test_sample.sh | 5 +++++ test_student_contributed.sh | 4 ++++ 5 files changed, 27 insertions(+), 13 deletions(-) delete mode 100755 test.sh create mode 100755 test_py_file.sh create mode 100755 test_sample.sh create mode 100755 test_student_contributed.sh diff --git a/full_test.sh b/full_test.sh index 19504c9..bed0028 100755 --- a/full_test.sh +++ b/full_test.sh @@ -1,3 +1,4 @@ #!/bin/bash ./build.sh -./test.sh +./test_sample.sh +./test_student_contributed.sh diff --git a/test.sh b/test.sh deleted file mode 100755 index 7060f44..0000000 --- a/test.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -FILENAME=$1 - -if [ -z "$1" ] ; then - echo "Running all test cases. Usage for individual test cases: test.sh FILENAME (inside src/test/data/pa1/sample/ folder)" - java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy --pass=s --test --dir src/test/data/pa1/sample/ - exit 1 -fi - -java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy \ - --pass=s --test src/test/data/pa1/sample/${FILENAME} diff --git a/test_py_file.sh b/test_py_file.sh new file mode 100755 index 0000000..4e47b37 --- /dev/null +++ b/test_py_file.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +FILENAME=$1 + +if [ -z "$1" ] ; then + echo "Usage for individual test cases: test.sh FILEPATH, where FILEPATH is the location of the python file" + exit 1 +fi + +echo "Testing file ${FILENAME}" + +java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy --pass=sr \ + ${FILENAME} --out=${FILENAME}.ast.typed + +java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy \ + --pass=ss --test ${FILENAME} diff --git a/test_sample.sh b/test_sample.sh new file mode 100755 index 0000000..45a1a40 --- /dev/null +++ b/test_sample.sh @@ -0,0 +1,5 @@ +#!/bin/bash + + +echo "Running all test cases inside src/test/data/pa2/sample/ folder)" +java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy --pass=ss --test --dir src/test/data/pa2/sample/ diff --git a/test_student_contributed.sh b/test_student_contributed.sh new file mode 100755 index 0000000..34a9693 --- /dev/null +++ b/test_student_contributed.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +echo "Running all test cases inside src/test/data/pa2/sample/ folder)" +java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy --pass=ss --test --dir src/test/data/pa2/student_contributed/ From 64e82a191eeb791f9a25d3d211969b7a73dd6f4b Mon Sep 17 00:00:00 2001 From: Sanjar Ahmadov Date: Tue, 23 Mar 2021 21:56:53 -0400 Subject: [PATCH 47/52] Added all the test cases from PA1 for good.py for validation purposes. --- src/test/data/pa2/student_contributed/good.py | 85 ++++++++++++++++++- 1 file changed, 83 insertions(+), 2 deletions(-) diff --git a/src/test/data/pa2/student_contributed/good.py b/src/test/data/pa2/student_contributed/good.py index a036d62..c16c124 100644 --- a/src/test/data/pa2/student_contributed/good.py +++ b/src/test/data/pa2/student_contributed/good.py @@ -1,2 +1,83 @@ -x:int = 1 -x * 1 +# Below this point we have all the same test cases from PA1 for validation purposes. +class Foo(object): + x:int = 0 + + def __init__(self:"Foo", x:int): + self.x = x + + def bar(y:int): + print("Hello World!",self.x+y) + y = 10 + +def get_stones(name:str)->str: + def map_name(nm:str)->str: + return stones[color.index(nm)] + color=["Red","Blue"] + stones=["Mind","Soul"] + return map_name(name) + +def funa(): + def funb(): + print("Hello") + funb() + +def fund(): + def fune(): + print("Hello") + c = 4 + 5 + +def funf(): + def fung(): + print("Hello") + c = 6 + c = 4 + 5 + + +if True: + if True: + if True: + print("Hello") +print("World") + +if True: + if True: + if True: + print("Hello") + print("World") + +if True: + if True: + if True: + print("Hello") + print("World") + +if True: + if True: + if True: + print("Hello") + else: + print("World") + +if True: + if True: + if True: + print("Hello") +else: + print("World") + + + +f = Foo(1) +print(f.x) +f.bar(4) + +a=[[[1],[2]],[[3],[4]]] +print(a[0][0][1]*a[1][1][0]) + +multiline_string="Hi World,\ +Here I am" + +expr_precedence = -a + b * (c + d) + +stone="Blue" +print(get_stones(stone)) From e47bc2df75e9b2f46a34bf587c367c33cfe374c6 Mon Sep 17 00:00:00 2001 From: Sanjar Ahmadov Date: Tue, 23 Mar 2021 22:09:18 -0400 Subject: [PATCH 48/52] Added bad_* tests which are failing to pass --- src/test/data/pa2/student_contributed/bad_semantic.py | 10 ++++++++++ src/test/data/pa2/student_contributed/bad_types.py | 3 +++ 2 files changed, 13 insertions(+) diff --git a/src/test/data/pa2/student_contributed/bad_semantic.py b/src/test/data/pa2/student_contributed/bad_semantic.py index a7a1b23..490a475 100644 --- a/src/test/data/pa2/student_contributed/bad_semantic.py +++ b/src/test/data/pa2/student_contributed/bad_semantic.py @@ -2,3 +2,13 @@ x:int = 1 x:int = 2 x + +def fun_1() -> bool: + if True: + if True: + return True + # All path should return, not just one + + +fun_1() + diff --git a/src/test/data/pa2/student_contributed/bad_types.py b/src/test/data/pa2/student_contributed/bad_types.py index 7d76df7..91ba352 100644 --- a/src/test/data/pa2/student_contributed/bad_types.py +++ b/src/test/data/pa2/student_contributed/bad_types.py @@ -1,2 +1,5 @@ x:int = True x + [1] + +y:bool = False +x = y = z = "Error" From 31201bcf330f7edeee4e36ced260799b312b9552 Mon Sep 17 00:00:00 2001 From: Apoorva Ranade Date: Thu, 1 Apr 2021 16:50:13 +0530 Subject: [PATCH 49/52] Fixed nonlocal declaration errors --- .../java/chocopy/pa2/DeclarationAnalyzer.java | 87 +++++++++++-------- src/main/java/chocopy/pa2/TypeChecker.java | 27 +++--- 2 files changed, 69 insertions(+), 45 deletions(-) diff --git a/src/main/java/chocopy/pa2/DeclarationAnalyzer.java b/src/main/java/chocopy/pa2/DeclarationAnalyzer.java index a7f4e39..1c995b9 100644 --- a/src/main/java/chocopy/pa2/DeclarationAnalyzer.java +++ b/src/main/java/chocopy/pa2/DeclarationAnalyzer.java @@ -28,6 +28,7 @@ public class DeclarationAnalyzer extends AbstractNodeAnalyzer firstPass = true; errors = errors0; globals = sym; + // Symbol table entry for object class ClassVType cvt = new ClassVType("object"), obj = cvt; FuncType init = new FuncType(Type.OBJECT_TYPE); init.parameters.add(Type.OBJECT_TYPE); @@ -35,6 +36,7 @@ public class DeclarationAnalyzer extends AbstractNodeAnalyzer cvt_scope.put("init",init); cvt.scope=cvt_scope; sym.put("object", cvt); + //Symbol table entry for int class cvt = new ClassVType("int"); cvt.super_class = obj; init = new FuncType(Type.INT_TYPE); @@ -43,6 +45,7 @@ public class DeclarationAnalyzer extends AbstractNodeAnalyzer cvt_scope.put("init",init); cvt.scope=cvt_scope; sym.put("int", cvt); + //Symbol table entry for str class cvt = new ClassVType("str"); cvt.super_class = obj; init = new FuncType(Type.STR_TYPE); @@ -51,6 +54,7 @@ public class DeclarationAnalyzer extends AbstractNodeAnalyzer cvt_scope.put("init",init); cvt.scope=cvt_scope; sym.put("str", cvt); + //Symbol table entry for bool class cvt = new ClassVType("bool"); cvt.super_class = obj; init = new FuncType(Type.BOOL_TYPE); @@ -59,24 +63,25 @@ public class DeclarationAnalyzer extends AbstractNodeAnalyzer cvt_scope.put("init",init); cvt.scope=cvt_scope; sym.put("bool", cvt); - + //Symbol table entry for None return type cvt = new ClassVType(""); cvt.super_class = obj; sym.put("", cvt); - + //Symbol table entry for inbuilt print function ArrayList param = new ArrayList(); param.add(Type.OBJECT_TYPE); sym.put("print", new FuncType(param, Type.NONE_TYPE)); - + //Symbol table entry for inbuilt len function param = new ArrayList(); param.add(Type.OBJECT_TYPE); sym.put("len", new FuncType(param, Type.INT_TYPE)); - + //Symbol table entry for inbuilt input function sym.put("input", new FuncType(new ArrayList<>(), Type.STR_TYPE)); typeChecker = new TypeChecker(globals, errors); } - public DeclarationAnalyzer(Errors errors0, TypeChecker typeChecker, SymbolTable globals){ + public DeclarationAnalyzer(Errors errors0, TypeChecker typeChecker, SymbolTable globals) + { firstPass = false; this.typeChecker = typeChecker; errors = errors0; @@ -86,27 +91,18 @@ public class DeclarationAnalyzer extends AbstractNodeAnalyzer { return globals; } - private void putSymChecked(Node node, String name, Type ty){ - if (ty == null) - { - return; - } - - if (globals.get(name)!= null && !(ty instanceof ClassVType) && globals.get(name) instanceof ClassVType) //class names are only in global scope - { - errors.semError(node, "Cannot shadow class name: %s", name); - } - else if (sym.declares(name)) - { - errors.semError( + private void putSymChecked(Node node, String name, Type ty) + { + if (ty == null) + return; + + if (globals.get(name)!= null && !(ty instanceof ClassVType) && globals.get(name) instanceof ClassVType) //class names are only in global scope + errors.semError(node, "Cannot shadow class name: %s", name); + else if (sym.declares(name)) + errors.semError( node, "Duplicate declaration of identifier in same scope: %s", name); - - } - - else - { - sym.put(name, ty); - } + else + sym.put(name, ty); } @Override public Type analyze(Program program) @@ -116,8 +112,6 @@ public class DeclarationAnalyzer extends AbstractNodeAnalyzer Identifier id = decl.getIdentifier(); String name = id.name; Type type = decl.dispatch(this); - - } // Check for return statements at top for (Stmt stmt : program.statements) @@ -130,11 +124,13 @@ public class DeclarationAnalyzer extends AbstractNodeAnalyzer } @Override - public Type analyze(FuncDef node) { + public Type analyze(FuncDef node) + { Type fTy = globals.get(node.name.name); FuncType current_func=null; - if(!(fTy instanceof FuncType)){ + if(!(fTy instanceof FuncType)) + { if(fTy == null) { current_func = new FuncType(new ArrayList(), @@ -187,7 +183,7 @@ public class DeclarationAnalyzer extends AbstractNodeAnalyzer else otherDefs.add(decl); for (Declaration decl : varDefs) - if(decl instanceof VarDef) + if(decl instanceof VarDef||decl instanceof NonLocalDecl) decl.dispatch(this); else decl.dispatch(typeChecker); @@ -200,7 +196,8 @@ public class DeclarationAnalyzer extends AbstractNodeAnalyzer return current_func; } - public boolean compare_functions(FuncType fun1, FuncType fun2) { + public boolean compare_functions(FuncType fun1, FuncType fun2) + { if (fun1.returnType.equals(fun2.returnType)==false) return false; if (fun1.parameters.size() != fun2.parameters.size()) @@ -305,7 +302,27 @@ public class DeclarationAnalyzer extends AbstractNodeAnalyzer putSymChecked(node.name, node.name.name, cvt); return cvt; } - + boolean isVariableType(Type ty) + { + return ty.isSpecialType() || ty.equals(Type.OBJECT_TYPE); + } + @Override + public Type analyze(NonLocalDecl node) + { + SymbolTable curr_sym=sym; + while(curr_sym.getParent()!=null) + { + if (curr_sym.declares(node.variable.name) && isVariableType(sym.get(node.variable.name))) + { + sym.put(node.variable.name, sym.get(node.variable.name)); + return sym.get(node.variable.name); + } + curr_sym=curr_sym.getParent(); + } + errors.semError( + node.variable, "Not a nonlocal variable: %s", node.variable.name); + return null; + } @Override public Type analyze(VarDef node) { @@ -332,10 +349,12 @@ public class DeclarationAnalyzer extends AbstractNodeAnalyzer return var_type; } - public void setScope(SymbolTable currentScope) { + public void setScope(SymbolTable currentScope) + { sym = currentScope; } - public void setCurrClass(ClassVType current_class){ + public void setCurrClass(ClassVType current_class) + { this.current_class = current_class; } } diff --git a/src/main/java/chocopy/pa2/TypeChecker.java b/src/main/java/chocopy/pa2/TypeChecker.java index 7b4fe2e..c131a60 100644 --- a/src/main/java/chocopy/pa2/TypeChecker.java +++ b/src/main/java/chocopy/pa2/TypeChecker.java @@ -16,6 +16,8 @@ import static chocopy.common.analysis.types.Type.OBJECT_TYPE; import java.util.ArrayList; +import javax.swing.text.StyledEditorKit.BoldAction; + import com.fasterxml.jackson.annotation.JacksonInject.Value; /** @@ -31,7 +33,7 @@ public class TypeChecker extends AbstractNodeAnalyzer { private boolean returned = false, member = false; /** Collector for errors. */ private final Errors errors; - + private Boolean assign = false; /** * Creates a type checker using GLOBALSYMBOLS for the initial global symbol table and ERRORS0 to * receive semantic errors. @@ -87,6 +89,7 @@ public class TypeChecker extends AbstractNodeAnalyzer { Type tr = node.value.dispatch(this); Type tl; boolean error = false; + assign=true; for (Expr ex : node.targets) { tl = ex.dispatch(this); @@ -114,6 +117,7 @@ public class TypeChecker extends AbstractNodeAnalyzer { error = true; } } + assign=false; return null; } @@ -317,7 +321,7 @@ public class TypeChecker extends AbstractNodeAnalyzer { public Type analyze(NoneLiteral node) { return node.setInferredType(Type.NONE_TYPE); } - + /* @Override public Type analyze(NonLocalDecl node) { SymbolTable parent = currentScope.getParent(); @@ -337,7 +341,7 @@ public class TypeChecker extends AbstractNodeAnalyzer { } return null; } - + */ @Override public Type analyze(ReturnStmt node) { if(node.value != null) @@ -472,10 +476,13 @@ public class TypeChecker extends AbstractNodeAnalyzer { public Type analyze(Identifier id) { String varName = id.name; Type varType = currentScope.get(varName); - if(varType!=null && !currentScope.getDeclaredSymbols().contains(varName)){ - err(id, "Cannot assign to variable that is not explicitly declared in this scope: %s", varName); + if(varType!=null) + { + if(assign==true && !currentScope.getDeclaredSymbols().contains(varName)) + err(id, "Cannot assign to variable that is not explicitly declared in this scope: %s", varName); + else if(assign==false && currentScope.get(varName)==null) + err(id, "Variable not declared in scope: %s", varName); } - if (varType != null && varType.isValueType()) { return id.setInferredType(varType); } @@ -488,16 +495,14 @@ public class TypeChecker extends AbstractNodeAnalyzer { public Type analyze(GlobalDecl node) { Type ty = sym.get(node.variable.name); - if (sym.declares(node.variable.name)==false || - !isVariableType(ty) - ) + if (sym.declares(node.variable.name)==false || !isVariableType(ty)) { - errors.semError( + err( node.variable, "Not a global variable: %s", node.variable.name); return null; } else if(currentScope.getDeclaredSymbols().contains(node.variable.name)){ - errors.semError( + err( node.variable, "Duplicate declaration of identifier in same scope: %s", node.variable.name); } else From 8244f37463dc63801c36cd16276a09a28da525a7 Mon Sep 17 00:00:00 2001 From: Apoorva Ranade Date: Thu, 1 Apr 2021 19:34:08 +0530 Subject: [PATCH 50/52] Fixed return type errors --- src/main/java/chocopy/pa2/TypeChecker.java | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/main/java/chocopy/pa2/TypeChecker.java b/src/main/java/chocopy/pa2/TypeChecker.java index c131a60..5e93485 100644 --- a/src/main/java/chocopy/pa2/TypeChecker.java +++ b/src/main/java/chocopy/pa2/TypeChecker.java @@ -98,17 +98,21 @@ public class TypeChecker extends AbstractNodeAnalyzer { { err(node, "Expression `%s` type inference error.", ex); error = true; - } else if (ex instanceof IndexExpr && - ((IndexExpr)ex).list.getInferredType().equals(Type.STR_TYPE)){ + } + else if (ex instanceof IndexExpr && + ((IndexExpr)ex).list.getInferredType().equals(Type.STR_TYPE)) + { err(ex, "`str` is not a list type"); error = true; } - else if(tr!=null && tl.isListType() && tr.isListType()){ + else if(tr!=null && tl.isListType() && tr.isListType()) + { if(!((!tl.elementType().isSpecialType()&&tr.elementType().equals(Type.NONE_TYPE))|| - tl.equals(tr)||tr.elementType().equals(Type.EMPTY_TYPE))){ - err(node, "Expected type `%s`; got type `%s`", tl, tr); + tl.equals(tr)||tr.elementType().equals(Type.EMPTY_TYPE))) + { + err(node, "Expected type `%s`; got type `%s`", tl, tr); error = true; - } + } } else if(tl.isListType() && Type.EMPTY_TYPE.equals(tr)) ; //continue; else if(tr != null && !(StudentAnalysis.subClassOf(tl, tr, currentScope) || !tl.isSpecialType() && tr.equals(Type.NONE_TYPE))) @@ -302,7 +306,7 @@ public class TypeChecker extends AbstractNodeAnalyzer { Type thisArgTy = thisArg.setInferredType(thisArg.dispatch(this)), thisParamTy = funcTy.parameters.get(i + 1); - if(!thisParamTy.equals(thisArgTy)) + if(!thisParamTy.equals(thisArgTy) && !StudentAnalysis.subClassOf(thisParamTy, thisArgTy, currentScope)) err(node, "Expected type `%s`; got type `%s` in parameter %d", thisParamTy, thisArgTy, i + 1); } From 1c43d3ca91e3b13d015a165d4fbce34e78fa62df Mon Sep 17 00:00:00 2001 From: Apoorva Ranade Date: Thu, 1 Apr 2021 20:50:08 +0530 Subject: [PATCH 51/52] Fixed return type error --- .../java/chocopy/pa2/DeclarationAnalyzer.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/main/java/chocopy/pa2/DeclarationAnalyzer.java b/src/main/java/chocopy/pa2/DeclarationAnalyzer.java index 1c995b9..0c0510e 100644 --- a/src/main/java/chocopy/pa2/DeclarationAnalyzer.java +++ b/src/main/java/chocopy/pa2/DeclarationAnalyzer.java @@ -163,7 +163,7 @@ public class DeclarationAnalyzer extends AbstractNodeAnalyzer if(!firstPass){ ValueType returnType = ValueType.annotationToValueType(node.returnType); - if(returnType!=null && !returnType.isSpecialType() && !(globals.get(returnType.className()) instanceof ClassVType)) + if(returnType!=null && !returnType.isSpecialType() && !returnType.isListType() && !(globals.get(returnType.className()) instanceof ClassVType)) errors.semError( node.returnType, "Invalid type annotation; there is no class named: %s", returnType.className()); @@ -260,7 +260,8 @@ public class DeclarationAnalyzer extends AbstractNodeAnalyzer !(params.get(0) instanceof ClassValueType)|| !((ClassValueType)params.get(0)).className().equals(current_class.className)) errors.semError(id, "Method overridden with different type signature: __init__"); - else sym.put(name, current_func); + else + sym.put(name, current_func); if(params.size() < 1 || (params.get(0) instanceof ClassValueType==false) || ((ClassValueType)params.get(0)).className().equals(current_class.className)==false) errors.semError( id, "First parameter of the following method must be of the enclosing class: %s", name); @@ -283,7 +284,10 @@ public class DeclarationAnalyzer extends AbstractNodeAnalyzer } else sym.put(name, current_func); - } else if (super_syms.contains(name)) + } + else if (name.equals("__init__") && !(type instanceof FuncType)) + errors.semError(id, "Cannot re-define attribute: %s", name); + else if (super_syms.contains(name)) errors.semError(id, "Cannot re-define attribute: %s", name); else sym.put(name, type); @@ -304,20 +308,16 @@ public class DeclarationAnalyzer extends AbstractNodeAnalyzer } boolean isVariableType(Type ty) { - return ty.isSpecialType() || ty.equals(Type.OBJECT_TYPE); + return ty.isSpecialType() || ty.equals(Type.OBJECT_TYPE)|| ty.isListType(); } @Override public Type analyze(NonLocalDecl node) { - SymbolTable curr_sym=sym; - while(curr_sym.getParent()!=null) + SymbolTable parent=sym.getParent(); + if (parent.getParent()!=null && parent.declares(node.variable.name) && isVariableType(sym.get(node.variable.name))) { - if (curr_sym.declares(node.variable.name) && isVariableType(sym.get(node.variable.name))) - { - sym.put(node.variable.name, sym.get(node.variable.name)); - return sym.get(node.variable.name); - } - curr_sym=curr_sym.getParent(); + sym.put(node.variable.name, sym.get(node.variable.name)); + return sym.get(node.variable.name); } errors.semError( node.variable, "Not a nonlocal variable: %s", node.variable.name); From ec9d922729040b5082ea94024623685338f38aec Mon Sep 17 00:00:00 2001 From: ar6496 <78793916+ar6496@users.noreply.github.com> Date: Fri, 2 Apr 2021 11:38:14 +0530 Subject: [PATCH 52/52] Update WORKLOG.md --- WORKLOG.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/WORKLOG.md b/WORKLOG.md index eef9fd0..93043f3 100644 --- a/WORKLOG.md +++ b/WORKLOG.md @@ -5,11 +5,12 @@
## Passes: - - + - First Pass: Creates the symbol tables and adds all the elements of the program to the symbol table. The first step is creating the basic table symbol, which is the parent(root) of the symbol table structure(which forms a tree-like structure). Classes for Object, int, bool and str are added to this symbol table. This table contains the global declarations. At each level of scope, we create a symbol table which points to the parent symbol table. Variables, functions and classes are added to the appropriate symbol table according to the scope. + - Second Pass: At each node of the abstract syntax tree, the types are identified and populated. ## Recovery: - ## Challenges: - - + - Nested structures were a challenge. A function inside a function needs to handle variable references as well as ensure function calls have appropriate scope. ## Improvements: - Added more tests to rigorously check program flow and indentation.