ming-Paradigms-Assignment-2-Parser-and-Transpiler

所属分类:微信小程序
开发工具:Haskell
文件大小:0KB
下载次数:0
上传日期:2023-11-04 02:37:24
上 传 者sh-1993
说明:  FIT2102 编程辅导, Code Help, CS tutor, Wechat: powcoder, powcoder@163.com
(FIT2102 programming tutorial, Code Help, CS tutor, Wechat: powcoder, powcoder@163.com)

文件列表:
.stack-work/ (0, 2023-11-03)
.stack-work/dist/ (0, 2023-11-03)
.stack-work/dist/8a54c84f/ (0, 2023-11-03)
.stack-work/dist/8a54c84f/build-lock (0, 2023-11-03)
.stack-work/dist/8a54c84f/build/ (0, 2023-11-03)
.stack-work/dist/8a54c84f/build/Assignment.hi (13808, 2023-11-03)
.stack-work/dist/8a54c84f/build/Instances.hi (19931, 2023-11-03)
.stack-work/dist/8a54c84f/build/Parser.hi (14010, 2023-11-03)
.stack-work/dist/8a54c84f/build/Paths_assignment2.hi (12648, 2023-11-03)
.stack-work/dist/8a54c84f/build/autogen/ (0, 2023-11-03)
.stack-work/dist/8a54c84f/build/autogen/Paths_assignment2.hs (2995, 2023-11-03)
.stack-work/dist/8a54c84f/build/autogen/cabal_macros.h (5539, 2023-11-03)
.stack-work/dist/8a54c84f/build/batch/ (0, 2023-11-03)
.stack-work/dist/8a54c84f/build/batch/autogen/ (0, 2023-11-03)
.stack-work/dist/8a54c84f/build/batch/autogen/Paths_assignment2.hs (3001, 2023-11-03)
.stack-work/dist/8a54c84f/build/batch/autogen/cabal_macros.h (7135, 2023-11-03)
.stack-work/dist/8a54c84f/build/batch/batch-tmp/ (0, 2023-11-03)
.stack-work/dist/8a54c84f/build/batch/batch-tmp/Main.hi (3147, 2023-11-03)
.stack-work/dist/8a54c84f/build/batch/batch-tmp/Paths_assignment2.hi (12579, 2023-11-03)
.stack-work/dist/8a54c84f/build/libHSassignment2-0.1.0.0-8b8IZEY97sYEv6ZmV1Rvwc.a (211742, 2023-11-03)
.stack-work/dist/8a54c84f/build/libHSassignment2-0.1.0.0-9EhbX9MqsicKxpE1yYTLIJ.a (128942, 2023-11-03)
.stack-work/dist/8a54c84f/build/libHSassignment2-0.1.0.0-CdCUVLgy2mwBjmWrHRDXO1.a (198268, 2023-11-03)
.stack-work/dist/8a54c84f/build/main/ (0, 2023-11-03)
.stack-work/dist/8a54c84f/build/main/autogen/ (0, 2023-11-03)
.stack-work/dist/8a54c84f/build/main/autogen/Paths_assignment2.hs (3000, 2023-11-03)
.stack-work/dist/8a54c84f/build/main/autogen/cabal_macros.h (5778, 2023-11-03)
.stack-work/dist/8a54c84f/build/main/main-tmp/ (0, 2023-11-03)
.stack-work/dist/8a54c84f/build/main/main-tmp/Main.hi (1651, 2023-11-03)
.stack-work/dist/8a54c84f/build/main/main-tmp/Paths_assignment2.hi (12580, 2023-11-03)
.stack-work/dist/8a54c84f/package.conf.inplace/ (0, 2023-11-03)
.stack-work/dist/8a54c84f/package.conf.inplace/assignment2-0.1.0.0-8b8IZEY97sYEv6ZmV1Rvwc.conf (1889, 2023-11-03)
.stack-work/dist/8a54c84f/package.conf.inplace/package.cache (3263, 2023-11-03)
.stack-work/dist/8a54c84f/package.conf.inplace/package.cache.lock (0, 2023-11-03)
.stack-work/dist/8a54c84f/setup-config (152619, 2023-11-03)
.stack-work/dist/8a54c84f/stack-build-caches/ (0, 2023-11-03)
.stack-work/dist/8a54c84f/stack-build-caches/55250600219b8d441e01b8d1c99aee287d9d330aaa7d2716027faa5051ebfc1a/ (0, 2023-11-03)
.stack-work/dist/8a54c84f/stack-build-caches/55250600219b8d441e01b8d1c99aee287d9d330aaa7d2716027faa5051ebfc1a/lib (1509, 2023-11-03)
.stack-work/dist/8a54c84f/stack-build-caches/55250600219b8d441e01b8d1c99aee287d9d330aaa7d2716027faa5051ebfc1a/test-batch (1243, 2023-11-03)
.stack-work/dist/8a54c84f/stack-cabal-mod (35, 2023-11-03)
... ...

--- title: Assignment 2 - Parser and Transpiler author: FIT2102 Programming Paradigms margin: 1inch --- # Assignment 2: Parser and Transpiler Please do not change the names of the functions defined in the Assignment.hs file. Each Part of the assignment has corresponding `parseExerciseX` and `prettyPrintExerciseX` that will parse and pretty print the input as per the requirements in that part. You may (and are highly encouraged) to implement your parsers **alongside** these pre-defined functions. ## Running the Code ``` $ stack test ``` This will generate the transpiled JS files using the sample input JS files, by running your pretty printing function for each exercise. ## Running the Javascript Tests In the javascript folder run: ``` $ npm i $ npm run dev ``` All example scripts are stored within `javascript/inputs` and the output of your parser will be saved in `javascript/output`. The tests on the page test: - The generated code is valid JS (i.e. it runs without errors, including non-termination error) - The generated code has certain properties of the original code (e.g. immutable variables are still immutable) - The output is "prettified" from the input based on visual, side-by-side inspection # FIT2102 Programming Paradigms Assignment 2 Parser and Transpiler # 加微信 powcoder # QQ 1823890830 # Programming Help Add Wechat powcoder # Email: powcoder@163.com # FIT2102 Programming Paradigms Assignment 2 Parser and Transpiler # 加微信 powcoder # QQ 1823890830 # Programming Help Add Wechat powcoder # Email: powcoder@163.com

近期下载者

相关文件


收藏者