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

Auto detection of new line format in lexical analyzer #3

Open
amirbawab opened this issue Sep 9, 2017 · 1 comment
Open

Auto detection of new line format in lexical analyzer #3

amirbawab opened this issue Sep 9, 2017 · 1 comment

Comments

@amirbawab
Copy link
Owner

amirbawab commented Sep 9, 2017

Option 1: Add the option to AUTO detect new line format in user input file: CR, LF, CRLF, instead of manually specifying it in the lexical JSON config.

{
    "newline": "AUTO",
    "..."
}

Enhancement:

  • Add AUTO option in EasyCC-CPP/src/lexical/Lexical.cpp function Lexical::generateLexicalTokens()

Docs:


Edit:

  • Added Option 1
@amirbawab
Copy link
Owner Author

Option2: Allow user to execute an action function while traversing the state machine. An action function can increment the line number when a \n character is consumed.

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

No branches or pull requests

1 participant