alexandruradovici / alf-semantic-ast-public Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
{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?
i get an error on vmchecker for this test https://github.com/alexandruradovici/alf-semantic-ast-public/blob/master/verify/alfy/6_error/array_index_value.alfy.json but my output seems to be alright
Where should we work with the symbol table, ast and error list for homework 3? In the main file or jison file?
Why are the types required when making a comparation? If the types cannot be compared isn't the result false?
Why is the value of the symbol key in the function nodes 1? Shouldn't it be 0?
for this test https://github.com/alexandruradovici/alf-semantic-ast-public/blob/master/verify/alfy/6_error/function_redefine.alfy.json my result seems to be ok but on vmchecker i get an error for the ast saying my types are int and that they should be ""
In the AST, isn't the last line supposed to be line: 2? instead of line: 3?
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.
The type of the valueof node from the test 'Function definition with statements and value' is "" even though the function returns int :)
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.