Giter Site home page Giter Site logo

alf-semantic-ast-public's People

Contributors

alexandruradovici avatar

Watchers

 avatar  avatar  avatar  avatar

alf-semantic-ast-public's Issues

Expression types

{Variable definition with expression}
define e => int is 20+3*5;

Here shouldn't we determine the type of the expression 20+3*5 and display it in the ast?

Work environment

Where should we work with the symbol table, ast and error list for homework 3? In the main file or jison file?

Line error?

The line isn't supposed to be 3? because after it parses the rule it should be line: 3, not line: 2.
It's confusing because the "attribution" test and "variable_with_expression" test are displaying the last line+1 like you said it's supposed to, and all of the other tests from variable_definition are displaying just the line where the last instruction is.

https://github.com/alexandruradovici/alf-semantic-ast-public/blob/master/verify/alfy/1_variable_definition/simple.alfy

https://github.com/alexandruradovici/alf-semantic-ast-public/blob/master/verify/alfy/1_variable_definition/simple.alfy.json

Type of valueof node in AST

The type of the valueof node from the test 'Function definition with statements and value' is "" even though the function returns int :)

Value of lines

Some of the tests have weird values for the line keys. For example, in the variable_list test, all the lines are set as 5, even though the variables are defined on different lines. In other tests, such as the ones for functions, the last line's value(for the script node) is the number of lines in the file + 1. Are those correct?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.