Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recovery #243

Open
wants to merge 63 commits into
base: master
Choose a base branch
from
Open

Recovery #243

wants to merge 63 commits into from

Conversation

sqmedeiros
Copy link
Contributor

No description provided.

…signLocal. Commented tests related to theses labels
…l to 'parser.lua', following the output of the algorithm
…hod and key, new alternatives in simpletype)
Copy link
Contributor

@hugomg hugomg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking superficially, I noticed that there are some "debug comments" that were committed by accident. I didn't list all of them to avoid being repetitive.

I didn't review the meat of the parser yet. I'll need to learn more about how that works first.

What is the purpose of the annotatedTitan.txt and annotatedTitanMet.txt files? They look like they were generated automatically.

@@ -9,7 +9,7 @@ return function(prefix, types)
constructors[consname] = function(...)
local args = table.pack(...)
if args.n ~= #fields then
error("missing arguments for " .. consname)
error("missing arguments for " .. consname .. tostring(args.n) .. tostring(#fields))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that these were added for debugging but not remover later.
If we want to keep them they should have a space between the numbers at least.

@@ -180,7 +180,9 @@ for _, keyword in ipairs(keywords) do
end

lexer.NAME = Cmt(C(possiblename), function(_, pos, s)
--print('lexer', _, pos, s, is_keyword[s])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These comments should be removed

@@ -76,6 +96,9 @@ function defs.nil_exp(pos--[[, s ]])
end

function defs.number_exp(pos, n)
--print("number_exp", pos, n, math.type(n))
--assert(n ~= 52)
--assert(n ~= '52')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More "debug" comments. Why is 52 important?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants